1 Commits

Author SHA1 Message Date
ae8094c9e0 feat: upgrade yarn to 4.5.3 2024-11-25 15:09:46 +00:00
11 changed files with 1505 additions and 1826 deletions

View File

@@ -27,9 +27,9 @@ steps:
restore: true restore: true
- name: test - name: test
image: 'node:22.15.0-slim' image: 'node:22.11.0-slim'
commands: commands:
- yarn set version 4.6.0 - yarn set version 4.5.3
- yarn install - yarn install
- yarn run jest - yarn run jest

1355
.pnp.cjs generated

File diff suppressed because it is too large Load Diff

26
.pnp.loader.mjs generated
View File

@@ -131,7 +131,7 @@ async function copyImpl(prelayout, postlayout, destinationFs, destination, sourc
async function maybeLStat(baseFs, p) { async function maybeLStat(baseFs, p) {
try { try {
return await baseFs.lstatPromise(p); return await baseFs.lstatPromise(p);
} catch { } catch (e) {
return null; return null;
} }
} }
@@ -482,7 +482,7 @@ class FakeFS {
let current = Buffer.alloc(0); let current = Buffer.alloc(0);
try { try {
current = await this.readFilePromise(p); current = await this.readFilePromise(p);
} catch { } catch (error) {
} }
if (Buffer.compare(current, content) === 0) if (Buffer.compare(current, content) === 0)
return; return;
@@ -492,7 +492,7 @@ class FakeFS {
let current = ``; let current = ``;
try { try {
current = await this.readFilePromise(p, `utf8`); current = await this.readFilePromise(p, `utf8`);
} catch { } catch (error) {
} }
const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content; const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content;
if (current === normalizedContent) if (current === normalizedContent)
@@ -510,7 +510,7 @@ class FakeFS {
let current = Buffer.alloc(0); let current = Buffer.alloc(0);
try { try {
current = this.readFileSync(p); current = this.readFileSync(p);
} catch { } catch (error) {
} }
if (Buffer.compare(current, content) === 0) if (Buffer.compare(current, content) === 0)
return; return;
@@ -520,7 +520,7 @@ class FakeFS {
let current = ``; let current = ``;
try { try {
current = this.readFileSync(p, `utf8`); current = this.readFileSync(p, `utf8`);
} catch { } catch (error) {
} }
const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content; const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content;
if (current === normalizedContent) if (current === normalizedContent)
@@ -560,13 +560,13 @@ class FakeFS {
let pid; let pid;
try { try {
[pid] = await this.readJsonPromise(lockPath); [pid] = await this.readJsonPromise(lockPath);
} catch { } catch (error) {
return Date.now() - startTime < 500; return Date.now() - startTime < 500;
} }
try { try {
process.kill(pid, 0); process.kill(pid, 0);
return true; return true;
} catch { } catch (error) {
return false; return false;
} }
}; };
@@ -579,7 +579,7 @@ class FakeFS {
try { try {
await this.unlinkPromise(lockPath); await this.unlinkPromise(lockPath);
continue; continue;
} catch { } catch (error2) {
} }
} }
if (Date.now() - startTime < 60 * 1e3) { if (Date.now() - startTime < 60 * 1e3) {
@@ -599,7 +599,7 @@ class FakeFS {
try { try {
await this.closePromise(fd); await this.closePromise(fd);
await this.unlinkPromise(lockPath); await this.unlinkPromise(lockPath);
} catch { } catch (error) {
} }
} }
} }
@@ -895,7 +895,7 @@ class ProxiedFS extends FakeFS {
watch(p, a, b) { watch(p, a, b) {
return this.baseFs.watch( return this.baseFs.watch(
this.mapToBase(p), this.mapToBase(p),
// @ts-expect-error - reason TBS // @ts-expect-error
a, a,
b b
); );
@@ -903,7 +903,7 @@ class ProxiedFS extends FakeFS {
watchFile(p, a, b) { watchFile(p, a, b) {
return this.baseFs.watchFile( return this.baseFs.watchFile(
this.mapToBase(p), this.mapToBase(p),
// @ts-expect-error - reason TBS // @ts-expect-error
a, a,
b b
); );
@@ -1323,7 +1323,7 @@ class NodeFS extends BasePortableFakeFS {
watch(p, a, b) { watch(p, a, b) {
return this.realFs.watch( return this.realFs.watch(
npath.fromPortablePath(p), npath.fromPortablePath(p),
// @ts-expect-error - reason TBS // @ts-expect-error
a, a,
b b
); );
@@ -1331,7 +1331,7 @@ class NodeFS extends BasePortableFakeFS {
watchFile(p, a, b) { watchFile(p, a, b) {
return this.realFs.watchFile( return this.realFs.watchFile(
npath.fromPortablePath(p), npath.fromPortablePath(p),
// @ts-expect-error - reason TBS // @ts-expect-error
a, a,
b b
); );

View File

@@ -1,2 +1,2 @@
nodejs 22.15.0 nodejs 22.11.0
yarn 1.22.22 yarn 1.22.22

934
.yarn/releases/yarn-4.5.3.cjs vendored Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -3,4 +3,4 @@ plugins:
path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
spec: "https://go.mskelton.dev/yarn-outdated/v4" spec: "https://go.mskelton.dev/yarn-outdated/v4"
yarnPath: .yarn/releases/yarn-4.9.1.cjs yarnPath: .yarn/releases/yarn-4.5.3.cjs

View File

@@ -1,10 +1,10 @@
FROM node:22.15.0-slim FROM node:22.11.0-slim
WORKDIR /opt/app WORKDIR /opt/app
RUN apt-get update \ RUN apt-get update \
&& apt-get -y install make \ && apt-get -y install make \
&& yarn set version 4.6.0 && yarn set version 4.5.3
COPY ./Makefile ./ COPY ./Makefile ./
COPY ./package.json ./ COPY ./package.json ./

View File

@@ -6,7 +6,7 @@ asdf_install:
.PHONY: yarn_setup .PHONY: yarn_setup
yarn_setup: yarn_setup:
@yarn set version 4.6.0 @yarn set version 4.5.3
@yarn init -2 @yarn init -2
@yarn add typescript jest @types/jest ts-node ts-jest @yarn add typescript jest @types/jest ts-node ts-jest

View File

@@ -1,6 +1,6 @@
{ {
"name": "clean-architecture", "name": "clean-architecture",
"packageManager": "yarn@4.9.1", "packageManager": "yarn@4.5.3",
"dependencies": { "dependencies": {
"@types/jest": "^29.5.13", "@types/jest": "^29.5.13",
"@types/node": "^22.7.5", "@types/node": "^22.7.5",

View File

@@ -904,11 +904,11 @@ __metadata:
linkType: hard linkType: hard
"@types/node@npm:*, @types/node@npm:^22.7.5": "@types/node@npm:*, @types/node@npm:^22.7.5":
version: 22.15.9 version: 22.9.3
resolution: "@types/node@npm:22.15.9" resolution: "@types/node@npm:22.9.3"
dependencies: dependencies:
undici-types: "npm:~6.21.0" undici-types: "npm:~6.19.8"
checksum: 10c0/f294ba23e441b4f919394d0e4c80f3f33e858e6f1db0561317148da2db3d3c67809fd1a38de481328933b0d5c6174db40cb6ab65f12b2cf3309df7f07a8e46f6 checksum: 10c0/954ec72bf29436ea62425a9563914a9c1e93f97b18194acd51d74d13998a701977547ed2985ed3a0e97211b785436d28377116e5f613bfcf3182d9bd81d784dc
languageName: node languageName: node
linkType: hard linkType: hard
@@ -3411,12 +3411,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"semver@npm:^7.7.1": "semver@npm:^7.6.3":
version: 7.7.1 version: 7.6.3
resolution: "semver@npm:7.7.1" resolution: "semver@npm:7.6.3"
bin: bin:
semver: bin/semver.js semver: bin/semver.js
checksum: 10c0/fd603a6fb9c399c6054015433051bdbe7b99a940a8fb44b85c2b524c4004b023d7928d47cb22154f8d054ea7ee8597f586605e05b52047f048278e4ac56ae958 checksum: 10c0/88f33e148b210c153873cb08cfe1e281d518aaa9a666d4d148add6560db5cd3c582f3a08ccb91f38d5f379ead256da9931234ed122057f40bb5766e65e58adaf
languageName: node languageName: node
linkType: hard linkType: hard
@@ -3704,8 +3704,8 @@ __metadata:
linkType: hard linkType: hard
"ts-jest@npm:^29.2.5": "ts-jest@npm:^29.2.5":
version: 29.3.2 version: 29.2.5
resolution: "ts-jest@npm:29.3.2" resolution: "ts-jest@npm:29.2.5"
dependencies: dependencies:
bs-logger: "npm:^0.2.6" bs-logger: "npm:^0.2.6"
ejs: "npm:^3.1.10" ejs: "npm:^3.1.10"
@@ -3714,8 +3714,7 @@ __metadata:
json5: "npm:^2.2.3" json5: "npm:^2.2.3"
lodash.memoize: "npm:^4.1.2" lodash.memoize: "npm:^4.1.2"
make-error: "npm:^1.3.6" make-error: "npm:^1.3.6"
semver: "npm:^7.7.1" semver: "npm:^7.6.3"
type-fest: "npm:^4.39.1"
yargs-parser: "npm:^21.1.1" yargs-parser: "npm:^21.1.1"
peerDependencies: peerDependencies:
"@babel/core": ">=7.0.0-beta.0 <8" "@babel/core": ">=7.0.0-beta.0 <8"
@@ -3737,7 +3736,7 @@ __metadata:
optional: true optional: true
bin: bin:
ts-jest: cli.js ts-jest: cli.js
checksum: 10c0/84762720dbef45c1644348d67d0dcb8b7ad6369a16628c4752aceeb47f0ccdad63ae14485048b641c20ce096337a160ab816881361ef5517325bac6a5b3756e0 checksum: 10c0/acb62d168faec073e64b20873b583974ba8acecdb94681164eb346cef82ade8fb481c5b979363e01a97ce4dd1e793baf64d9efd90720bc941ad7fc1c3d6f3f68
languageName: node languageName: node
linkType: hard linkType: hard
@@ -3793,37 +3792,30 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"type-fest@npm:^4.39.1":
version: 4.40.1
resolution: "type-fest@npm:4.40.1"
checksum: 10c0/590cb7d4dcd3da83efe49b5b52cd041661f6fa29f18cb76650fe1fdeb4090688e92955656e9d981e606abb13d25c0418be8c6c6504d80e87fe18dc9ca0888392
languageName: node
linkType: hard
"typescript@npm:^5.6.2": "typescript@npm:^5.6.2":
version: 5.8.3 version: 5.6.3
resolution: "typescript@npm:5.8.3" resolution: "typescript@npm:5.6.3"
bin: bin:
tsc: bin/tsc tsc: bin/tsc
tsserver: bin/tsserver tsserver: bin/tsserver
checksum: 10c0/5f8bb01196e542e64d44db3d16ee0e4063ce4f3e3966df6005f2588e86d91c03e1fb131c2581baf0fb65ee79669eea6e161cd448178986587e9f6844446dbb48 checksum: 10c0/44f61d3fb15c35359bc60399cb8127c30bae554cd555b8e2b46d68fa79d680354b83320ad419ff1b81a0bdf324197b29affe6cc28988cd6a74d4ac60c94f9799
languageName: node languageName: node
linkType: hard linkType: hard
"typescript@patch:typescript@npm%3A^5.6.2#optional!builtin<compat/typescript>": "typescript@patch:typescript@npm%3A^5.6.2#optional!builtin<compat/typescript>":
version: 5.8.3 version: 5.6.3
resolution: "typescript@patch:typescript@npm%3A5.8.3#optional!builtin<compat/typescript>::version=5.8.3&hash=5786d5" resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"
bin: bin:
tsc: bin/tsc tsc: bin/tsc
tsserver: bin/tsserver tsserver: bin/tsserver
checksum: 10c0/39117e346ff8ebd87ae1510b3a77d5d92dae5a89bde588c747d25da5c146603a99c8ee588c7ef80faaf123d89ed46f6dbd918d534d641083177d5fac38b8a1cb checksum: 10c0/7c9d2e07c81226d60435939618c91ec2ff0b75fbfa106eec3430f0fcf93a584bc6c73176676f532d78c3594fe28a54b36eb40b3d75593071a7ec91301533ace7
languageName: node languageName: node
linkType: hard linkType: hard
"undici-types@npm:~6.21.0": "undici-types@npm:~6.19.8":
version: 6.21.0 version: 6.19.8
resolution: "undici-types@npm:6.21.0" resolution: "undici-types@npm:6.19.8"
checksum: 10c0/c01ed51829b10aa72fc3ce64b747f8e74ae9b60eafa19a7b46ef624403508a54c526ffab06a14a26b3120d055e1104d7abe7c9017e83ced038ea5cf52f8d5e04 checksum: 10c0/078afa5990fba110f6824823ace86073b4638f1d5112ee26e790155f481f2a868cc3e0615505b6f4282bdf74a3d8caad715fd809e870c2bb0704e3ea6082f344
languageName: node languageName: node
linkType: hard linkType: hard