Skip to content

Commit

Permalink
bump Prettier (#2268)
Browse files Browse the repository at this point in the history
evergreen

## Description

Bump prettier to latest and apply it.

This used `yarn upgrade-interactive`, added in Yarn 4

### Security Considerations

<!-- Does this change introduce new assumptions or dependencies that, if
violated, could introduce security vulnerabilities? How does this PR
change the boundaries between mutually-suspicious components? What new
authorities are introduced by this change, perhaps by new API calls? -->

### Scaling Considerations

<!-- Does this change require or encourage significant increase in
consumption of CPU cycles, RAM, on-chain storage, message exchanges, or
other scarce resources? If so, can that be prevented or mitigated? -->

### Documentation Considerations

<!-- Give our docs folks some hints about what needs to be described to
downstream users. Backwards compatibility: what happens to existing data
or deployments when this code is shipped? Do we need to instruct users
to do something to upgrade their saved data? If there is no upgrade path
possible, how bad will that be for users? -->

### Testing Considerations

<!-- Every PR should of course come with tests of its own functionality.
What additional tests are still needed beyond those unit tests? How does
this affect CI, other test automation, or the testnet? -->

### Compatibility Considerations

<!-- Does this change break any prior usage patterns? Does this change
allow usage patterns to evolve? -->

### Upgrade Considerations

<!-- What aspects of this PR are relevant to upgrading live production
systems, and how should they be addressed? -->

- [ ] Includes `*BREAKING*:` in the commit message with migration
instructions for any breaking change.
- [ ] Updates `NEWS.md` for user-facing changes.
  • Loading branch information
turadg authored May 6, 2024
2 parents fc518d0 + 805f356 commit e224a6c
Show file tree
Hide file tree
Showing 34 changed files with 83 additions and 87 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"eslint-plugin-jsdoc": "^48.2.2",
"lerna": "^5.6.2",
"lerna-update-wizard": "^0.17.5",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"ts-api-utils": "~1.0.1",
"type-coverage": "^2.26.3",
"typedoc": "^0.25.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/base64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
5 changes: 3 additions & 2 deletions packages/bundle-source/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ export const makeBundleCache = (wr, cwd, readPowers, opts) => {
const todo = makePromiseKit();
loaded.set(targetName, { rootPath, bundle: todo.promise });
const bundle = await validateOrAdd(rootPath, targetName, log)
.then(({ bundleFileName }) =>
import(`${wr.readOnly().neighbor(bundleFileName)}`),
.then(
({ bundleFileName }) =>
import(`${wr.readOnly().neighbor(bundleFileName)}`),
)
.then(m => harden(m.default));
assert.equal(bundle.moduleFormat, 'endoZipBase64');
Expand Down
8 changes: 4 additions & 4 deletions packages/captp/src/ts-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import type { ESingleMethod, Unpromise } from '@endo/eventual-send';
export type TrapHandler<T> = T extends (...args: infer P) => infer R
? (...args: P) => Unpromise<R>
: T extends Record<string | number | symbol, Function>
? {
[K in keyof T]: Unpromise<T[K]>;
}
: T;
? {
[K in keyof T]: Unpromise<T[K]>;
}
: T;

/* Types for Trap proxy calls. */
type TrapSingleMethod<T> = {
Expand Down
2 changes: 1 addition & 1 deletion packages/check-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cjs-module-analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/compartment-mapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
5 changes: 2 additions & 3 deletions packages/compartment-mapper/src/policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,8 @@ export const makeDeferredAttenuatorsProvider = (
}
attenuatorSpecifier = defaultAttenuator;
}
const { namespace } = await compartments[ATTENUATORS_COMPARTMENT].import(
attenuatorSpecifier,
);
const { namespace } =
await compartments[ATTENUATORS_COMPARTMENT].import(attenuatorSpecifier);
return namespace;
};
}
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
10 changes: 4 additions & 6 deletions packages/daemon/src/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1152,9 +1152,8 @@ const makeDaemonCore = async (
}

const workerFormulaNumber = await randomHex512();
const workerFormulation = await formulateNumberedWorker(
workerFormulaNumber,
);
const workerFormulation =
await formulateNumberedWorker(workerFormulaNumber);
return workerFormulation.id;
};

Expand Down Expand Up @@ -1794,9 +1793,8 @@ const provideEndoBootstrap = async (
daemonCore.provide(endoId)
);
} else {
const { value: endoBootstrap } = await daemonCore.formulateEndo(
endoFormulaNumber,
);
const { value: endoBootstrap } =
await daemonCore.formulateEndo(endoFormulaNumber);
return endoBootstrap;
}
};
Expand Down
10 changes: 4 additions & 6 deletions packages/daemon/src/directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,8 @@ export const makeDirectoryMaker = ({

/** @type {EndoDirectory['move']} */
const move = async (fromPath, toPath) => {
const { hub: fromHub, name: fromName } = await lookupTailNameHub(
fromPath,
);
const { hub: fromHub, name: fromName } =
await lookupTailNameHub(fromPath);
const { hub: toHub, name: toName } = await lookupTailNameHub(toPath);
if (fromHub === toHub) {
// eslint-disable-next-line no-use-before-define
Expand All @@ -195,9 +194,8 @@ export const makeDirectoryMaker = ({

/** @type {EndoDirectory['copy']} */
const copy = async (fromPath, toPath) => {
const { hub: fromHub, name: fromName } = await lookupTailNameHub(
fromPath,
);
const { hub: fromHub, name: fromName } =
await lookupTailNameHub(fromPath);
const { hub: toHub, name: toName } = await lookupTailNameHub(toPath);
const id = await fromHub.identify(fromName);
if (id === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion packages/env-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/lp32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/memoize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/nat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"ses": "^1.4.1"
},
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion packages/netstring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/patterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/promise-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/ses-ava/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"sinon": "^15.1.0",
"terser": "^5.16.6",
"tsd": "^0.30.7",
Expand Down
16 changes: 8 additions & 8 deletions packages/ses/src/error/tame-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ export const tameConsole = (
typeof globalThis.console !== 'undefined'
? globalThis.console
: typeof globalThis.print === 'function'
? // Make a good-enough console for eshost (including only functions that
// log at a specific level with no special argument interpretation).
// https://console.spec.whatwg.org/#logging
(p => freeze({ debug: p, log: p, info: p, warn: p, error: p }))(
// eslint-disable-next-line no-undef
wrapLogger(globalThis.print),
)
: undefined
? // Make a good-enough console for eshost (including only functions that
// log at a specific level with no special argument interpretation).
// https://console.spec.whatwg.org/#logging
(p => freeze({ debug: p, log: p, info: p, warn: p, error: p }))(
// eslint-disable-next-line no-undef
wrapLogger(globalThis.print),
)
: undefined
);

// Upgrade a log-only console (as in `eshost -h SpiderMonkey`).
Expand Down
4 changes: 2 additions & 2 deletions packages/ses/test/package/test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ let globalRef =
typeof global !== 'undefined'
? global
: typeof self !== 'undefined'
? self
: undefined;
? self
: undefined;
if (globalRef && !globalRef.globalThis) {
globalRef.globalThis = globalRef;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/static-module-record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/stream-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"ts-api-utils": "~1.0.1",
"typescript": "~5.5.0-dev.20240327"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/stream-types-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"ts-api-utils": "~1.0.1",
"typescript": "~5.5.0-dev.20240327"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/syrup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/test262-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.27.5",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"eslintConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/where/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/zip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "~5.5.0-dev.20240327"
},
"files": [
Expand Down
Loading

0 comments on commit e224a6c

Please sign in to comment.