@ts-gql/tag
Advanced tools
Comparing version 0.5.3 to 0.6.0
# @ts-gql/tag | ||
## 0.6.0 | ||
### Minor Changes | ||
- [#90](https://github.com/Thinkmill/ts-gql/pull/90) [`dc22e45`](https://github.com/Thinkmill/ts-gql/commit/dc22e457d14c816274037010a627d10bcb30f11d) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed unused `Documents` export. | ||
* [#90](https://github.com/Thinkmill/ts-gql/pull/90) [`dc22e45`](https://github.com/Thinkmill/ts-gql/commit/dc22e457d14c816274037010a627d10bcb30f11d) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Added `name` property to `BaseTypedFragment` and `fragments` property to `BaseTypedDocument` | ||
- [#90](https://github.com/Thinkmill/ts-gql/pull/90) [`dc22e45`](https://github.com/Thinkmill/ts-gql/commit/dc22e457d14c816274037010a627d10bcb30f11d) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Added support for `"mode": "no-transform"` and `"mode": "mixed"`. See https://github.com/Thinkmill/ts-gql/blob/main/docs/no-transform.md for more details | ||
* [#90](https://github.com/Thinkmill/ts-gql/pull/90) [`dc22e45`](https://github.com/Thinkmill/ts-gql/commit/dc22e457d14c816274037010a627d10bcb30f11d) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed spread parameter from `gql` export to align with the fact that `gql` from the `@ts-gql/tag` entrypoint does not allow interpolations. | ||
## 0.5.3 | ||
@@ -4,0 +16,0 @@ |
@@ -1,11 +0,13 @@ | ||
"use strict"; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: !0 | ||
}); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
const gql = () => { | ||
throw new Error("Unexpected runtime `gql` call."); | ||
}, getDocumentNode = node => node; | ||
{ | ||
throw new Error("Unexpected runtime `gql` call."); | ||
} | ||
}; | ||
const getDocumentNode = node => node; | ||
exports.getDocumentNode = getDocumentNode, exports.gql = gql; | ||
exports.getDocumentNode = getDocumentNode; | ||
exports.gql = gql; |
@@ -8,2 +8,3 @@ import { DocumentNode } from "graphql"; | ||
documents: Record<string, TypedDocumentNode<BaseDocumentTypes>>; | ||
fragments: (a: any) => any; | ||
}; | ||
@@ -24,2 +25,3 @@ | ||
export type BaseTypedFragment = BaseTypedDocument & { | ||
name: string; | ||
type: "fragment"; | ||
@@ -34,23 +36,16 @@ }; | ||
export type OperationData< | ||
Node extends TypedDocumentNode<BaseOperations> | ||
> = Node["___type"]["result"]; | ||
export type OperationData<Node extends TypedDocumentNode<BaseOperations>> = | ||
Node["___type"]["result"]; | ||
export type OperationVariables< | ||
Node extends TypedDocumentNode<BaseOperations> | ||
> = Node["___type"]["variables"]; | ||
export type OperationVariables<Node extends TypedDocumentNode<BaseOperations>> = | ||
Node["___type"]["variables"]; | ||
export type FragmentData< | ||
Node extends TypedDocumentNode<BaseTypedFragment> | ||
> = Node["___type"]["result"]; | ||
export type FragmentData<Node extends TypedDocumentNode<BaseTypedFragment>> = | ||
Node["___type"]["result"]; | ||
export type AllDocuments< | ||
Node extends TypedDocumentNode<BaseDocumentTypes> | ||
> = Node["___type"]["documents"]; | ||
export type AllDocuments<Node extends TypedDocumentNode<BaseDocumentTypes>> = | ||
Node["___type"]["documents"]; | ||
interface GqlTag { | ||
( | ||
strings: readonly string[], | ||
...interpolations: TypedDocumentNode<BaseTypedFragment>[] | ||
): never; | ||
(strings: TemplateStringsArray): never; | ||
___isTsGqlTag: true; | ||
@@ -64,3 +59,1 @@ } | ||
): DocumentNode; | ||
export interface Documents {} |
{ | ||
"name": "@ts-gql/tag", | ||
"version": "0.5.3", | ||
"main": "dist/tag.cjs.js", | ||
"module": "dist/tag.esm.js", | ||
"license": "MIT", | ||
"types": "index.d.ts", | ||
"dependencies": { | ||
"graphql-tag": "^2.10.3" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" | ||
}, | ||
"devDependencies": { | ||
"graphql": "^14.0.0" | ||
}, | ||
"repository": "https://github.com/Thinkmill/ts-gql/tree/master/packages/tag" | ||
} | ||
"name": "@ts-gql/tag", | ||
"version": "0.6.0", | ||
"main": "dist/tag.cjs.js", | ||
"module": "dist/tag.esm.js", | ||
"license": "MIT", | ||
"types": "index.d.ts", | ||
"dependencies": { | ||
"graphql-tag": "^2.12.5" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" | ||
}, | ||
"devDependencies": { | ||
"graphql": "^15.7.2" | ||
}, | ||
"repository": "https://github.com/Thinkmill/ts-gql/tree/main/packages/tag", | ||
"preconstruct": { | ||
"entrypoints": [ | ||
"index.js", | ||
"no-transform.js" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
10973
16
164
3
Updatedgraphql-tag@^2.12.5