@aws-amplify/graphql-transformer-core
Advanced tools
Comparing version 0.11.0-graphql-vnext-dev-preview.10 to 0.11.0-graphql-vnext-dev-preview.11
@@ -6,2 +6,20 @@ # Change Log | ||
# [0.11.0-graphql-vnext-dev-preview.11](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.11) (2021-11-13) | ||
### Bug Fixes | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
* passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
### Features | ||
* **graphql-transformer-core:** add support for user defined slots ([#8758](https://github.com/aws-amplify/amplify-cli/issues/8758)) ([d55eacc](https://github.com/aws-amplify/amplify-cli/commit/d55eaccd54899c87433b33977390ad4ff04b5d90)) | ||
# [0.11.0-graphql-vnext-dev-preview.10](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.10.0...@aws-amplify/graphql-transformer-core@0.11.0-graphql-vnext-dev-preview.10) (2021-11-13) | ||
@@ -12,2 +30,3 @@ | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -30,2 +49,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -48,2 +68,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -66,2 +87,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -84,2 +106,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -102,2 +125,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -120,2 +144,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -138,2 +163,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -156,2 +182,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -174,2 +201,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -192,2 +220,3 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) | ||
* append apiKey if global auth is enabled and its not default auth ([#8843](https://github.com/aws-amplify/amplify-cli/issues/8843)) ([cc8c67f](https://github.com/aws-amplify/amplify-cli/commit/cc8c67fcab555859e83154a5cfcb2ed5f4b6aae6)) | ||
* **graphql-transformer-core:** remove the allow_public_global directive references ([#8751](https://github.com/aws-amplify/amplify-cli/issues/8751)) ([06a38a6](https://github.com/aws-amplify/amplify-cli/commit/06a38a617ddec555a9f914be59b153183ffe16f7)) | ||
@@ -194,0 +223,0 @@ * passing ddb params from root to nested model stacks ([#8766](https://github.com/aws-amplify/amplify-cli/issues/8766)) ([3c2d97d](https://github.com/aws-amplify/amplify-cli/commit/3c2d97d99ed3255a584f32cc6d159f5005b11cb5)) |
@@ -70,3 +70,3 @@ "use strict"; | ||
this.app = new core_1.App(); | ||
const context = new transformer_context_1.TransformerContext(this.app, parsedDocument, this.stackMappingOverrides, this.authConfig, this.options.featureFlags, this.transformConfig.ResolverConfig); | ||
const context = new transformer_context_1.TransformerContext(this.app, parsedDocument, this.stackMappingOverrides, this.authConfig, this.options.sandboxModeEnabled, this.options.featureFlags, this.transformConfig.ResolverConfig); | ||
const validDirectiveNameMap = this.transformers.reduce((acc, t) => ({ ...acc, [t.directive.name.value]: true }), { | ||
@@ -73,0 +73,0 @@ aws_subscribe: true, |
@@ -27,5 +27,6 @@ import { FeatureFlagProvider, GraphQLAPIProvider, StackManagerProvider, TransformerContextOutputProvider, TransformerContextProvider, TransformerDataSourceManagerProvider, AppSyncAuthConfiguration } from '@aws-amplify/graphql-transformer-interfaces'; | ||
readonly authConfig: AppSyncAuthConfiguration; | ||
readonly sandboxModeEnabled: boolean; | ||
private resolverConfig; | ||
metadata: TransformerContextMetadata; | ||
constructor(app: App, inputDocument: DocumentNode, stackMapping: Record<string, string>, authConfig: AppSyncAuthConfiguration, featureFlags?: FeatureFlagProvider, resolverConfig?: ResolverConfig); | ||
constructor(app: App, inputDocument: DocumentNode, stackMapping: Record<string, string>, authConfig: AppSyncAuthConfiguration, sandboxModeEnabled?: boolean, featureFlags?: FeatureFlagProvider, resolverConfig?: ResolverConfig); | ||
get api(): GraphQLAPIProvider; | ||
@@ -32,0 +33,0 @@ getResolverConfig: <ResolverConfig_1>() => ResolverConfig_1 | undefined; |
@@ -29,3 +29,3 @@ "use strict"; | ||
class TransformerContext { | ||
constructor(app, inputDocument, stackMapping, authConfig, featureFlags, resolverConfig) { | ||
constructor(app, inputDocument, stackMapping, authConfig, sandboxModeEnabled, featureFlags, resolverConfig) { | ||
this.inputDocument = inputDocument; | ||
@@ -42,2 +42,3 @@ this.getResolverConfig = () => { | ||
this.authConfig = authConfig; | ||
this.sandboxModeEnabled = sandboxModeEnabled !== null && sandboxModeEnabled !== void 0 ? sandboxModeEnabled : false; | ||
this.resourceHelper = new resource_helper_1.TransformerResourceHelper(stackManager); | ||
@@ -44,0 +45,0 @@ this.featureFlags = featureFlags !== null && featureFlags !== void 0 ? featureFlags : new noop_feature_flag_1.NoopFeatureFlagProvider(); |
{ | ||
"name": "@aws-amplify/graphql-transformer-core", | ||
"version": "0.11.0-graphql-vnext-dev-preview.10", | ||
"version": "0.11.0-graphql-vnext-dev-preview.11", | ||
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.", | ||
@@ -30,3 +30,3 @@ "repository": { | ||
"dependencies": { | ||
"@aws-amplify/graphql-transformer-interfaces": "1.10.2-graphql-vnext-dev-preview.10", | ||
"@aws-amplify/graphql-transformer-interfaces": "1.10.2-graphql-vnext-dev-preview.11", | ||
"@aws-cdk/assets": "~1.124.0", | ||
@@ -63,3 +63,3 @@ "@aws-cdk/aws-applicationautoscaling": "~1.124.0", | ||
"graphql": "^14.5.8", | ||
"graphql-transformer-common": "4.20.0", | ||
"graphql-transformer-common": "4.20.1-graphql-vnext-dev-preview.11", | ||
"lodash": "^4.17.21", | ||
@@ -90,3 +90,3 @@ "md5": "^2.3.0", | ||
}, | ||
"gitHead": "5b1112889d1f79c787c564dc73dc08f4b992d451" | ||
"gitHead": "16e9cc68157644de729457cec7dd51a8ce353228" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
435597
4161
+ Added@aws-amplify/graphql-transformer-interfaces@1.10.2-graphql-vnext-dev-preview.11(transitive)
+ Addedgraphql-transformer-common@4.20.1-graphql-vnext-dev-preview.11(transitive)
- Removed@aws-amplify/graphql-transformer-interfaces@1.10.2-graphql-vnext-dev-preview.10(transitive)
- Removedgraphql-transformer-common@4.20.0(transitive)
Updated@aws-amplify/graphql-transformer-interfaces@1.10.2-graphql-vnext-dev-preview.11
Updatedgraphql-transformer-common@4.20.1-graphql-vnext-dev-preview.11