Skip to content

Commit df06cdb

Browse files
committed
Refresh dependencies
1 parent f6541b1 commit df06cdb

48 files changed

Lines changed: 1202 additions & 1042 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/fresh-deps.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@transloadit/abbr': major
3+
'@transloadit/analyze-step': major
4+
'@transloadit/file-exists': major
5+
'@transloadit/format-duration-ms': major
6+
'@transloadit/has-property': major
7+
'@transloadit/post': major
8+
'@transloadit/pr': major
9+
'@transloadit/prd': major
10+
'@transloadit/prettier-bytes': major
11+
'@transloadit/sev-logger': major
12+
'@transloadit/slugify': major
13+
'@transloadit/sort-assembly': major
14+
'@transloadit/sort-object': major
15+
'@transloadit/sort-object-by-prio': major
16+
'@transloadit/sort-result': major
17+
'@transloadit/sort-result-meta': major
18+
'@transloadit/trigger-pager': major
19+
---
20+
21+
Move monolib packages to ESM-only output and refresh dependencies.
22+
23+
This is a breaking change for CommonJS consumers: import these packages from ESM code or use dynamic import from CommonJS.

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.4.14/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
33
"files": {
44
"includes": ["**", "!**/dist", "!**/node_modules", "!**/coverage", "!**/package.json"]
55
},

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@
2323
"version": "changeset version",
2424
"release": "changeset publish"
2525
},
26-
"dependencies": {
27-
"execa": "5.1.1",
28-
"inflection": "^3.0.2",
29-
"inquirer": "^8.2.7"
30-
},
3126
"devDependencies": {
32-
"@biomejs/biome": "^2.4.14",
27+
"@biomejs/biome": "^2.4.15",
3328
"@changesets/cli": "^2.31.0",
34-
"@types/node": "^22.19.17",
29+
"@types/node": "^25.9.1",
3530
"npm-run-all": "^4.1.5",
36-
"typescript": "^5.9.3"
31+
"typescript": "^6.0.3"
3732
},
3833
"packageManager": "yarn@4.12.0",
3934
"engines": {

packages/abbr/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
},
2222
"publishConfig": {
2323
"access": "public"
24-
}
24+
},
25+
"type": "module"
2526
}

packages/abbr/src/abbr.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert'
22
import { describe, test } from 'node:test'
33

4-
import { abbr } from './abbr'
4+
import { abbr } from './abbr.ts'
55

66
describe('abbr', () => {
77
test('main', async () => {

packages/analyze-step/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@
3232
},
3333
"publishConfig": {
3434
"access": "public"
35-
}
35+
},
36+
"type": "module"
3637
}

packages/analyze-step/src/analyzeStep.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'node:assert'
22
import { describe, test } from 'node:test'
3-
import { analyzeStep } from './analyzeStep'
3+
import { analyzeStep } from './analyzeStep.ts'
44

55
const ROBOTS = {
66
'/image/resize': {

packages/analyze-step/src/analyzeStep.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { formatDurationMs } from '@transloadit/format-duration-ms'
22
import { prettierBytes } from '@transloadit/prettier-bytes'
33

4-
import inflect = require('inflection')
5-
import JSONPath = require('jsonpath-plus')
6-
import clone = require('lodash/clone')
7-
import countBy = require('lodash/countBy')
8-
import get = require('lodash/get')
9-
import has = require('lodash/has')
4+
import inflect from 'inflection'
5+
import { JSONPath } from 'jsonpath-plus'
6+
import clone from 'lodash/clone.js'
7+
import countBy from 'lodash/countBy.js'
8+
import get from 'lodash/get.js'
9+
import has from 'lodash/has.js'
1010

1111
function humanJoin(array: string[], reduce = true, glueword = 'and'): string {
1212
let countedArray = array
@@ -405,7 +405,7 @@ export function analyzeStep(step: Step, robots: Robots, extrameta: ExtraMeta = {
405405
}
406406

407407
if (robot?.rname === '/video/merge') {
408-
const types = JSONPath.JSONPath({ path: '$..as', json: step })
408+
const types = JSONPath({ path: '$..as', json: step })
409409
if (types.length) {
410410
str = `Merge ${humanJoin(types)} to create a new video`
411411
} else if (get(step, 'ffmpeg.f') === 'gif') {

packages/file-exists/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
},
2222
"publishConfig": {
2323
"access": "public"
24-
}
24+
},
25+
"type": "module"
2526
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import assert from 'node:assert'
22
import { describe, test } from 'node:test'
3-
import { fileExists } from './fileExists'
3+
import { fileExists } from './fileExists.ts'
44

55
describe('fileExists', () => {
66
test('main', async () => {
7-
assert.strictEqual(await fileExists(`${__filename}`), true)
8-
assert.strictEqual(await fileExists(`${__filename}-nonexistant`), false)
7+
assert.strictEqual(await fileExists(import.meta.filename), true)
8+
assert.strictEqual(await fileExists(`${import.meta.filename}-nonexistant`), false)
99
})
1010
})

0 commit comments

Comments
 (0)