Skip to content

Commit 614039d

Browse files
authored
chore: upgrade post title dependency
Why: remove the remaining vulnerable title dependency path and publish @transloadit/post@1.0.2 with title@4 built-in types.
1 parent 458a5d5 commit 614039d

4 files changed

Lines changed: 159 additions & 161 deletions

File tree

packages/post/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @transloadit/post
22

3+
## 1.0.2
4+
5+
### Patch Changes
6+
7+
- Upgrade title to v4 and use its built-in types.
8+
39
## 1.0.1
410

511
### Patch Changes

packages/post/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@transloadit/post",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"repository": {
55
"type": "git",
66
"url": "git://github.com/transloadit/monolib.git",
@@ -25,12 +25,11 @@
2525
"@transloadit/slugify": "^1.0.0",
2626
"inquirer": "^8.2.7",
2727
"open-in-editor": "^2.2.0",
28-
"title": "^3.5.3"
28+
"title": "^4.0.1"
2929
},
3030
"devDependencies": {
3131
"@types/inquirer": "^8.2.12",
32-
"@types/open-in-editor": "^2.2.0",
33-
"@types/title": "^3.4.3"
32+
"@types/open-in-editor": "^2.2.0"
3433
},
3534
"publishConfig": {
3635
"access": "public"

packages/post/src/post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import openInEditor = require('open-in-editor')
77
import { fileExists } from '@transloadit/file-exists'
88
import { slugify } from '@transloadit/slugify'
99

10-
import title = require('title')
10+
import title from 'title'
1111

1212
async function post(): Promise<void> {
1313
console.log(`Welcome to @transloadit/post.`)

0 commit comments

Comments
 (0)