Skip to content

Commit 3c0971b

Browse files
committed
Merge branch 'master' into new-docs
2 parents 9ee2db8 + 34b722a commit 3c0971b

File tree

14 files changed

+5524
-3411
lines changed

14 files changed

+5524
-3411
lines changed

.changeset/healthy-moose-kneel.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@graphql-eslint/eslint-plugin": patch
3+
---
4+
5+
The import attribute syntax (with { type: "json" }) is still experimental so warnings showed up when using the library as it was being used to import the package.json file to extract the package version
6+
7+
As an alternative, the current version will be injected on build time through tsup configuration.

.changeset/heavy-onions-fry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': patch
3+
---
4+
5+
fix types exports by `@arethetypeswrong/cli` package

.changeset/pre.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"dull-scissors-destroy",
2424
"few-mails-sparkle",
2525
"friendly-singers-rush",
26+
"healthy-moose-kneel",
27+
"heavy-onions-fry",
2628
"itchy-ads-compete",
2729
"lovely-laws-hide",
2830
"rare-planes-love",

examples/svelte-code-file/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"devDependencies": {
1414
"@graphql-eslint/eslint-plugin": "workspace:*",
1515
"eslint": "9.9.0",
16-
"svelte": "4.2.18",
17-
"svelte-eslint-parser": "0.41.0",
18-
"svelte2tsx": "0.7.15"
16+
"svelte": "5.1.16",
17+
"svelte-eslint-parser": "0.43.0",
18+
"svelte2tsx": "0.7.24"
1919
}
2020
}

examples/vue-code-file/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"@graphql-eslint/eslint-plugin": "workspace:*",
15-
"@vue/compiler-sfc": "3.4.38",
15+
"@vue/compiler-sfc": "3.5.12",
1616
"eslint": "9.9.0",
1717
"vue-eslint-parser": "9.4.3"
1818
}

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"author": "Dotan Simha <[email protected]>",
66
"license": "MIT",
77
"private": true,
8-
"packageManager": "pnpm@9.7.1",
8+
"packageManager": "pnpm@9.13.0",
99
"engines": {
1010
"node": ">=16",
1111
"pnpm": ">=9.0.6"
1212
},
1313
"scripts": {
14-
"build": "turbo run build --filter=!website && bob check",
14+
"build": "turbo run build --filter=!website && attw --pack packages/plugin/dist",
1515
"ci:lint": "ESLINT_USE_FLAT_CONFIG=false eslint --ignore-path .gitignore --output-file eslint_report.json --format json .",
1616
"create-rule": "tsx scripts/create-rule.ts",
1717
"generate:configs": "tsx scripts/generate-configs.ts",
@@ -25,30 +25,30 @@
2525
"typecheck": "turbo run typecheck"
2626
},
2727
"devDependencies": {
28+
"@arethetypeswrong/cli": "^0.17.0",
2829
"@changesets/changelog-github": "0.5.0",
29-
"@changesets/cli": "2.27.7",
30-
"@graphql-tools/utils": "10.5.4",
31-
"@theguild/eslint-config": "0.12.0",
30+
"@changesets/cli": "2.27.9",
31+
"@graphql-tools/utils": "10.5.5",
32+
"@theguild/eslint-config": "0.13.0",
3233
"@theguild/prettier-config": "2.0.7",
3334
"@types/dedent": "0.7.2",
34-
"@types/node": "20.15.0",
35-
"bob-the-bundler": "7.0.1",
35+
"@types/node": "22.9.0",
3636
"chalk": "5.3.0",
3737
"dedent": "1.5.3",
3838
"enquirer": "2.4.1",
3939
"eslint": "9.9.0",
40-
"eslint-plugin-eslint-plugin": "6.2.0",
41-
"eslint-plugin-tailwindcss": "3.17.4",
42-
"husky": "9.1.4",
40+
"eslint-plugin-eslint-plugin": "6.3.1",
41+
"eslint-plugin-tailwindcss": "3.17.5",
42+
"husky": "9.1.6",
4343
"jest-snapshot-serializer-raw": "2.0.0",
4444
"json-schema-to-markdown": "1.1.1",
4545
"prettier": "3.3.3",
46-
"prettier-plugin-tailwindcss": "0.6.6",
46+
"prettier-plugin-tailwindcss": "0.6.8",
4747
"rimraf": "6.0.1",
4848
"tsup": "^8.0.0",
49-
"tsx": "4.17.0",
50-
"turbo": "2.0.14",
51-
"typescript": "5.5.4",
49+
"tsx": "4.19.2",
50+
"turbo": "2.2.3",
51+
"typescript": "5.6.3",
5252
"vitest": "2.0.5"
5353
},
5454
"pnpm": {

packages/plugin/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @graphql-eslint/eslint-plugin
22

3+
## 4.0.0-alpha.6
4+
5+
### Patch Changes
6+
7+
- [#2616](https://github.com/dimaMachina/graphql-eslint/pull/2616)
8+
[`c0f1b07`](https://github.com/dimaMachina/graphql-eslint/commit/c0f1b077c8c7b8ee872bcee191f1acf5a8d5f62b)
9+
Thanks [@fcortes](https://github.com/fcortes)! - The import attribute syntax (with { type: "json"
10+
}) is still experimental so warnings showed up when using the library as it was being used to
11+
import the package.json file to extract the package version
12+
13+
As an alternative, the current version will be injected on build time through tsup configuration.
14+
15+
## 4.0.0-alpha.5
16+
17+
### Patch Changes
18+
19+
- [#2605](https://github.com/dimaMachina/graphql-eslint/pull/2605)
20+
[`2ae64e1`](https://github.com/dimaMachina/graphql-eslint/commit/2ae64e12ab2e61c14b8a195410e2e68dc3fb29d0)
21+
Thanks [@dimaMachina](https://github.com/dimaMachina)! - fix types exports by
22+
`@arethetypeswrong/cli` package
23+
324
## 4.0.0-alpha.4
425

526
### Patch Changes

packages/plugin/__tests__/examples.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@ function getESLintOutput(cwd: string): ESLint.LintResult[] {
2222
const errorOutput = stderr
2323
.toString()
2424
.replace(
25-
/\(node:\d{4,5}\) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time/,
25+
/\(node:\d{4,7}\) \[DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead./,
2626
'',
2727
)
28-
.replace(
29-
/\(node:\d{4,5}\) \[DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead./,
30-
'',
31-
)
32-
.replace('(Use `node --trace-warnings ...` to show where the warning was created)', '')
28+
.replace('(Use `node --trace-deprecation ...` to show where the warning was created)', '')
3329
.trimEnd();
3430
if (errorOutput) {
3531
throw new Error(errorOutput);

packages/plugin/package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-eslint/eslint-plugin",
3-
"version": "4.0.0-alpha.4",
3+
"version": "4.0.0-alpha.6",
44
"type": "module",
55
"description": "GraphQL plugin for ESLint",
66
"repository": "https://github.com/B2o5T/graphql-eslint",
@@ -9,21 +9,16 @@
99
"engines": {
1010
"node": ">=18"
1111
},
12-
"main": "dist/cjs/index.js",
1312
"exports": {
1413
"./package.json": "./package.json",
1514
".": {
1615
"require": {
17-
"types": "./dist/cjs/index.d.ts",
16+
"types": "./dist/cjs/index.d.cts",
1817
"default": "./dist/cjs/index.js"
1918
},
2019
"import": {
2120
"types": "./dist/esm/index.d.ts",
2221
"default": "./dist/esm/index.js"
23-
},
24-
"default": {
25-
"types": "./dist/esm/index.d.ts",
26-
"default": "./dist/esm/index.js"
2722
}
2823
}
2924
},
@@ -45,7 +40,7 @@
4540
},
4641
"dependencies": {
4742
"@graphql-tools/code-file-loader": "^8.0.0",
48-
"@graphql-tools/graphql-tag-pluck": "8.3.2",
43+
"@graphql-tools/graphql-tag-pluck": "8.3.3",
4944
"@graphql-tools/utils": "^10.0.0",
5045
"debug": "^4.3.4",
5146
"fast-glob": "^3.2.12",
@@ -56,13 +51,13 @@
5651
"devDependencies": {
5752
"@theguild/eslint-rule-tester": "workspace:*",
5853
"@types/debug": "4.1.12",
59-
"@types/eslint": "9.6.0",
60-
"@types/estree": "1.0.5",
54+
"@types/eslint": "9.6.1",
55+
"@types/estree": "1.0.6",
6156
"@types/graphql-depth-limit": "1.1.6",
6257
"@types/json-schema": "7.0.15",
6358
"@types/lodash.lowercase": "4.3.9",
6459
"graphql": "16.9.0",
65-
"json-schema-to-ts": "3.1.0",
60+
"json-schema-to-ts": "3.1.1",
6661
"vite-tsconfig-paths": "^5.0.0"
6762
},
6863
"publishConfig": {

packages/plugin/src/meta.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import packageJson from '../package.json' with { type: 'json' };
2-
3-
export const { version } = packageJson;
1+
export const version = process.env.VERSION

0 commit comments

Comments
 (0)