Skip to content

Commit a6384dc

Browse files
authored
Merge pull request #1453 from endojs/ta/bump-eslint
bump eslint and other deps
2 parents 948c734 + 998f43a commit a6384dc

Some content is hidden

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

82 files changed

+424
-665
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
# 14.2 not longer tested because the test's runner, Ava, now requires 14.19+ and fails with:
120120
# Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader
121121
# - '14.2' # last version before promise fast-path without destroy
122-
- '14.17' # last version before unconditional promise fast-path
122+
# - '14.17' # last version before unconditional promise fast-path
123123
- '14.18' # first version after unconditional promise fast-path
124124
- '16.1' # last version before some significant promise hooks changes
125125
- '16.5' # last version before unconditional promise fast-path

package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
{
2-
"name": "SES",
2+
"name": "ses",
33
"private": true,
44
"useWorkspaces": true,
55
"workspaces": [
66
"packages/*"
77
],
88
"engines": {
9-
"node": ">=12.22.0"
9+
"node": ">=14.18.0"
1010
},
1111
"devDependencies": {
1212
"@octokit/core": "^3.4.0",
13-
"ava": "^5.1.0",
13+
"ava": "^5.2.0",
1414
"eslint": "^7.32.0",
1515
"eslint-config-airbnb-base": "^14.0.0",
16-
"eslint-config-jessie": "^0.0.4",
16+
"eslint-config-jessie": "^0.0.6",
1717
"eslint-config-prettier": "^6.9.0",
18-
"eslint-plugin-import": "^2.26.0",
19-
"eslint-plugin-jsdoc": "^30.4.2",
20-
"eslint-plugin-jsx-a11y": "^6.2.3",
18+
"eslint-plugin-import": "^2.27.5",
19+
"eslint-plugin-jsdoc": "^40.0.0",
2120
"eslint-plugin-prettier": "^3.4.1",
2221
"lerna": "^5.6.2",
2322
"lerna-update-wizard": "^0.17.5",

packages/base64/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
},
4141
"devDependencies": {
4242
"@endo/eslint-config": "^0.5.2",
43-
"ava": "^5.1.0",
43+
"ava": "^5.2.0",
4444
"babel-eslint": "^10.0.3",
4545
"c8": "^7.7.3",
4646
"eslint": "^7.32.0",
4747
"eslint-config-airbnb-base": "^14.0.0",
4848
"eslint-config-prettier": "^6.9.0",
4949
"eslint-plugin-eslint-comments": "^3.1.2",
50-
"eslint-plugin-import": "^2.26.0",
50+
"eslint-plugin-import": "^2.27.5",
5151
"eslint-plugin-prettier": "^3.4.1",
5252
"prettier": "^2.8.0",
5353
"typescript": "~4.9.4"

packages/bundle-source/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"devDependencies": {
4242
"@endo/lockdown": "^0.1.25",
4343
"@endo/ses-ava": "^0.2.37",
44-
"ava": "^5.1.0",
44+
"ava": "^5.2.0",
4545
"c8": "^7.7.3"
4646
},
4747
"keywords": [],

packages/bundle-source/src/types.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* @callback BundleSource
77
* @param {string} startFilename - the filepath to start the bundling from
88
* @param {(ModuleFormat | BundleOptions)=} moduleFormat
9-
* @param {Object=} powers
9+
* @param {object=} powers
1010
* @param {ReadFn=} powers.read
1111
* @param {CanonicalFn=} powers.canonical
1212
*/
1313

1414
/**
15-
* @typedef {Object} BundleOptions
15+
* @typedef {object} BundleOptions
1616
* @property {ModuleFormat} [format]
1717
* @property {boolean} [dev] - development mode, for test bundles that need
1818
* access to devDependencies of the entry package.

packages/captp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"devDependencies": {
4545
"@endo/init": "^0.5.53",
4646
"@endo/ses-ava": "^0.2.37",
47-
"ava": "^5.1.0",
47+
"ava": "^5.2.0",
4848
"c8": "^7.7.3"
4949
},
5050
"dependencies": {

packages/captp/src/captp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const isThenable = maybeThenable =>
3030
maybeThenable && typeof maybeThenable.then === 'function';
3131

3232
/**
33-
* @typedef {Object} CapTPOptions the options to makeCapTP
33+
* @typedef {object} CapTPOptions the options to makeCapTP
3434
* @property {(err: any) => void} onReject
3535
* @property {number} epoch an integer tag to attach to all messages in order to
3636
* assist in ignoring earlier defunct instance's messages

packages/captp/src/types.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @typedef {string} CapTPSlot */
22

33
/**
4-
* @typedef {Object} TrapImpl
4+
* @typedef {object} TrapImpl
55
* @property {(target: any, args: Array<any>) => any} applyFunction function
66
* application
77
* @property {(
@@ -34,7 +34,6 @@
3434
/**
3535
* @callback TrapGuest Use out-of-band communications to synchronously return a
3636
* TrapCompletion value indicating the final results of a Trap call.
37-
*
3837
* @param {TrapRequest} req
3938
* @returns {TrapCompletion}
4039
*/

packages/check-bundle/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
"@endo/eslint-config": "^0.5.2",
4646
"@endo/init": "^0.5.53",
4747
"@endo/zip": "^0.2.29",
48-
"ava": "^5.1.0",
48+
"ava": "^5.2.0",
4949
"babel-eslint": "^10.0.3",
5050
"c8": "^7.7.3",
5151
"eslint": "^7.32.0",
5252
"eslint-config-airbnb-base": "^14.0.0",
5353
"eslint-config-prettier": "^6.9.0",
5454
"eslint-plugin-eslint-comments": "^3.1.2",
55-
"eslint-plugin-import": "^2.26.0",
55+
"eslint-plugin-import": "^2.27.5",
5656
"eslint-plugin-prettier": "^3.4.1",
5757
"prettier": "^2.8.0",
5858
"typescript": "~4.9.4"

packages/cjs-module-analyzer/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
},
3131
"devDependencies": {
3232
"@endo/eslint-config": "^0.5.2",
33-
"ava": "^5.1.0",
33+
"ava": "^5.2.0",
3434
"babel-eslint": "^10.0.3",
3535
"c8": "^7.7.3",
3636
"eslint": "^7.32.0",
3737
"eslint-config-airbnb-base": "^14.0.0",
3838
"eslint-config-prettier": "^6.9.0",
3939
"eslint-plugin-eslint-comments": "^3.1.2",
40-
"eslint-plugin-import": "^2.26.0",
40+
"eslint-plugin-import": "^2.27.5",
4141
"eslint-plugin-prettier": "^3.4.1",
4242
"prettier": "^2.8.0",
4343
"typescript": "~4.9.4"

packages/cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
},
3737
"devDependencies": {
3838
"@endo/eslint-config": "^0.5.2",
39-
"ava": "^5.1.0",
39+
"ava": "^5.2.0",
4040
"babel-eslint": "^10.0.3",
4141
"eslint": "^7.32.0",
4242
"eslint-config-airbnb-base": "^14.0.0",
4343
"eslint-config-prettier": "^6.9.0",
4444
"eslint-plugin-eslint-comments": "^3.1.2",
45-
"eslint-plugin-import": "^2.26.0",
45+
"eslint-plugin-import": "^2.27.5",
4646
"eslint-plugin-prettier": "^3.4.1",
4747
"prettier": "^2.8.0",
4848
"typescript": "~4.9.4"

packages/compartment-mapper/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
},
4949
"devDependencies": {
5050
"@endo/eslint-config": "^0.5.2",
51-
"ava": "^5.1.0",
51+
"ava": "^5.2.0",
5252
"babel-eslint": "^10.0.3",
5353
"c8": "^7.7.3",
5454
"eslint": "^7.32.0",
5555
"eslint-config-airbnb-base": "^14.0.0",
5656
"eslint-config-prettier": "^6.9.0",
5757
"eslint-plugin-eslint-comments": "^3.1.2",
58-
"eslint-plugin-import": "^2.26.0",
58+
"eslint-plugin-import": "^2.27.5",
5959
"eslint-plugin-prettier": "^3.4.1",
6060
"prettier": "^2.8.0",
6161
"typescript": "~4.9.4"

packages/compartment-mapper/src/bundle.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ function getBundlerKitForModule(module) {
156156
/**
157157
* @param {ReadFn} read
158158
* @param {string} moduleLocation
159-
* @param {Object} [options]
159+
* @param {object} [options]
160160
* @param {ModuleTransforms} [options.moduleTransforms]
161161
* @param {boolean} [options.dev]
162162
* @param {Set<string>} [options.tags]
163163
* @param {Array<string>} [options.searchSuffixes]
164-
* @param {Object} [options.commonDependencies]
164+
* @param {object} [options.commonDependencies]
165165
* @returns {Promise<string>}
166166
*/
167167
export const makeBundle = async (read, moduleLocation, options) => {

packages/compartment-mapper/src/import-archive.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const makeFeauxModuleExportsNamespace = Compartment => {
186186
/**
187187
* @param {Uint8Array} archiveBytes
188188
* @param {string} [archiveLocation]
189-
* @param {Object} [options]
189+
* @param {object} [options]
190190
* @param {string} [options.expectedSha512]
191191
* @param {HashFn} [options.computeSha512]
192192
* @param {Record<string, unknown>} [options.modules]
@@ -340,7 +340,7 @@ export const loadArchive = async (
340340
* @param {ReadFn | ReadPowers} readPowers
341341
* @param {string} archiveLocation
342342
* @param {ExecuteOptions & LoadArchiveOptions} options
343-
* @returns {Promise<Object>}
343+
* @returns {Promise<object>}
344344
*/
345345
export const importArchive = async (readPowers, archiveLocation, options) => {
346346
const archive = await loadArchive(readPowers, archiveLocation, options);

packages/compartment-mapper/src/import.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const loadLocation = async (readPowers, moduleLocation, options) => {
103103
* @param {ReadFn | ReadPowers} readPowers
104104
* @param {string} moduleLocation
105105
* @param {ExecuteOptions & ArchiveOptions} [options]
106-
* @returns {Promise<Object>} the object of the imported modules exported
106+
* @returns {Promise<object>} the object of the imported modules exported
107107
* names.
108108
*/
109109
export const importLocation = async (

packages/compartment-mapper/src/infer-exports.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { isArray } = Array;
99

1010
/**
1111
* @param {string} name - the name of the referrer package.
12-
* @param {Object} browser - the `browser` field from a package.json
12+
* @param {object} browser - the `browser` field from a package.json
1313
* @param {string} main - the `main` field from a package.json
1414
* @yields {[string, string]}
1515
*/
@@ -49,7 +49,7 @@ function* interpretBrowserField(name, browser, main = 'index.js') {
4949

5050
/**
5151
* @param {string} name - the name of the referrer package.
52-
* @param {Object} exports - the `exports` field from a package.json.
52+
* @param {object} exports - the `exports` field from a package.json.
5353
* @param {Set<string>} tags - build tags about the target environment
5454
* for selecting relevant exports, e.g., "browser" or "node".
5555
* @yields {[string, string]}
@@ -96,10 +96,10 @@ function* interpretExports(name, exports, tags) {
9696
* There may be multiple pairs for a single `name`, but they will be yielded in
9797
* ascending priority order, and the caller should use the last one that exists.
9898
*
99-
* @param {Object} packageDescriptor - the parsed body of a package.json file.
99+
* @param {object} packageDescriptor - the parsed body of a package.json file.
100100
* @param {string} packageDescriptor.main
101101
* @param {string} [packageDescriptor.module]
102-
* @param {Object} [packageDescriptor.exports]
102+
* @param {object} [packageDescriptor.exports]
103103
* @param {Set<string>} tags - build tags about the target environment
104104
* for selecting relevant exports, e.g., "browser" or "node".
105105
* @param {Record<string, Language>} types - an object to populate
@@ -140,7 +140,7 @@ export const inferExportsEntries = function* inferExportsEntries(
140140
* The values are the corresponding module specifiers in the dependency
141141
* package's module map, like `./index.js`.
142142
*
143-
* @param {Object} descriptor - the parsed body of a package.json file.
143+
* @param {object} descriptor - the parsed body of a package.json file.
144144
* @param {Set<string>} tags - build tags about the target environment
145145
* for selecting relevant exports, e.g., "browser" or "node".
146146
* @param {Record<string, Language>} types - an object to populate

packages/compartment-mapper/src/link.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const makeModuleMapHook = (
210210
) => {
211211
/**
212212
* @param {string} moduleSpecifier
213-
* @returns {string | Object | undefined}
213+
* @returns {string | object | undefined}
214214
*/
215215
const moduleMapHook = moduleSpecifier => {
216216
compartmentDescriptor.retained = true;

packages/compartment-mapper/src/node-modules.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121

2222
/**
23-
* @typedef {Object} Node
23+
* @typedef {object} Node
2424
* @property {string} label
2525
* @property {string} name
2626
* @property {Array<string>} path
@@ -84,7 +84,7 @@ const basename = location => {
8484
/**
8585
* @param {ReadFn} read
8686
* @param {string} packageLocation
87-
* @returns {Promise<Object>}
87+
* @returns {Promise<object>}
8888
*/
8989
const readDescriptor = async (read, packageLocation) => {
9090
const descriptorLocation = resolveLocation('package.json', packageLocation);
@@ -100,10 +100,10 @@ const readDescriptor = async (read, packageLocation) => {
100100
};
101101

102102
/**
103-
* @param {Record<string, Object>} memo
103+
* @param {Record<string, object>} memo
104104
* @param {ReadFn} read
105105
* @param {string} packageLocation
106-
* @returns {Promise<Object>}
106+
* @returns {Promise<object>}
107107
*/
108108
const readDescriptorWithMemo = async (memo, read, packageLocation) => {
109109
let promise = memo[packageLocation];
@@ -118,7 +118,7 @@ const readDescriptorWithMemo = async (memo, read, packageLocation) => {
118118
/**
119119
* @callback ReadDescriptorFn
120120
* @param {string} packageLocation
121-
* @returns {Promise<Object>}
121+
* @returns {Promise<object>}
122122
*/
123123

124124
/**
@@ -135,7 +135,7 @@ const readDescriptorWithMemo = async (memo, read, packageLocation) => {
135135
* @param {string} name
136136
* @returns {Promise<{
137137
* packageLocation: string,
138-
* packageDescriptor: Object,
138+
* packageDescriptor: object,
139139
* } | undefined>}
140140
*/
141141
const findPackage = async (readDescriptor, canonical, directory, name) => {
@@ -180,7 +180,7 @@ const commonParsers = { js: 'cjs', ...uncontroversialParsers };
180180
const moduleParsers = { js: 'mjs', ...uncontroversialParsers };
181181

182182
/**
183-
* @param {Object} descriptor
183+
* @param {object} descriptor
184184
* @param {string} location
185185
* @returns {Record<string, string>}
186186
*/
@@ -233,9 +233,9 @@ const inferParsers = (descriptor, location) => {
233233
* @param {ReadDescriptorFn} readDescriptor
234234
* @param {CanonicalFn} canonical
235235
* @param {Graph} graph
236-
* @param {Object} packageDetails
236+
* @param {object} packageDetails
237237
* @param {string} packageDetails.packageLocation
238-
* @param {Object} packageDetails.packageDescriptor
238+
* @param {object} packageDetails.packageDescriptor
239239
* @param {Set<string>} tags
240240
* @param {boolean} dev
241241
* @param {CommonDependencyDescriptors} commonDependencyDescriptors
@@ -419,7 +419,7 @@ const graphPackage = async (
419419
* @param {Map<string, Array<string>>} preferredPackageLogicalPathMap
420420
* @param {Array<string>} childLogicalPath
421421
* @param {boolean} optional - whether the dependency is optional
422-
* @param {Object} [commonDependencyDescriptors] - dependencies to be added to all packages
422+
* @param {object} [commonDependencyDescriptors] - dependencies to be added to all packages
423423
*/
424424
const gatherDependency = async (
425425
readDescriptor,
@@ -484,7 +484,7 @@ const gatherDependency = async (
484484
* @param {CanonicalFn} canonical
485485
* @param {string} packageLocation - location of the main package.
486486
* @param {Set<string>} tags
487-
* @param {Object} mainPackageDescriptor - the parsed contents of the main
487+
* @param {object} mainPackageDescriptor - the parsed contents of the main
488488
* package.json, which was already read when searching for the package.json.
489489
* @param {boolean} dev - whether to use devDependencies from this package (and
490490
* only this package).
@@ -502,7 +502,7 @@ const graphPackages = async (
502502
const memo = create(null);
503503
/**
504504
* @param {string} packageLocation
505-
* @returns {Promise<Object>}
505+
* @returns {Promise<object>}
506506
*/
507507
const readDescriptor = packageLocation =>
508508
readDescriptorWithMemo(memo, read, packageLocation);
@@ -701,12 +701,12 @@ const translateGraph = (
701701
* @param {ReadFn | ReadPowers} readPowers
702702
* @param {string} packageLocation
703703
* @param {Set<string>} tags
704-
* @param {Object} packageDescriptor
704+
* @param {object} packageDescriptor
705705
* @param {string} moduleSpecifier
706-
* @param {Object} [options]
706+
* @param {object} [options]
707707
* @param {boolean} [options.dev]
708-
* @param {Object} [options.commonDependencies]
709-
* @param {Object} [options.policy]
708+
* @param {object} [options.commonDependencies]
709+
* @param {object} [options.policy]
710710
* @returns {Promise<CompartmentMapDescriptor>}
711711
*/
712712
export const compartmentMapForNodeModules = async (

0 commit comments

Comments
 (0)