Skip to content

Commit 90ec1f1

Browse files
authored
chore: migrate stable-hash to stable-hash-x (#373)
1 parent 74a16c5 commit 90ec1f1

File tree

13 files changed

+1252
-1163
lines changed

13 files changed

+1252
-1163
lines changed

.changeset/breezy-toys-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-import-x": patch
3+
---
4+
5+
chore: migrate `stable-hash` to `stable-hash-x`

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout Repo
19-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020

2121
- name: Setup Node.js LTS
2222
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ${{ matrix.os }}
4242
steps:
4343
- name: Checkout Repo
44-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
44+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4545

4646
- name: Setup Node.js ${{ matrix.node }}
4747
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0

.github/workflows/pkg-pr-new.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout Repo
17-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818

1919
- name: Setup Node.js LTS
2020
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout Repo
23-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
with:
2525
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2626
fetch-depth: 0

.yarn/releases/yarn-4.9.1.cjs renamed to .yarn/releases/yarn-4.9.2.cjs

Lines changed: 273 additions & 279 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ plugins:
77
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
88
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
99

10-
yarnPath: .yarn/releases/yarn-4.9.1.cjs
10+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"author": "JounQin <[email protected]> (https://www.1stG.me)",
99
"funding": "https://opencollective.com/eslint-plugin-import-x",
1010
"license": "MIT",
11-
"packageManager": "[email protected].1",
11+
"packageManager": "[email protected].2",
1212
"engines": {
1313
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1414
},
@@ -77,26 +77,26 @@
7777
}
7878
},
7979
"dependencies": {
80-
"@typescript-eslint/types": "^8.33.0",
80+
"@typescript-eslint/types": "^8.33.1",
8181
"comment-parser": "^1.4.1",
8282
"debug": "^4.4.1",
83-
"eslint-import-context": "^0.1.6",
83+
"eslint-import-context": "^0.1.7",
8484
"is-glob": "^4.0.3",
8585
"minimatch": "^9.0.3 || ^10.0.1",
8686
"semver": "^7.7.2",
87-
"stable-hash": "^0.0.5",
88-
"unrs-resolver": "^1.7.8"
87+
"stable-hash-x": "^0.1.1",
88+
"unrs-resolver": "^1.7.10"
8989
},
9090
"devDependencies": {
91-
"@1stg/commitlint-config": "^5.0.6",
92-
"@1stg/nano-staged": "^0.1.2",
93-
"@1stg/prettier-config": "^5.2.0",
94-
"@1stg/remark-preset": "^3.1.1",
95-
"@1stg/simple-git-hooks": "^2.0.1",
91+
"@1stg/commitlint-config": "^5.1.0",
92+
"@1stg/nano-staged": "^0.2.0",
93+
"@1stg/prettier-config": "^5.2.1",
94+
"@1stg/remark-preset": "^3.1.2",
95+
"@1stg/simple-git-hooks": "^2.1.0",
9696
"@1stg/tsconfig": "^3.0.3",
97-
"@angular-eslint/template-parser": "^19.6.0",
98-
"@babel/core": "^7.27.3",
99-
"@babel/eslint-parser": "^7.27.1",
97+
"@angular-eslint/template-parser": "^19.7.1",
98+
"@babel/core": "^7.27.4",
99+
"@babel/eslint-parser": "^7.27.5",
100100
"@babel/plugin-proposal-decorators": "^7.27.1",
101101
"@babel/plugin-proposal-export-default-from": "^7.27.1",
102102
"@babel/preset-env": "^7.27.2",
@@ -108,9 +108,9 @@
108108
"@changesets/cli": "^2.29.4",
109109
"@commitlint/cli": "^19.8.1",
110110
"@eslint/import-test-order-redirect-scoped": "link:./test/fixtures/order-redirect-scoped",
111-
"@eslint/js": "^9.27.0",
111+
"@eslint/js": "^9.28.0",
112112
"@swc-node/jest": "^1.8.13",
113-
"@swc/core": "^1.11.29",
113+
"@swc/core": "^1.11.31",
114114
"@swc/helpers": "^0.5.17",
115115
"@test-scope/some-module": "link:./test/fixtures/symlinked-module",
116116
"@total-typescript/ts-reset": "^0.6.1",
@@ -121,35 +121,35 @@
121121
"@types/jest": "^29.5.14",
122122
"@types/json-schema": "^7.0.15",
123123
"@types/klaw-sync": "^6.0.5",
124-
"@types/node": "^22.15.27",
124+
"@types/node": "^22.15.29",
125125
"@types/pnpapi": "^0.0.5",
126126
"@types/tmp": "^0.2.6",
127-
"@typescript-eslint/eslint-plugin": "^8.33.0",
128-
"@typescript-eslint/parser": "^8.33.0",
127+
"@typescript-eslint/eslint-plugin": "^8.33.1",
128+
"@typescript-eslint/parser": "^8.33.1",
129129
"@typescript-eslint/rule-tester": "^8.33.0",
130-
"@typescript-eslint/utils": "^8.33.0",
130+
"@typescript-eslint/utils": "^8.33.1",
131131
"@unts/patch-package": "^8.1.1",
132132
"clean-pkg-json": "^1.3.0",
133-
"eslint": "^9.27.0",
133+
"eslint": "^9.28.0",
134134
"eslint-config-prettier": "^10.1.5",
135135
"eslint-doc-generator": "^2.1.2",
136-
"eslint-import-resolver-typescript": "^4.4.1",
136+
"eslint-import-resolver-typescript": "^4.4.2",
137137
"eslint-import-resolver-webpack": "^0.13.10",
138138
"eslint-import-test-order-redirect": "link:./test/fixtures/order-redirect",
139139
"eslint-plugin-eslint-plugin": "^6.4.0",
140140
"eslint-plugin-import-x": "link:.",
141141
"eslint-plugin-jest": "^28.12.0",
142142
"eslint-plugin-json": "^4.0.1",
143143
"eslint-plugin-mdx": "^3.4.2",
144-
"eslint-plugin-n": "^17.18.0",
144+
"eslint-plugin-n": "^17.19.0",
145145
"eslint-plugin-prettier": "^5.4.1",
146146
"eslint-plugin-unicorn": "^59.0.1",
147147
"eslint-plugin-yml": "^1.18.0",
148148
"eslint8.56": "npm:eslint@~8.56.0",
149-
"eslint9": "npm:eslint@^9.27.0",
149+
"eslint9": "npm:eslint@^9.28.0",
150150
"globals": "^16.2.0",
151151
"hermes-eslint": "^0.28.1",
152-
"jest": "^30.0.0-beta.5",
152+
"jest": "^30.0.0-beta.9",
153153
"klaw-sync": "^7.0.0",
154154
"nano-staged": "^0.8.0",
155155
"npm-run-all2": "^8.0.4",
@@ -161,14 +161,14 @@
161161
"tinyexec": "^1.0.1",
162162
"tmp": "^0.2.3",
163163
"ts-node": "^10.9.2",
164-
"tsdown": "^0.12.5",
164+
"tsdown": "^0.12.6",
165165
"type-fest": "^4.41.0",
166166
"typescript": "^5.8.3",
167-
"typescript-eslint": "^8.33.0",
168-
"yarn-berry-deduplicate": "^6.1.3",
169-
"zod": "~3.24.4"
167+
"typescript-eslint": "^8.33.1",
168+
"yarn-berry-deduplicate": "^6.1.3"
170169
},
171170
"resolutions": {
171+
"@typescript-eslint/utils": "^8.33.1",
172172
"prettier": "^3.5.3"
173173
},
174174
"eslintIgnore": [

src/utils/export-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import debug from 'debug'
66
import type { AST } from 'eslint'
77
import { SourceCode } from 'eslint'
88
import { getTsconfigWithContext } from 'eslint-import-context'
9-
import { stableHash } from 'stable-hash'
9+
import { stableHash } from 'stable-hash-x'
1010

1111
import { cjsRequire } from '../require.js'
1212
import type {

src/utils/resolve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'node:path'
33
import { fileURLToPath } from 'node:url'
44

55
import { setRuleContext } from 'eslint-import-context'
6-
import { stableHash } from 'stable-hash'
6+
import { stableHash } from 'stable-hash-x'
77

88
import { createNodeResolver } from '../node-resolver.js'
99
import { cjsRequire } from '../require.js'

test/__snapshots__/node-resolver.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`builtin node:path => true 1`] = `
44
{
@@ -69,7 +69,7 @@ exports[`modules jest => true 2`] = `
6969
"expected": true,
7070
"result": {
7171
"found": true,
72-
"path": "<ROOT>/node_modules/jest/build/index.mjs",
72+
"path": "<ROOT>/node_modules/jest/build/index.js",
7373
},
7474
"source": "jest",
7575
}

test/rules/no-named-as-default.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ ruleTester.run('no-named-as-default', rule, {
162162
}),
163163

164164
tInvalid({
165-
code: `import z from 'zod';`,
166-
errors: [createDefaultError('z', 'ImportDefaultSpecifier')],
165+
code: `import importX from 'eslint-plugin-import-x';`,
166+
errors: [createDefaultError('importX', 'ImportDefaultSpecifier')],
167167
}),
168168
],
169169
})

0 commit comments

Comments
 (0)