From 213464b1442ad15f8b5b7ed9821388dfcb370c82 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 21 Sep 2026 17:04:58 -0400 Subject: [PATCH 1/4] remove dts-buddy --- index.js | 36 ---------------- package.json | 12 +++--- pnpm-lock.yaml | 84 ------------------------------------ src/index.js | 8 ++++ src/{types.d.ts => types.ts} | 2 + tsconfig.json | 5 ++- 6 files changed, 18 insertions(+), 129 deletions(-) delete mode 100644 index.js create mode 100644 src/index.js rename src/{types.d.ts => types.ts} (99%) diff --git a/index.js b/index.js deleted file mode 100644 index 64d917a9..00000000 --- a/index.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @import { - * JavaScriptFragment as JavaScriptFragmentType, - * JavaScriptTag as JavaScriptTagType, - * UnevalReplacer as UnevalReplacerType, - * StringValueTag as StringValueTagType, - * ViewTag as ViewTagType, - * StringifyOperations as StringifyOperationsType, - * DefaultStringifyOperations as DefaultStringifyOperationsType, - * StringifyOptions as StringifyOptionsType, - * ParseOperations as ParseOperationsType, - * DefaultParseOperations as DefaultParseOperationsType, - * ParseOptions as ParseOptionsType - * } from './src/types.js' - */ - -export { uneval } from './src/uneval.js'; -export { parse, unflatten } from './src/parse.js'; -export { stringify, stringifyAsync } from './src/stringify.js'; -export { - default_stringify_operations as defaultStringifyOperations, - default_parse_operations as defaultParseOperations -} from './src/operations.js'; -export { DevalueError, filter_array_indices as filterArrayIndices } from './src/utils.js'; - -/** @typedef {JavaScriptFragmentType} JavaScriptFragment */ -/** @typedef {JavaScriptTagType} JavaScriptTag */ -/** @typedef {UnevalReplacerType} UnevalReplacer */ -/** @typedef {StringValueTagType} StringValueTag */ -/** @typedef {ViewTagType} ViewTag */ -/** @typedef {StringifyOperationsType} StringifyOperations */ -/** @typedef {DefaultStringifyOperationsType} DefaultStringifyOperations */ -/** @typedef {StringifyOptionsType} StringifyOptions */ -/** @typedef {ParseOperationsType} ParseOperations */ -/** @typedef {DefaultParseOperationsType} DefaultParseOperations */ -/** @typedef {ParseOptionsType} ParseOptions */ diff --git a/package.json b/package.json index 685da2ed..0d4f7288 100644 --- a/package.json +++ b/package.json @@ -6,17 +6,16 @@ "sideEffects": false, "exports": { ".": { - "types": "./types/index.d.ts", - "import": "./index.js", - "default": "./index.js" + "types": "./types/types.d.ts", + "import": "./src/index.js", + "default": "./src/index.js" } }, "files": [ - "index.js", "src", "types" ], - "types": "./types/index.d.ts", + "types": "./types/types.d.ts", "engines": { "node": ">=22.17" }, @@ -24,7 +23,6 @@ "@changesets/cli": "^2.29.6", "@js-temporal/polyfill": "^0.5.1", "@types/node": "^24.12.0", - "dts-buddy": "^0.8.3", "prettier": "^3.2.4", "publint": "^0.3.12", "typescript": "^6.0.3", @@ -34,7 +32,7 @@ "scripts": { "changeset:version": "changeset version", "changeset:publish": "changeset publish", - "build": "dts-buddy", + "build": "tsc", "test": "vitest run --project unit", "test:unit": "vitest run --project unit", "test:watch": "vitest --project unit", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c67eac2..37799c55 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,9 +17,6 @@ importers: '@types/node': specifier: ^24.12.0 version: 24.12.4 - dts-buddy: - specifier: ^0.8.3 - version: 0.8.3(typescript@6.0.3) prettier: specifier: ^3.2.4 version: 3.9.6 @@ -262,16 +259,10 @@ packages: '@types/node': optional: true - '@jridgewell/gen-mapping@0.3.13': - resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} - '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} - '@jridgewell/source-map@0.3.11': - resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==} - '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} @@ -491,12 +482,6 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} - dts-buddy@0.8.3: - resolution: {integrity: sha512-1x/UrAYRlQYA7QeLjyiTo5x6u5FvsU2hheGXT/hJWJ1zQzR+dMSQMMGPmuSKAH4/rhdCuLAtUZUr+NIXubwjfQ==} - hasBin: true - peerDependencies: - typescript: ^5.0.4 || ^6.0.0 - enquirer@2.4.1: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} @@ -621,10 +606,6 @@ packages: jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} - kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} - lightningcss-android-arm64@1.33.0: resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} engines: {node: '>= 12.0.0'} @@ -699,9 +680,6 @@ packages: resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} engines: {node: '>= 12.0.0'} - locate-character@3.0.0: - resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} - locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -709,9 +687,6 @@ packages: lodash.startcase@4.4.0: resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} - magic-string@0.30.21: - resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - magic-string@1.4.1: resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} @@ -784,10 +759,6 @@ packages: resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} engines: {node: '>=8.6'} - picomatch@4.0.4: - resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} - engines: {node: '>=12'} - picomatch@4.0.7: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} @@ -908,10 +879,6 @@ packages: resolution: {integrity: sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==} engines: {node: '>=18'} - tinyglobby@0.2.16: - resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==} - engines: {node: '>=12.0.0'} - tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} @@ -920,12 +887,6 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} - ts-api-utils@1.4.3: - resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==} - engines: {node: '>=16'} - peerDependencies: - typescript: '>=4.2.0' - typescript@6.0.3: resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} engines: {node: '>=14.17'} @@ -1264,18 +1225,8 @@ snapshots: optionalDependencies: '@types/node': 24.12.4 - '@jridgewell/gen-mapping@0.3.13': - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/trace-mapping': 0.3.31 - '@jridgewell/resolve-uri@3.1.2': {} - '@jridgewell/source-map@0.3.11': - dependencies: - '@jridgewell/gen-mapping': 0.3.13 - '@jridgewell/trace-mapping': 0.3.31 - '@jridgewell/sourcemap-codec@1.5.5': {} '@jridgewell/sourcemap-codec@1.6.0': {} @@ -1434,18 +1385,6 @@ snapshots: dependencies: path-type: 4.0.0 - dts-buddy@0.8.3(typescript@6.0.3): - dependencies: - '@jridgewell/source-map': 0.3.11 - '@jridgewell/sourcemap-codec': 1.5.5 - kleur: 4.1.5 - locate-character: 3.0.0 - magic-string: 0.30.21 - sade: 1.8.1 - tinyglobby: 0.2.16 - ts-api-utils: 1.4.3(typescript@6.0.3) - typescript: 6.0.3 - enquirer@2.4.1: dependencies: ansi-colors: 4.1.3 @@ -1505,10 +1444,6 @@ snapshots: dependencies: reusify: 1.1.0 - fdir@6.5.0(picomatch@4.0.4): - optionalDependencies: - picomatch: 4.0.4 - fdir@6.5.0(picomatch@4.0.7): optionalDependencies: picomatch: 4.0.7 @@ -1591,8 +1526,6 @@ snapshots: optionalDependencies: graceful-fs: 4.2.11 - kleur@4.1.5: {} - lightningcss-android-arm64@1.33.0: optional: true @@ -1642,18 +1575,12 @@ snapshots: lightningcss-win32-arm64-msvc: 1.33.0 lightningcss-win32-x64-msvc: 1.33.0 - locate-character@3.0.0: {} - locate-path@5.0.0: dependencies: p-locate: 4.1.0 lodash.startcase@4.4.0: {} - magic-string@0.30.21: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - magic-string@1.4.1: dependencies: '@jridgewell/sourcemap-codec': 1.6.0 @@ -1705,8 +1632,6 @@ snapshots: picomatch@2.3.2: {} - picomatch@4.0.4: {} - picomatch@4.0.7: {} pify@4.0.1: {} @@ -1813,11 +1738,6 @@ snapshots: tinyexec@1.3.0: {} - tinyglobby@0.2.16: - dependencies: - fdir: 6.5.0(picomatch@4.0.4) - picomatch: 4.0.4 - tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.7) @@ -1827,10 +1747,6 @@ snapshots: dependencies: is-number: 7.0.0 - ts-api-utils@1.4.3(typescript@6.0.3): - dependencies: - typescript: 6.0.3 - typescript@6.0.3: {} undici-types@7.16.0: {} diff --git a/src/index.js b/src/index.js new file mode 100644 index 00000000..bdb3dba1 --- /dev/null +++ b/src/index.js @@ -0,0 +1,8 @@ +export { uneval } from './uneval.js'; +export { parse, unflatten } from './parse.js'; +export { stringify, stringifyAsync } from './stringify.js'; +export { + default_stringify_operations as defaultStringifyOperations, + default_parse_operations as defaultParseOperations +} from './operations.js'; +export { DevalueError, filter_array_indices as filterArrayIndices } from './utils.js'; diff --git a/src/types.d.ts b/src/types.ts similarity index 99% rename from src/types.d.ts rename to src/types.ts index d85aeacc..7740adaa 100644 --- a/src/types.d.ts +++ b/src/types.ts @@ -1,5 +1,7 @@ import type { JavaScriptFragment } from './javascript-source.js'; +export * from './index.js'; + export type { JavaScriptFragment }; export type StringValueTag = diff --git a/tsconfig.json b/tsconfig.json index c3bcd67d..29630998 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,8 +11,9 @@ "lib": ["es6", "esnext", "dom"], "module": "esnext", "target": "esnext", - "types": ["node"] + "types": ["node"], + "rootDir": "./src" }, - "include": ["index.js", "src/*.js"], + "include": ["src/index.js", "src/types.ts"], "exclude": ["node_modules", "src/*.test.js"] } From 48c9b318a7dbd5242e996771d39348dff465debc Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 21 Sep 2026 17:06:19 -0400 Subject: [PATCH 2/4] bump ts --- package.json | 2 +- pnpm-lock.yaml | 213 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 208 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 0d4f7288..79111cd5 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@types/node": "^24.12.0", "prettier": "^3.2.4", "publint": "^0.3.12", - "typescript": "^6.0.3", + "typescript": "^7.0.2", "vite": "8.3.0", "vitest": "5.0.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 37799c55..0ea44575 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ importers: specifier: ^0.3.12 version: 0.3.21 typescript: - specifier: ^6.0.3 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 vite: specifier: 8.3.0 version: 8.3.0(@types/node@24.12.4)(esbuild@0.28.2) @@ -415,6 +415,126 @@ packages: '@types/node@24.12.4': resolution: {integrity: sha512-GUUEShf+PBCGW2KaXwcIt3Yk+e3pkKwWKb9GSyM9WQVE+ep2jzmHdGsHzu4wgcZy5fN9FBdVzjpBQsYlpfpgLA==} + '@typescript/typescript-aix-ppc64@7.0.2': + resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==} + engines: {node: '>=16.20.0'} + cpu: [ppc64] + os: [aix] + + '@typescript/typescript-darwin-arm64@7.0.2': + resolution: {integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [darwin] + + '@typescript/typescript-darwin-x64@7.0.2': + resolution: {integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [darwin] + + '@typescript/typescript-freebsd-arm64@7.0.2': + resolution: {integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [freebsd] + + '@typescript/typescript-freebsd-x64@7.0.2': + resolution: {integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [freebsd] + + '@typescript/typescript-linux-arm64@7.0.2': + resolution: {integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [linux] + + '@typescript/typescript-linux-arm@7.0.2': + resolution: {integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==} + engines: {node: '>=16.20.0'} + cpu: [arm] + os: [linux] + + '@typescript/typescript-linux-loong64@7.0.2': + resolution: {integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==} + engines: {node: '>=16.20.0'} + cpu: [loong64] + os: [linux] + + '@typescript/typescript-linux-mips64el@7.0.2': + resolution: {integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==} + engines: {node: '>=16.20.0'} + cpu: [mips64el] + os: [linux] + + '@typescript/typescript-linux-ppc64@7.0.2': + resolution: {integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==} + engines: {node: '>=16.20.0'} + cpu: [ppc64] + os: [linux] + + '@typescript/typescript-linux-riscv64@7.0.2': + resolution: {integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==} + engines: {node: '>=16.20.0'} + cpu: [riscv64] + os: [linux] + + '@typescript/typescript-linux-s390x@7.0.2': + resolution: {integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==} + engines: {node: '>=16.20.0'} + cpu: [s390x] + os: [linux] + + '@typescript/typescript-linux-x64@7.0.2': + resolution: {integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [linux] + + '@typescript/typescript-netbsd-arm64@7.0.2': + resolution: {integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [netbsd] + + '@typescript/typescript-netbsd-x64@7.0.2': + resolution: {integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [netbsd] + + '@typescript/typescript-openbsd-arm64@7.0.2': + resolution: {integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [openbsd] + + '@typescript/typescript-openbsd-x64@7.0.2': + resolution: {integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [openbsd] + + '@typescript/typescript-sunos-x64@7.0.2': + resolution: {integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [sunos] + + '@typescript/typescript-win32-arm64@7.0.2': + resolution: {integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [win32] + + '@typescript/typescript-win32-x64@7.0.2': + resolution: {integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [win32] + '@vitest/mocker@5.0.1': resolution: {integrity: sha512-6K1DoBNAPGvuOcSsGA4D6x+5zEEff/KmOOP3uetT2TrGpVfI+HRHRnJJfKi5ib/g1vx8IYHQD8s0pbJz8WQI7Q==} peerDependencies: @@ -887,9 +1007,9 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} - typescript@6.0.3: - resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} - engines: {node: '>=14.17'} + typescript@7.0.2: + resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==} + engines: {node: '>=16.20.0'} hasBin: true undici-types@7.16.0: @@ -1334,6 +1454,66 @@ snapshots: dependencies: undici-types: 7.16.0 + '@typescript/typescript-aix-ppc64@7.0.2': + optional: true + + '@typescript/typescript-darwin-arm64@7.0.2': + optional: true + + '@typescript/typescript-darwin-x64@7.0.2': + optional: true + + '@typescript/typescript-freebsd-arm64@7.0.2': + optional: true + + '@typescript/typescript-freebsd-x64@7.0.2': + optional: true + + '@typescript/typescript-linux-arm64@7.0.2': + optional: true + + '@typescript/typescript-linux-arm@7.0.2': + optional: true + + '@typescript/typescript-linux-loong64@7.0.2': + optional: true + + '@typescript/typescript-linux-mips64el@7.0.2': + optional: true + + '@typescript/typescript-linux-ppc64@7.0.2': + optional: true + + '@typescript/typescript-linux-riscv64@7.0.2': + optional: true + + '@typescript/typescript-linux-s390x@7.0.2': + optional: true + + '@typescript/typescript-linux-x64@7.0.2': + optional: true + + '@typescript/typescript-netbsd-arm64@7.0.2': + optional: true + + '@typescript/typescript-netbsd-x64@7.0.2': + optional: true + + '@typescript/typescript-openbsd-arm64@7.0.2': + optional: true + + '@typescript/typescript-openbsd-x64@7.0.2': + optional: true + + '@typescript/typescript-sunos-x64@7.0.2': + optional: true + + '@typescript/typescript-win32-arm64@7.0.2': + optional: true + + '@typescript/typescript-win32-x64@7.0.2': + optional: true + '@vitest/mocker@5.0.1(vite@8.3.0(@types/node@24.12.4)(esbuild@0.28.2))': dependencies: '@jridgewell/trace-mapping': 0.3.31 @@ -1747,7 +1927,28 @@ snapshots: dependencies: is-number: 7.0.0 - typescript@6.0.3: {} + typescript@7.0.2: + optionalDependencies: + '@typescript/typescript-aix-ppc64': 7.0.2 + '@typescript/typescript-darwin-arm64': 7.0.2 + '@typescript/typescript-darwin-x64': 7.0.2 + '@typescript/typescript-freebsd-arm64': 7.0.2 + '@typescript/typescript-freebsd-x64': 7.0.2 + '@typescript/typescript-linux-arm': 7.0.2 + '@typescript/typescript-linux-arm64': 7.0.2 + '@typescript/typescript-linux-loong64': 7.0.2 + '@typescript/typescript-linux-mips64el': 7.0.2 + '@typescript/typescript-linux-ppc64': 7.0.2 + '@typescript/typescript-linux-riscv64': 7.0.2 + '@typescript/typescript-linux-s390x': 7.0.2 + '@typescript/typescript-linux-x64': 7.0.2 + '@typescript/typescript-netbsd-arm64': 7.0.2 + '@typescript/typescript-netbsd-x64': 7.0.2 + '@typescript/typescript-openbsd-arm64': 7.0.2 + '@typescript/typescript-openbsd-x64': 7.0.2 + '@typescript/typescript-sunos-x64': 7.0.2 + '@typescript/typescript-win32-arm64': 7.0.2 + '@typescript/typescript-win32-x64': 7.0.2 undici-types@7.16.0: {} From 758f2525a5273a03ccd13821ff5a7554d9302e96 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 21 Sep 2026 17:06:58 -0400 Subject: [PATCH 3/4] changeset --- .changeset/fancy-doodles-brush.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fancy-doodles-brush.md diff --git a/.changeset/fancy-doodles-brush.md b/.changeset/fancy-doodles-brush.md new file mode 100644 index 00000000..ba462fd8 --- /dev/null +++ b/.changeset/fancy-doodles-brush.md @@ -0,0 +1,5 @@ +--- +'devalue': patch +--- + +chore: remove dts-buddy From f18362a1909735d4e49dac906658c660c42f29a9 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 21 Sep 2026 17:09:45 -0400 Subject: [PATCH 4/4] fix --- benchmarking/benchmarks/stringify.js | 2 +- test/buffer.test.js | 4 ++-- test/error-path.test.js | 2 +- test/index.test.js | 2 +- test/operations.test.js | 2 +- test/parse-operations.test.js | 2 +- test/stringify-async.test.js | 2 +- test/stringify-keys.test.js | 2 +- test/uneval-ordering.test.js | 2 +- test/uneval-primitives.test.js | 2 +- test/uneval-typed-array.test.js | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/benchmarking/benchmarks/stringify.js b/benchmarking/benchmarks/stringify.js index ae952ad5..9007808e 100644 --- a/benchmarking/benchmarks/stringify.js +++ b/benchmarking/benchmarks/stringify.js @@ -1,4 +1,4 @@ -import { stringify } from '../../index.js'; +import { stringify } from '../../src/index.js'; import { records } from '../records.js'; import { fastest_test } from '../utils.js'; diff --git a/test/buffer.test.js b/test/buffer.test.js index 7d86dbf2..9b881700 100644 --- a/test/buffer.test.js +++ b/test/buffer.test.js @@ -3,7 +3,7 @@ import { readFileSync } from 'node:fs'; import { runInNewContext } from 'node:vm'; import assert from 'node:assert/strict'; import { describe, test } from 'vitest'; -import { parse, stringify, stringifyAsync, uneval } from '../index.js'; +import { parse, stringify, stringifyAsync, uneval } from '../src/index.js'; const serializers = [ [uneval, (source) => (0, eval)(`(${source})`)], @@ -141,7 +141,7 @@ test('serializes typed arrays without Node globals', () => { globalThis.Buffer = undefined; globalThis.process = undefined; const { parse, stringify, stringifyAsync, uneval } = await import( - ${JSON.stringify(new URL('../index.js', import.meta.url).href)} + ${JSON.stringify(new URL('../src/index.js', import.meta.url).href)} ); const value = new Uint8Array([1, 2, 3]); deepStrictEqual((0, eval)(uneval(value)), value); diff --git a/test/error-path.test.js b/test/error-path.test.js index 3beac760..a8d66a70 100644 --- a/test/error-path.test.js +++ b/test/error-path.test.js @@ -1,5 +1,5 @@ import { describe, expect, test } from 'vitest'; -import { DevalueError, stringify, stringifyAsync, uneval } from '../index.js'; +import { DevalueError, stringify, stringifyAsync, uneval } from '../src/index.js'; /** * @param {(value: any) => any} fn diff --git a/test/index.test.js b/test/index.test.js index 7066c315..c982610f 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -2,7 +2,7 @@ import assert from 'node:assert/strict'; import * as vm from 'vm'; import { describe, test, expect } from 'vitest'; import * as consts from '../src/constants.js'; -import { uneval, unflatten, parse, stringify, stringifyAsync } from '../index.js'; +import { uneval, unflatten, parse, stringify, stringifyAsync } from '../src/index.js'; globalThis.Temporal ??= (await import('@js-temporal/polyfill')).Temporal; diff --git a/test/operations.test.js b/test/operations.test.js index 65ef46ac..ed0d64a4 100644 --- a/test/operations.test.js +++ b/test/operations.test.js @@ -5,7 +5,7 @@ import { defaultStringifyOperations, filterArrayIndices, parse -} from '../index.js'; +} from '../src/index.js'; globalThis.Temporal ??= (await import('@js-temporal/polyfill')).Temporal; diff --git a/test/parse-operations.test.js b/test/parse-operations.test.js index 60d1fabe..efa759bc 100644 --- a/test/parse-operations.test.js +++ b/test/parse-operations.test.js @@ -7,7 +7,7 @@ import { unflatten, defaultParseOperations, defaultStringifyOperations -} from '../index.js'; +} from '../src/index.js'; globalThis.Temporal ??= (await import('@js-temporal/polyfill')).Temporal; diff --git a/test/stringify-async.test.js b/test/stringify-async.test.js index f0553d9c..2dd22ef2 100644 --- a/test/stringify-async.test.js +++ b/test/stringify-async.test.js @@ -14,7 +14,7 @@ describe('stringifyAsync: rejection handling', () => { ` import assert from 'node:assert/strict'; import { setTimeout as delay } from 'node:timers/promises'; - import { stringifyAsync } from ${JSON.stringify(new URL('../index.js', import.meta.url).href)}; + import { stringifyAsync } from ${JSON.stringify(new URL('../src/index.js', import.meta.url).href)}; await (${fn})({ assert, delay, stringifyAsync }); ` ], diff --git a/test/stringify-keys.test.js b/test/stringify-keys.test.js index e183413f..f8f7a4ac 100644 --- a/test/stringify-keys.test.js +++ b/test/stringify-keys.test.js @@ -1,5 +1,5 @@ import { describe, expect, test } from 'vitest'; -import { parse, stringify, stringifyAsync } from '../index.js'; +import { parse, stringify, stringifyAsync } from '../src/index.js'; describe.each([ { name: 'stringify', fn: stringify }, diff --git a/test/uneval-ordering.test.js b/test/uneval-ordering.test.js index e871e8e9..7d06aa73 100644 --- a/test/uneval-ordering.test.js +++ b/test/uneval-ordering.test.js @@ -1,6 +1,6 @@ import * as vm from 'node:vm'; import { describe, expect, test } from 'vitest'; -import { uneval } from '../index.js'; +import { uneval } from '../src/index.js'; describe('uneval: collection construction order', () => { describe.each(['map value', 'map key', 'set'])('%s:', (kind) => { diff --git a/test/uneval-primitives.test.js b/test/uneval-primitives.test.js index 20848f6f..7f5bb7b0 100644 --- a/test/uneval-primitives.test.js +++ b/test/uneval-primitives.test.js @@ -1,6 +1,6 @@ import assert from 'node:assert/strict'; import { describe, test } from 'vitest'; -import { parse, stringify, uneval } from '../index.js'; +import { parse, stringify, uneval } from '../src/index.js'; describe('uneval: repeated primitives', () => { describe.each([ diff --git a/test/uneval-typed-array.test.js b/test/uneval-typed-array.test.js index 30fbd3eb..fbaa81f1 100644 --- a/test/uneval-typed-array.test.js +++ b/test/uneval-typed-array.test.js @@ -1,5 +1,5 @@ import { describe, expect, test } from 'vitest'; -import { uneval } from '../index.js'; +import { uneval } from '../src/index.js'; describe.each([ { TypedArray: Int16Array },