From 7c85b19ecdcf4f87052e50f98e3df3d9ecd4bf2f Mon Sep 17 00:00:00 2001 From: JounQin Date: Fri, 6 Jun 2025 01:25:00 +0800 Subject: [PATCH] chore: remove unused hash util --- CHANGELOG.md | 4 +- package.json | 4 +- src/utils/hash.ts | 53 ---------- src/utils/index.ts | 1 - test/utils/hash.spec.ts | 109 -------------------- yarn.lock | 215 ++++++++++++++++++++-------------------- 6 files changed, 114 insertions(+), 272 deletions(-) delete mode 100644 src/utils/hash.ts delete mode 100644 test/utils/hash.spec.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ec729e0..839d75fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,9 @@ - [#373](https://github.com/un-ts/eslint-plugin-import-x/pull/373) [`90ec1f1`](https://github.com/un-ts/eslint-plugin-import-x/commit/90ec1f1f0eecc7ef566a14b5163cb7c1ec05e6de) Thanks [@JounQin](https://github.com/JounQin)! - chore: migrate `stable-hash` to `stable-hash-x` -- [#371](https://github.com/un-ts/eslint-plugin-import-x/pull/371) [`4f97a1a`](https://github.com/un-ts/eslint-plugin-import-x/commit/4f97a1a1419c15821ba1ab07e4038b715208ac7a) Thanks [@dword-design](https://github.com/dword-design)! - fix: take `context.cwd` into account for glob options of rules `no-extraneous-dependencies` and `no-unassigned-import` +- [#371](https://github.com/un-ts/eslint-plugin-import-x/pull/371) [`4f97a1a`](https://github.com/un-ts/eslint-plugin-import-x/commit/4f97a1a1419c15821ba1ab07e4038b715208ac7a) Thanks [@dword-design](https://github.com/dword-design) and [@JounQin](https://github.com/JounQin)! - fix: take `context.cwd` into account for glob options of rules `no-extraneous-dependencies` and `no-unassigned-import` -- [#371](https://github.com/un-ts/eslint-plugin-import-x/pull/371) [`4f97a1a`](https://github.com/un-ts/eslint-plugin-import-x/commit/4f97a1a1419c15821ba1ab07e4038b715208ac7a) Thanks [@dword-design](https://github.com/dword-design)! - fix: enable `nocomment: true` for glob options of rules `no-import-module-exports` and `no-namespace` +- [#371](https://github.com/un-ts/eslint-plugin-import-x/pull/371) [`4f97a1a`](https://github.com/un-ts/eslint-plugin-import-x/commit/4f97a1a1419c15821ba1ab07e4038b715208ac7a) Thanks [@JounQin](https://github.com/JounQin)! - fix: enable `nocomment: true` for glob options of rules `no-import-module-exports` and `no-namespace` - [#368](https://github.com/un-ts/eslint-plugin-import-x/pull/368) [`74a16c5`](https://github.com/un-ts/eslint-plugin-import-x/commit/74a16c52bfba784ae44db7e200a3023d00dc82f3) Thanks [@JoseGoncalves](https://github.com/JoseGoncalves)! - fix: drop `languageOptions` config from `flat/recommended` diff --git a/package.json b/package.json index cce408c8..84bdfea6 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "@typescript-eslint/types": "^8.33.1", "comment-parser": "^1.4.1", "debug": "^4.4.1", - "eslint-import-context": "^0.1.7", + "eslint-import-context": "^0.1.8", "is-glob": "^4.0.3", "minimatch": "^9.0.3 || ^10.0.1", "semver": "^7.7.2", @@ -161,7 +161,7 @@ "tinyexec": "^1.0.1", "tmp": "^0.2.3", "ts-node": "^10.9.2", - "tsdown": "^0.12.6", + "tsdown": "^0.12.7", "type-fest": "^4.41.0", "typescript": "^5.8.3", "typescript-eslint": "^8.33.1", diff --git a/src/utils/hash.ts b/src/utils/hash.ts deleted file mode 100644 index d3b9f547..00000000 --- a/src/utils/hash.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Utilities for hashing config objects. basically iteratively updates hash with - * a JSON-like format - */ - -import type { Hash } from 'node:crypto' -import { createHash } from 'node:crypto' - -export function hashify(value?: unknown, hash?: Hash) { - hash ??= createHash('sha256') - - if (Array.isArray(value)) { - hashArray(value, hash) - } else if (value instanceof Object) { - hashObject(value, hash) - } else { - hash.update(JSON.stringify(value) || 'undefined') - } - - return hash -} - -export function hashArray(array: unknown[], hash?: Hash) { - hash ??= createHash('sha256') - - hash.update('[') - - for (const element of array) { - hashify(element, hash) - hash.update(',') - } - - hash.update(']') - - return hash -} - -export function hashObject(object: T, hash?: Hash) { - hash ??= createHash('sha256') - - hash.update('{') - - for (const key of Object.keys(object).sort()) { - hash.update(JSON.stringify(key)) - hash.update(':') - hashify(object[key as keyof T], hash) - hash.update(',') - } - - hash.update('}') - - return hash -} diff --git a/src/utils/index.ts b/src/utils/index.ts index 539790f1..b0c67aa8 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -18,7 +18,6 @@ export * from './deep-merge.js' export * from './docs-url.js' export * from './export-map.js' export * from './get-value.js' -export * from './hash.js' export * from './ignore.js' export * from './import-declaration.js' export * from './import-type.js' diff --git a/test/utils/hash.spec.ts b/test/utils/hash.spec.ts deleted file mode 100644 index a4d3ff84..00000000 --- a/test/utils/hash.spec.ts +++ /dev/null @@ -1,109 +0,0 @@ -import type { Hash } from 'node:crypto' -import { createHash } from 'node:crypto' - -import { hashify, hashArray, hashObject } from 'eslint-plugin-import-x/utils' - -function expectHash(actualHash: Hash, expectedString: string) { - const expectedHash = createHash('sha256') - expectedHash.update(expectedString) - // to be a hex digest of sha256 hash of string <${expectedString}> - expect(actualHash.digest('hex')).toBe(expectedHash.digest('hex')) -} - -describe('hash', () => { - describe('hashify', () => { - it('handles null', () => { - expectHash(hashify(null), 'null') - }) - - it('handles undefined', () => { - expectHash(hashify(), 'undefined') - }) - - it('handles numbers', () => { - expectHash(hashify(123.456), '123.456') - }) - - it('handles strings', () => { - expectHash(hashify('a string'), '"a string"') - }) - - it('handles Array instances', () => { - expectHash(hashify(['a string']), '["a string",]') - }) - - it('handles empty Array instances', () => { - expectHash(hashify([]), '[]') - }) - - it('handles Object instances', () => { - expectHash( - hashify({ foo: 123.456, 'a key': 'a value' }), - '{"a key":"a value","foo":123.456,}', - ) - }) - - it('handles nested Object instances', () => { - expectHash( - hashify({ - foo: 123.456, - 'a key': 'a value', - obj: { abc: { def: 'ghi' } }, - }), - '{"a key":"a value","foo":123.456,"obj":{"abc":{"def":"ghi",},},}', - ) - }) - - it('handles nested Object and Array instances', () => { - expectHash( - hashify({ - foo: 123.456, - 'a key': 'a value', - obj: { arr: [{ def: 'ghi' }] }, - }), - '{"a key":"a value","foo":123.456,"obj":{"arr":[{"def":"ghi",},],},}', - ) - }) - }) - - describe('hashArray', () => { - it('handles Array instances', () => { - expectHash(hashArray(['a string']), '["a string",]') - }) - - it('handles empty Array instances', () => { - expectHash(hashArray([]), '[]') - }) - }) - - describe('hashObject', () => { - it('handles Object instances', () => { - expectHash( - hashObject({ foo: 123.456, 'a key': 'a value' }), - '{"a key":"a value","foo":123.456,}', - ) - }) - - it('handles nested Object instances', () => { - expectHash( - hashObject({ - foo: 123.456, - 'a key': 'a value', - obj: { abc: { def: 'ghi' } }, - }), - '{"a key":"a value","foo":123.456,"obj":{"abc":{"def":"ghi",},},}', - ) - }) - - it('handles nested Object and Array instances', () => { - expectHash( - hashObject({ - foo: 123.456, - 'a key': 'a value', - obj: { arr: [{ def: 'ghi' }] }, - }), - '{"a key":"a value","foo":123.456,"obj":{"arr":[{"def":"ghi",},],},}', - ) - }) - }) -}) diff --git a/yarn.lock b/yarn.lock index ec13b0ab..736f5b8b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -395,12 +395,12 @@ __metadata: linkType: hard "@babel/helpers@npm:^7.27.4": - version: 7.27.4 - resolution: "@babel/helpers@npm:7.27.4" + version: 7.27.6 + resolution: "@babel/helpers@npm:7.27.6" dependencies: "@babel/template": "npm:^7.27.2" - "@babel/types": "npm:^7.27.3" - checksum: 10c0/3463551420926b3f403c1a30d66ac67bba5c4f73539a8ccb71544da129c4709ac37c57fac740ed8a261b3e6bbbf353b05e03b36ea1a6bf1081604b2a94ca43c1 + "@babel/types": "npm:^7.27.6" + checksum: 10c0/448bac96ef8b0f21f2294a826df9de6bf4026fd023f8a6bb6c782fe3e61946801ca24381490b8e58d861fee75cd695a1882921afbf1f53b0275ee68c938bd6d3 languageName: node linkType: hard @@ -1554,9 +1554,9 @@ __metadata: linkType: hard "@babel/runtime@npm:^7.5.5": - version: 7.27.4 - resolution: "@babel/runtime@npm:7.27.4" - checksum: 10c0/ca99e964179c31615e1352e058cc9024df7111c829631c90eec84caba6703cc32acc81503771847c306b3c70b815609fe82dde8682936debe295b0b283b2dc6e + version: 7.27.6 + resolution: "@babel/runtime@npm:7.27.6" + checksum: 10c0/89726be83f356f511dcdb74d3ea4d873a5f0cf0017d4530cb53aa27380c01ca102d573eff8b8b77815e624b1f8c24e7f0311834ad4fb632c90a770fda00bd4c8 languageName: node linkType: hard @@ -1586,13 +1586,13 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.4.4": - version: 7.27.3 - resolution: "@babel/types@npm:7.27.3" +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.27.6, @babel/types@npm:^7.4.4": + version: 7.27.6 + resolution: "@babel/types@npm:7.27.6" dependencies: "@babel/helper-string-parser": "npm:^7.27.1" "@babel/helper-validator-identifier": "npm:^7.27.1" - checksum: 10c0/bafdfc98e722a6b91a783b6f24388f478fd775f0c0652e92220e08be2cc33e02d42088542f1953ac5e5ece2ac052172b3dadedf12bec9aae57899e92fb9a9757 + checksum: 10c0/39d556be114f2a6d874ea25ad39826a9e3a0e98de0233ae6d932f6d09a4b222923a90a7274c635ed61f1ba49bbd345329226678800900ad1c8d11afabd573aaf languageName: node linkType: hard @@ -3047,17 +3047,17 @@ __metadata: languageName: node linkType: hard -"@oxc-project/runtime@npm:0.72.1": - version: 0.72.1 - resolution: "@oxc-project/runtime@npm:0.72.1" - checksum: 10c0/d9fc8dc1e448f665e578676a389dba1f62045a437df387e94341e6fab24a5cd8377b7a4ef851762f7f4f9a8c5cf60187f71df77515e693d3c31d59d801f5638f +"@oxc-project/runtime@npm:=0.72.2": + version: 0.72.2 + resolution: "@oxc-project/runtime@npm:0.72.2" + checksum: 10c0/6a373ab00241ab792aa46966378c35d0294a5cb372b5f46ce4dc5ac6a6bb710c3f96e6ea8fa2fc8063366fc691bbc39d3c23bc2c8210086df4f1416b4acb415e languageName: node linkType: hard -"@oxc-project/types@npm:0.72.1": - version: 0.72.1 - resolution: "@oxc-project/types@npm:0.72.1" - checksum: 10c0/0575c697978f0089b6b746623d78ac83dc547a8b928c2b939839ace1e39a192e3c0afa770ae1c6b4d5d57a4e628e15a324a0f74cfd8c927dd563592fa95dd031 +"@oxc-project/types@npm:=0.72.2": + version: 0.72.2 + resolution: "@oxc-project/types@npm:0.72.2" + checksum: 10c0/92e6bfbfb8eeec60c85344e074089315d9bef4ed393afbec2e2ceb16f3ed77a070ed3597fdfa635441e20a63d0a2468a85a4dde347ade7d7e935f1eb1ae3586a languageName: node linkType: hard @@ -3232,94 +3232,96 @@ __metadata: languageName: node linkType: hard -"@rolldown/binding-darwin-arm64@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-darwin-arm64@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-darwin-arm64@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-darwin-arm64@npm:1.0.0-beta.11-commit.f051675" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rolldown/binding-darwin-x64@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-darwin-x64@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-darwin-x64@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-darwin-x64@npm:1.0.0-beta.11-commit.f051675" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rolldown/binding-freebsd-x64@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-freebsd-x64@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-freebsd-x64@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-freebsd-x64@npm:1.0.0-beta.11-commit.f051675" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@rolldown/binding-linux-arm-gnueabihf@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-linux-arm-gnueabihf@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-linux-arm-gnueabihf@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-linux-arm-gnueabihf@npm:1.0.0-beta.11-commit.f051675" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@rolldown/binding-linux-arm64-gnu@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-linux-arm64-gnu@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-linux-arm64-gnu@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-linux-arm64-gnu@npm:1.0.0-beta.11-commit.f051675" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rolldown/binding-linux-arm64-musl@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-linux-arm64-musl@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-linux-arm64-musl@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-linux-arm64-musl@npm:1.0.0-beta.11-commit.f051675" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rolldown/binding-linux-x64-gnu@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-linux-x64-gnu@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-linux-x64-gnu@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-linux-x64-gnu@npm:1.0.0-beta.11-commit.f051675" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rolldown/binding-linux-x64-musl@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-linux-x64-musl@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-linux-x64-musl@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-linux-x64-musl@npm:1.0.0-beta.11-commit.f051675" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rolldown/binding-wasm32-wasi@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-wasm32-wasi@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-wasm32-wasi@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-wasm32-wasi@npm:1.0.0-beta.11-commit.f051675" + dependencies: + "@napi-rs/wasm-runtime": "npm:^0.2.10" conditions: cpu=wasm32 languageName: node linkType: hard -"@rolldown/binding-win32-arm64-msvc@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-win32-arm64-msvc@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-win32-arm64-msvc@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-win32-arm64-msvc@npm:1.0.0-beta.11-commit.f051675" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rolldown/binding-win32-ia32-msvc@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-win32-ia32-msvc@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-win32-ia32-msvc@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-win32-ia32-msvc@npm:1.0.0-beta.11-commit.f051675" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rolldown/binding-win32-x64-msvc@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/binding-win32-x64-msvc@npm:1.0.0-beta.10-commit.87188ed" +"@rolldown/binding-win32-x64-msvc@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/binding-win32-x64-msvc@npm:1.0.0-beta.11-commit.f051675" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"@rolldown/pluginutils@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "@rolldown/pluginutils@npm:1.0.0-beta.10-commit.87188ed" - checksum: 10c0/fc31321290ce7cbae8120c8653cdd2246e86e1fd1b711c8bce69c01c3cddbaa784c0fa07838a4e16a387c561edeff0415aeadde1a46cad28450f60b6b090dbcf +"@rolldown/pluginutils@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "@rolldown/pluginutils@npm:1.0.0-beta.11-commit.f051675" + checksum: 10c0/fda4579c752ac0485e63471ae812fad0f3b75e0963d778c54cbd3ddbc73882b5cbf449d7f554ecc07b09ef80a6c8c789dde948121cba6f4519e452a9e84e6f67 languageName: node linkType: hard @@ -4652,7 +4654,7 @@ __metadata: languageName: node linkType: hard -"ast-kit@npm:^2.0.0": +"ast-kit@npm:^2.1.0": version: 2.1.0 resolution: "ast-kit@npm:2.1.0" dependencies: @@ -5602,15 +5604,15 @@ __metadata: languageName: node linkType: hard -"dts-resolver@npm:^2.0.1": - version: 2.1.0 - resolution: "dts-resolver@npm:2.1.0" +"dts-resolver@npm:^2.1.1": + version: 2.1.1 + resolution: "dts-resolver@npm:2.1.1" peerDependencies: oxc-resolver: ">=11.0.0" peerDependenciesMeta: oxc-resolver: optional: true - checksum: 10c0/ddbd56e1e11b141bfec3fb2bfc258d7f7489a446fb9e4dcde6bc8509ed8fae37f0edfc6f8b9cd77b2d8b0e6a67f28e1921dec89726e3935b8e4a4f8f336c77d1 + checksum: 10c0/bc36d71822d39f23cfe274b6781fae4b1729bd8b0a07e4a011fe243a73c5dbbb30ea067fb0d6248fdfedc29cf4dfc0ff19f0dd38950158444409d109c1c55b7e languageName: node linkType: hard @@ -5876,7 +5878,7 @@ __metadata: languageName: node linkType: hard -"eslint-import-context@npm:^0.1.5, eslint-import-context@npm:^0.1.7": +"eslint-import-context@npm:^0.1.5, eslint-import-context@npm:^0.1.8": version: 0.1.8 resolution: "eslint-import-context@npm:0.1.8" dependencies: @@ -6053,7 +6055,7 @@ __metadata: eslint: "npm:^9.28.0" eslint-config-prettier: "npm:^10.1.5" eslint-doc-generator: "npm:^2.1.2" - eslint-import-context: "npm:^0.1.7" + eslint-import-context: "npm:^0.1.8" eslint-import-resolver-typescript: "npm:^4.4.2" eslint-import-resolver-webpack: "npm:^0.13.10" eslint-import-test-order-redirect: "link:./test/fixtures/order-redirect" @@ -6086,7 +6088,7 @@ __metadata: tinyexec: "npm:^1.0.1" tmp: "npm:^0.2.3" ts-node: "npm:^10.9.2" - tsdown: "npm:^0.12.6" + tsdown: "npm:^0.12.7" type-fest: "npm:^4.41.0" typescript: "npm:^5.8.3" typescript-eslint: "npm:^8.33.1" @@ -11765,50 +11767,53 @@ __metadata: languageName: node linkType: hard -"rolldown-plugin-dts@npm:^0.13.6": - version: 0.13.7 - resolution: "rolldown-plugin-dts@npm:0.13.7" +"rolldown-plugin-dts@npm:^0.13.8": + version: 0.13.8 + resolution: "rolldown-plugin-dts@npm:0.13.8" dependencies: - "@babel/generator": "npm:^7.27.3" - "@babel/parser": "npm:^7.27.3" + "@babel/generator": "npm:^7.27.5" + "@babel/parser": "npm:^7.27.5" "@babel/types": "npm:^7.27.3" - ast-kit: "npm:^2.0.0" + ast-kit: "npm:^2.1.0" birpc: "npm:^2.3.0" debug: "npm:^4.4.1" - dts-resolver: "npm:^2.0.1" + dts-resolver: "npm:^2.1.1" get-tsconfig: "npm:^4.10.1" peerDependencies: + "@typescript/native-preview": ">=7.0.0-dev.20250601.1" rolldown: ^1.0.0-beta.9 typescript: ^5.0.0 vue-tsc: ~2.2.0 peerDependenciesMeta: + "@typescript/native-preview": + optional: true typescript: optional: true vue-tsc: optional: true - checksum: 10c0/9a03db3cb81b94b492936d84e8d9faaa62543a92117deb4f96ff85bc678ab3aab81a06fe53a59099eec08c1647871fcee31295e84ea883b3fc6defae2b805c6c - languageName: node - linkType: hard - -"rolldown@npm:1.0.0-beta.10-commit.87188ed": - version: 1.0.0-beta.10-commit.87188ed - resolution: "rolldown@npm:1.0.0-beta.10-commit.87188ed" - dependencies: - "@oxc-project/runtime": "npm:0.72.1" - "@oxc-project/types": "npm:0.72.1" - "@rolldown/binding-darwin-arm64": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-darwin-x64": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-freebsd-x64": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-linux-arm-gnueabihf": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-linux-arm64-gnu": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-linux-arm64-musl": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-linux-x64-gnu": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-linux-x64-musl": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-wasm32-wasi": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-win32-arm64-msvc": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-win32-ia32-msvc": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/binding-win32-x64-msvc": "npm:1.0.0-beta.10-commit.87188ed" - "@rolldown/pluginutils": "npm:1.0.0-beta.10-commit.87188ed" + checksum: 10c0/7684889016d8c6b22b4b0844d775752d43e8daf4e2dac3d5cc2f5bb68253aae4c36d465302d4bc1a52c52fbf173d2051037193a94fb3f0fc4c6a40c7067b132e + languageName: node + linkType: hard + +"rolldown@npm:1.0.0-beta.11-commit.f051675": + version: 1.0.0-beta.11-commit.f051675 + resolution: "rolldown@npm:1.0.0-beta.11-commit.f051675" + dependencies: + "@oxc-project/runtime": "npm:=0.72.2" + "@oxc-project/types": "npm:=0.72.2" + "@rolldown/binding-darwin-arm64": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-darwin-x64": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-freebsd-x64": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-linux-arm-gnueabihf": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-linux-arm64-gnu": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-linux-arm64-musl": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-linux-x64-gnu": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-linux-x64-musl": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-wasm32-wasi": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-win32-arm64-msvc": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-win32-ia32-msvc": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/binding-win32-x64-msvc": "npm:1.0.0-beta.11-commit.f051675" + "@rolldown/pluginutils": "npm:1.0.0-beta.11-commit.f051675" ansis: "npm:^4.0.0" dependenciesMeta: "@rolldown/binding-darwin-arm64": @@ -11837,7 +11842,7 @@ __metadata: optional: true bin: rolldown: bin/cli.mjs - checksum: 10c0/811e6f89dbe5fcdecfd52b77cf20d7f049a4bd5e71e237e0a71dae11779be41a9e728aa6777e4b8b6f17be72e7ec40760221bfc7a4b3b8e344adf41e1de87d49 + checksum: 10c0/2f8c44b871531f84c5a8e0416be7c8e226e33101e3a3d70b9520bf3051bd510e06f8a8da4a96c6cd933e474e70231e794db0d054c29402b4e497523e3bd9a11a languageName: node linkType: hard @@ -12569,9 +12574,9 @@ __metadata: languageName: node linkType: hard -"tsdown@npm:^0.12.6": - version: 0.12.6 - resolution: "tsdown@npm:0.12.6" +"tsdown@npm:^0.12.7": + version: 0.12.7 + resolution: "tsdown@npm:0.12.7" dependencies: ansis: "npm:^4.1.0" cac: "npm:^6.7.14" @@ -12580,8 +12585,8 @@ __metadata: diff: "npm:^8.0.2" empathic: "npm:^1.1.0" hookable: "npm:^5.5.3" - rolldown: "npm:1.0.0-beta.10-commit.87188ed" - rolldown-plugin-dts: "npm:^0.13.6" + rolldown: "npm:1.0.0-beta.11-commit.f051675" + rolldown-plugin-dts: "npm:^0.13.8" semver: "npm:^7.7.2" tinyexec: "npm:^1.0.1" tinyglobby: "npm:^0.2.14" @@ -12604,8 +12609,8 @@ __metadata: unplugin-unused: optional: true bin: - tsdown: dist/run.js - checksum: 10c0/f16cc843bb90ad0bc040c17aad78ed2420ca1bd870745520a5ba04ae44e6cd3456503af793b9b31afa8e1ff509874f51b571ffd5c26d4eb742b67b3d2db431bf + tsdown: dist/run.mjs + checksum: 10c0/68d38d446b8ea96f14ccd32456418bfeb63ad829dda40419b0bb55add7b76f5c25e20e0f8950d681712b89981ba79ffec09485254e702f0e8340af5a4576aaea languageName: node linkType: hard