Skip to content

Commit f75c0e4

Browse files
committed
chore(deps): migrate unrs-resolver to new oxc-resolver
1 parent 27b175f commit f75c0e4

File tree

5 files changed

+1299
-1100
lines changed

5 files changed

+1299
-1100
lines changed

package.json

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@
7575
}
7676
},
7777
"dependencies": {
78-
"@typescript-eslint/types": "^8.35.0",
78+
"@typescript-eslint/types": "^8.40.0",
7979
"comment-parser": "^1.4.1",
8080
"debug": "^4.4.1",
81-
"eslint-import-context": "^0.1.9",
81+
"eslint-import-context": "^0.2.0",
8282
"is-glob": "^4.0.3",
83-
"minimatch": "^9.0.3 || ^10.0.1",
83+
"minimatch": "^9.0.3 || ^10.0.3",
84+
"oxc-resolver": "^11.6.1",
8485
"semver": "^7.7.2",
85-
"stable-hash-x": "^0.2.0",
86-
"unrs-resolver": "^1.9.2"
86+
"stable-hash-x": "^0.2.0"
8787
},
8888
"devDependencies": {
8989
"@1stg/commitlint-config": "^5.1.0",
@@ -93,22 +93,22 @@
9393
"@1stg/simple-git-hooks": "^2.1.0",
9494
"@1stg/tsconfig": "^3.0.3",
9595
"@angular-eslint/template-parser": "^20.1.1",
96-
"@babel/core": "^7.27.4",
97-
"@babel/eslint-parser": "^7.27.5",
98-
"@babel/plugin-proposal-decorators": "^7.27.1",
96+
"@babel/core": "^7.28.3",
97+
"@babel/eslint-parser": "^7.28.0",
98+
"@babel/plugin-proposal-decorators": "^7.28.0",
9999
"@babel/plugin-proposal-export-default-from": "^7.27.1",
100-
"@babel/preset-env": "^7.27.2",
100+
"@babel/preset-env": "^7.28.3",
101101
"@babel/preset-flow": "^7.27.1",
102102
"@babel/preset-react": "^7.27.1",
103103
"@babel/preset-typescript": "^7.27.1",
104-
"@babel/register": "^7.27.1",
104+
"@babel/register": "^7.28.3",
105105
"@changesets/changelog-github": "^0.5.1",
106-
"@changesets/cli": "^2.29.5",
106+
"@changesets/cli": "^2.29.6",
107107
"@commitlint/cli": "^19.8.1",
108108
"@eslint/import-test-order-redirect-scoped": "link:./test/fixtures/order-redirect-scoped",
109-
"@eslint/js": "^9.29.0",
110-
"@swc-node/jest": "^1.8.13",
111-
"@swc/core": "^1.12.7",
109+
"@eslint/js": "^9.33.0",
110+
"@swc-node/jest": "^1.9.1",
111+
"@swc/core": "^1.13.3",
112112
"@swc/helpers": "^0.5.17",
113113
"@test-scope/some-module": "link:./test/fixtures/symlinked-module",
114114
"@total-typescript/ts-reset": "^0.6.1",
@@ -119,17 +119,18 @@
119119
"@types/jest": "^30.0.0",
120120
"@types/json-schema": "^7.0.15",
121121
"@types/klaw-sync": "^6.0.5",
122-
"@types/node": "^22.15.33",
122+
"@types/node": "^22.17.2",
123123
"@types/pnpapi": "^0.0.5",
124124
"@types/tmp": "^0.2.6",
125-
"@typescript-eslint/eslint-plugin": "^8.35.0",
126-
"@typescript-eslint/parser": "^8.35.0",
127-
"@typescript-eslint/rule-tester": "^8.35.0",
128-
"@typescript-eslint/utils": "^8.35.0",
125+
"@typescript-eslint/eslint-plugin": "^8.40.0",
126+
"@typescript-eslint/parser": "^8.40.0",
127+
"@typescript-eslint/rule-tester": "^8.40.0",
128+
"@typescript-eslint/scope-manager": "^8.40.0",
129+
"@typescript-eslint/utils": "^8.40.0",
129130
"@unts/patch-package": "^8.1.1",
130131
"clean-pkg-json": "^1.3.0",
131-
"eslint": "^9.29.0",
132-
"eslint-config-prettier": "^10.1.5",
132+
"eslint": "^9.33.0",
133+
"eslint-config-prettier": "^10.1.8",
133134
"eslint-doc-generator": "^2.2.2",
134135
"eslint-import-resolver-typescript": "^4.4.4",
135136
"eslint-import-resolver-webpack": "^0.13.10",
@@ -138,31 +139,31 @@
138139
"eslint-plugin-import-x": "link:.",
139140
"eslint-plugin-jest": "^29.0.1",
140141
"eslint-plugin-json": "^4.0.1",
141-
"eslint-plugin-mdx": "^3.5.0",
142-
"eslint-plugin-n": "^17.20.0",
143-
"eslint-plugin-prettier": "^5.5.1",
142+
"eslint-plugin-mdx": "^3.6.2",
143+
"eslint-plugin-n": "^17.21.3",
144+
"eslint-plugin-prettier": "^5.5.4",
144145
"eslint-plugin-unicorn": "^59.0.1",
145146
"eslint-plugin-yml": "^1.18.0",
146147
"eslint8.56": "npm:eslint@~8.56.0",
147-
"eslint9": "npm:eslint@^9.28.0",
148-
"globals": "^16.2.0",
149-
"hermes-eslint": "^0.29.0",
150-
"jest": "^30.0.3",
148+
"eslint9": "npm:eslint@^9.33.0",
149+
"globals": "^16.3.0",
150+
"hermes-eslint": "^0.31.2",
151+
"jest": "^30.0.5",
151152
"klaw-sync": "^7.0.0",
152153
"nano-staged": "^0.8.0",
153154
"npm-run-all2": "^8.0.4",
154-
"path-serializer": "^0.5.0",
155+
"path-serializer": "^0.5.1",
155156
"premove": "^4.0.0",
156-
"prettier": "^3.6.1",
157+
"prettier": "^3.6.2",
157158
"redux": "^5.0.1",
158-
"simple-git-hooks": "^2.13.0",
159+
"simple-git-hooks": "^2.13.1",
159160
"tinyexec": "^1.0.1",
160-
"tmp": "^0.2.3",
161+
"tmp": "^0.2.5",
161162
"ts-node": "^10.9.2",
162-
"tsdown": "^0.12.9",
163+
"tsdown": "^0.14.1",
163164
"type-fest": "^4.41.0",
164-
"typescript": "^5.8.3",
165-
"typescript-eslint": "^8.35.0",
165+
"typescript": "^5.9.2",
166+
"typescript-eslint": "^8.40.0",
166167
"yarn-berry-deduplicate": "^6.1.3"
167168
},
168169
"resolutions": {

patches/@swc-node+jest+1.8.13.patch renamed to patches/@swc-node+jest+1.9.1.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/node_modules/@swc-node/jest/lib/index.js b/node_modules/@swc-node/jest/lib/index.js
2-
index 9a2fc9d..92f19fc 100644
2+
index 9a2fc9d..4060446 100644
33
--- a/node_modules/@swc-node/jest/lib/index.js
44
+++ b/node_modules/@swc-node/jest/lib/index.js
55
@@ -17,13 +17,13 @@ function getJestTransformConfig(jestConfig) {

src/node-resolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { isBuiltin } from 'node:module'
22
import path from 'node:path'
33

4-
import { ResolverFactory } from 'unrs-resolver'
5-
import type { NapiResolveOptions } from 'unrs-resolver'
4+
import { ResolverFactory } from 'oxc-resolver'
5+
import type { NapiResolveOptions } from 'oxc-resolver'
66

77
import type { NewResolver } from './types.js'
88

src/utils/declared-scope.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { ScopeType } from '@typescript-eslint/scope-manager'
12
import type { TSESTree } from '@typescript-eslint/utils'
23

34
import type { RuleContext } from '../types.js'
@@ -6,7 +7,7 @@ export function declaredScope(
67
context: RuleContext,
78
node: TSESTree.Node,
89
name: string,
9-
) {
10+
): ScopeType | undefined {
1011
const references = context.sourceCode.getScope(node).references
1112
const reference = references.find(x => x.identifier.name === name)
1213
return reference?.resolved?.scope.type

0 commit comments

Comments
 (0)