From b72b4baa2dc0635c2e021f65a148e55f3c7111a5 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Fri, 16 Jun 2023 20:06:48 -0400 Subject: [PATCH] chore: bump dependencies Notice that the major update of tsup uses esbuild v0.18.0 under the hood, which has breaking changes with respect to how tsconfig.json files are handled. The `tsup.config.ts` file has been updated to preserve the existing behavior. See the esbuild release notes at: https://github.com/evanw/esbuild/releases/tag/v0.18.0 for more information. --- legacy/package.json | 10 +++---- legacy/pnpm-lock.yaml | 70 +++++++++++++++++++++---------------------- legacy/tsup.config.ts | 6 +++- 3 files changed, 45 insertions(+), 41 deletions(-) diff --git a/legacy/package.json b/legacy/package.json index 81c58eed..7af5665c 100644 --- a/legacy/package.json +++ b/legacy/package.json @@ -77,10 +77,10 @@ "@types/uuid": "^9.0.2", "@typescript-eslint/eslint-plugin": "^5.59.11", "@typescript-eslint/parser": "^5.59.11", - "ava": "^5.3.0", + "ava": "^5.3.1", "del-cli": "^5.0.0", - "dotenv": "^16.2.0", - "eslint": "^8.42.0", + "dotenv": "^16.3.0", + "eslint": "^8.43.0", "expect-type": "^0.16.0", "hash-obj": "^4.0.0", "husky": "^8.0.3", @@ -92,7 +92,7 @@ "prettier": "^2.8.8", "react": "^18.2.0", "sinon": "^15.1.2", - "tsup": "^6.7.0", + "tsup": "7.0.0", "tsx": "^3.12.7", "type-fest": "^3.12.0", "typescript": "^5.1.3" @@ -128,4 +128,4 @@ "guardrails", "plugins" ] -} +} \ No newline at end of file diff --git a/legacy/pnpm-lock.yaml b/legacy/pnpm-lock.yaml index 5eb9c7eb..b5e771df 100644 --- a/legacy/pnpm-lock.yaml +++ b/legacy/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' settings: autoInstallPeers: true @@ -114,22 +114,22 @@ devDependencies: version: 9.0.2 '@typescript-eslint/eslint-plugin': specifier: ^5.59.11 - version: 5.59.11(@typescript-eslint/parser@5.59.11)(eslint@8.42.0)(typescript@5.1.3) + version: 5.59.11(@typescript-eslint/parser@5.59.11)(eslint@8.43.0)(typescript@5.1.3) '@typescript-eslint/parser': specifier: ^5.59.11 - version: 5.59.11(eslint@8.42.0)(typescript@5.1.3) + version: 5.59.11(eslint@8.43.0)(typescript@5.1.3) ava: - specifier: ^5.3.0 - version: 5.3.0 + specifier: ^5.3.1 + version: 5.3.1 del-cli: specifier: ^5.0.0 version: 5.0.0 dotenv: - specifier: ^16.2.0 - version: 16.2.0 + specifier: ^16.3.0 + version: 16.3.0 eslint: - specifier: ^8.42.0 - version: 8.42.0 + specifier: ^8.43.0 + version: 8.43.0 expect-type: specifier: ^0.16.0 version: 0.16.0 @@ -164,7 +164,7 @@ devDependencies: specifier: ^15.1.2 version: 15.1.2 tsup: - specifier: ^6.7.0 + specifier: 6.7.0 version: 6.7.0(typescript@5.1.3) tsx: specifier: ^3.12.7 @@ -527,13 +527,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.42.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.43.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.42.0 + eslint: 8.43.0 eslint-visitor-keys: 3.4.1 dev: true @@ -559,8 +559,8 @@ packages: - supports-color dev: true - /@eslint/js@8.42.0: - resolution: {integrity: sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==} + /@eslint/js@8.43.0: + resolution: {integrity: sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -817,7 +817,7 @@ packages: resolution: {integrity: sha512-kNnC1GFBLuhImSnV7w4njQkUiJi0ZXUycu1rUaouPqiKlXkh77JKgdRnTAp1x5eBwcIwbtI+3otwzuIDEuDoxQ==} dev: true - /@typescript-eslint/eslint-plugin@5.59.11(@typescript-eslint/parser@5.59.11)(eslint@8.42.0)(typescript@5.1.3): + /@typescript-eslint/eslint-plugin@5.59.11(@typescript-eslint/parser@5.59.11)(eslint@8.43.0)(typescript@5.1.3): resolution: {integrity: sha512-XxuOfTkCUiOSyBWIvHlUraLw/JT/6Io1365RO6ZuI88STKMavJZPNMU0lFcUTeQXEhHiv64CbxYxBNoDVSmghg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -829,12 +829,12 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.5.1 - '@typescript-eslint/parser': 5.59.11(eslint@8.42.0)(typescript@5.1.3) + '@typescript-eslint/parser': 5.59.11(eslint@8.43.0)(typescript@5.1.3) '@typescript-eslint/scope-manager': 5.59.11 - '@typescript-eslint/type-utils': 5.59.11(eslint@8.42.0)(typescript@5.1.3) - '@typescript-eslint/utils': 5.59.11(eslint@8.42.0)(typescript@5.1.3) + '@typescript-eslint/type-utils': 5.59.11(eslint@8.43.0)(typescript@5.1.3) + '@typescript-eslint/utils': 5.59.11(eslint@8.43.0)(typescript@5.1.3) debug: 4.3.4 - eslint: 8.42.0 + eslint: 8.43.0 grapheme-splitter: 1.0.4 ignore: 5.2.4 natural-compare-lite: 1.4.0 @@ -845,7 +845,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@5.59.11(eslint@8.42.0)(typescript@5.1.3): + /@typescript-eslint/parser@5.59.11(eslint@8.43.0)(typescript@5.1.3): resolution: {integrity: sha512-s9ZF3M+Nym6CAZEkJJeO2TFHHDsKAM3ecNkLuH4i4s8/RCPnF5JRip2GyviYkeEAcwGMJxkqG9h2dAsnA1nZpA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -859,7 +859,7 @@ packages: '@typescript-eslint/types': 5.59.11 '@typescript-eslint/typescript-estree': 5.59.11(typescript@5.1.3) debug: 4.3.4 - eslint: 8.42.0 + eslint: 8.43.0 typescript: 5.1.3 transitivePeerDependencies: - supports-color @@ -873,7 +873,7 @@ packages: '@typescript-eslint/visitor-keys': 5.59.11 dev: true - /@typescript-eslint/type-utils@5.59.11(eslint@8.42.0)(typescript@5.1.3): + /@typescript-eslint/type-utils@5.59.11(eslint@8.43.0)(typescript@5.1.3): resolution: {integrity: sha512-LZqVY8hMiVRF2a7/swmkStMYSoXMFlzL6sXV6U/2gL5cwnLWQgLEG8tjWPpaE4rMIdZ6VKWwcffPlo1jPfk43g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -884,9 +884,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 5.59.11(typescript@5.1.3) - '@typescript-eslint/utils': 5.59.11(eslint@8.42.0)(typescript@5.1.3) + '@typescript-eslint/utils': 5.59.11(eslint@8.43.0)(typescript@5.1.3) debug: 4.3.4 - eslint: 8.42.0 + eslint: 8.43.0 tsutils: 3.21.0(typescript@5.1.3) typescript: 5.1.3 transitivePeerDependencies: @@ -919,19 +919,19 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@5.59.11(eslint@8.42.0)(typescript@5.1.3): + /@typescript-eslint/utils@5.59.11(eslint@8.43.0)(typescript@5.1.3): resolution: {integrity: sha512-didu2rHSOMUdJThLk4aZ1Or8IcO3HzCw/ZvEjTTIfjIrcdd5cvSIwwDy2AOlE7htSNp7QIZ10fLMyRCveesMLg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.42.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.43.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 5.59.11 '@typescript-eslint/types': 5.59.11 '@typescript-eslint/typescript-estree': 5.59.11(typescript@5.1.3) - eslint: 8.42.0 + eslint: 8.43.0 eslint-scope: 5.1.1 semver: 7.5.2 transitivePeerDependencies: @@ -1095,8 +1095,8 @@ packages: engines: {node: '>=8.0.0'} dev: false - /ava@5.3.0: - resolution: {integrity: sha512-QYvBdyygl1LGX13IuYsC4bkwVCzZeovMGbxYkD73i7DVJxNlWnFa06YgrBOTbjw2QvSKUl5fOJ92Kj5WK9hSeg==} + /ava@5.3.1: + resolution: {integrity: sha512-Scv9a4gMOXB6+ni4toLuhAm9KYWEjsgBglJl+kMGI5+IVDt120CCDZyB5HNU9DjmLI2t4I0GbnxGLmmRfGTJGg==} engines: {node: '>=14.19 <15 || >=16.15 <17 || >=18'} hasBin: true peerDependencies: @@ -1575,8 +1575,8 @@ packages: esutils: 2.0.3 dev: true - /dotenv@16.2.0: - resolution: {integrity: sha512-jcq2vR1DY1+QA+vH58RIrWLDZOifTGmyQJWzP9arDUbgZcySdzuBb1WvhWZzZtiXgfm+GW2pjBqStqlfpzq7wQ==} + /dotenv@16.3.0: + resolution: {integrity: sha512-tHB+hmf8MRCkT3VVivGiG8kq9HiGTmQ3FzOKgztfpJQH1IWuZTOvKSJmHNnQPowecAmkCJhLrxdPhOr06LLqIQ==} engines: {node: '>=12'} dev: true @@ -1741,15 +1741,15 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.42.0: - resolution: {integrity: sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==} + /eslint@8.43.0: + resolution: {integrity: sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.42.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.43.0) '@eslint-community/regexpp': 4.5.1 '@eslint/eslintrc': 2.0.3 - '@eslint/js': 8.42.0 + '@eslint/js': 8.43.0 '@humanwhocodes/config-array': 0.11.10 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 diff --git a/legacy/tsup.config.ts b/legacy/tsup.config.ts index f6f0cac4..453ae031 100644 --- a/legacy/tsup.config.ts +++ b/legacy/tsup.config.ts @@ -11,6 +11,10 @@ export default defineConfig([ sourcemap: true, minify: false, shims: true, - dts: true + dts: true, + esbuildOptions(options, context) { + options.target = 'es2020' + options.jsx = 'preserve' + } } ])