Skip to content

Commit e1085d1

Browse files
chore(release): update monorepo packages versions
1 parent 934fbba commit e1085d1

File tree

7 files changed

+99
-35
lines changed

7 files changed

+99
-35
lines changed

.changeset/tired-foxes-join.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/import/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# @graphql-tools/import
22

3+
## 7.1.0
4+
5+
### Minor Changes
6+
7+
- [#7310](https://github.com/ardatan/graphql-tools/pull/7310)
8+
[`692cfeb`](https://github.com/ardatan/graphql-tools/commit/692cfeb444a9e4c8e17f1bbb7cf87914e2230a30)
9+
Thanks [@HunterLarco](https://github.com/HunterLarco)! - GraphQL schemas in large projects,
10+
especially monorepos, suffer from fragile and verbose relative import paths that become difficult
11+
to maintain as projects grow. This change brings TypeScript's popular
12+
[`tsconfig.json#paths`](https://www.typescriptlang.org/tsconfig/#paths) aliasing syntax to GraphQL
13+
imports, enabling clean, maintainable import statements across your GraphQL schema files.
14+
15+
**Before** - Brittle relative imports:
16+
17+
```graphql
18+
#import "../../../shared/models/User.graphql"
19+
#import "../../../../common/types/Product.graphql"
20+
```
21+
22+
**After** - Clean, semantic aliases:
23+
24+
```graphql
25+
#import "@models/User.graphql"
26+
#import "@types/Product.graphql"
27+
```
28+
29+
**Configuration Example**
30+
31+
```ts
32+
{
33+
mappings: {
34+
'@models/*': path.join(__dirname, './models/*'),
35+
'@types/*': path.join(__dirname, './shared/types/*'),
36+
}
37+
}
38+
```
39+
40+
This change is introduced in a backwards compatible way to ensure no existing use cases are broken
41+
while using familiar patterns to typescript developers for structuring import aliases.
42+
343
## 7.0.21
444

545
### Patch Changes

packages/import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-tools/import",
3-
"version": "7.0.21",
3+
"version": "7.1.0",
44
"type": "module",
55
"description": "A set of utils for faster development of GraphQL tools",
66
"repository": {

packages/loaders/graphql-file/CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
# @graphql-tools/graphql-file-loader
22

3+
## 8.1.0
4+
5+
### Minor Changes
6+
7+
- [#7310](https://github.com/ardatan/graphql-tools/pull/7310)
8+
[`692cfeb`](https://github.com/ardatan/graphql-tools/commit/692cfeb444a9e4c8e17f1bbb7cf87914e2230a30)
9+
Thanks [@HunterLarco](https://github.com/HunterLarco)! - GraphQL schemas in large projects,
10+
especially monorepos, suffer from fragile and verbose relative import paths that become difficult
11+
to maintain as projects grow. This change brings TypeScript's popular
12+
[`tsconfig.json#paths`](https://www.typescriptlang.org/tsconfig/#paths) aliasing syntax to GraphQL
13+
imports, enabling clean, maintainable import statements across your GraphQL schema files.
14+
15+
**Before** - Brittle relative imports:
16+
17+
```graphql
18+
#import "../../../shared/models/User.graphql"
19+
#import "../../../../common/types/Product.graphql"
20+
```
21+
22+
**After** - Clean, semantic aliases:
23+
24+
```graphql
25+
#import "@models/User.graphql"
26+
#import "@types/Product.graphql"
27+
```
28+
29+
**Configuration Example**
30+
31+
```ts
32+
{
33+
mappings: {
34+
'@models/*': path.join(__dirname, './models/*'),
35+
'@types/*': path.join(__dirname, './shared/types/*'),
36+
}
37+
}
38+
```
39+
40+
This change is introduced in a backwards compatible way to ensure no existing use cases are broken
41+
while using familiar patterns to typescript developers for structuring import aliases.
42+
43+
### Patch Changes
44+
45+
- Updated dependencies
46+
[[`692cfeb`](https://github.com/ardatan/graphql-tools/commit/692cfeb444a9e4c8e17f1bbb7cf87914e2230a30)]:
47+
- @graphql-tools/import@7.1.0
48+
349
## 8.0.22
450

551
### Patch Changes

packages/loaders/graphql-file/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-tools/graphql-file-loader",
3-
"version": "8.0.22",
3+
"version": "8.1.0",
44
"type": "module",
55
"description": "A set of utils for faster development of GraphQL tools",
66
"repository": {
@@ -51,7 +51,7 @@
5151
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
5252
},
5353
"dependencies": {
54-
"@graphql-tools/import": "7.0.21",
54+
"@graphql-tools/import": "7.1.0",
5555
"@graphql-tools/utils": "^10.9.1",
5656
"globby": "^11.0.3",
5757
"tslib": "^2.4.0",

packages/node-require/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @graphql-tools/node-require
22

3+
## 7.0.25
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`692cfeb`](https://github.com/ardatan/graphql-tools/commit/692cfeb444a9e4c8e17f1bbb7cf87914e2230a30)]:
9+
- @graphql-tools/graphql-file-loader@8.1.0
10+
311
## 7.0.24
412

513
### Patch Changes

packages/node-require/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-tools/node-require",
3-
"version": "7.0.24",
3+
"version": "7.0.25",
44
"type": "module",
55
"description": "A set of utils for faster development of GraphQL tools",
66
"repository": {
@@ -50,7 +50,7 @@
5050
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
5151
},
5252
"dependencies": {
53-
"@graphql-tools/graphql-file-loader": "8.0.22",
53+
"@graphql-tools/graphql-file-loader": "8.1.0",
5454
"@graphql-tools/load": "8.1.2",
5555
"@graphql-tools/utils": "^10.9.1",
5656
"tslib": "^2.4.0"

0 commit comments

Comments
 (0)