Releases: graphql-hive/envelop
September 28, 2022
@envelop/generic-auth@4.6.0
Minor Changes
-
#1528
50f214a2
Thanks @{! - give access to execute args invalidateUser
function.This is useful in conjunction with the
fieldAuthExtension
parameter to achieve custom per field validation:import { ValidateUserFn } from '@envelop/generic-auth' const validateUser: ValidateUserFn<UserType> = async ({ user, executionArgs, fieldAuthExtension }) => { if (!user) { throw new Error(`Unauthenticated!`) } // You have access to the object define in the resolver tree, allowing to define any custom logic you want. const validate = fieldAuthExtension?.validate if (validate) { await validate({ user, variables: executionArgs.variableValues, context: executionArgs.contextValue }) } } const resolvers = { Query: { resolve: (_, { userId }) => getUser(userId), extensions: { auth: { validate: ({ user, variables, context }) => { // We can now have access to the operation and variables to decide if the user can execute the query if (user.id !== variables.userId) { throw new Error(`Unauthorized`) } } } } } } }
September 19, 2022
@envelop/sentry@3.8.1
Patch Changes
- #1526
4a583b7a
Thanks @kamilkisiela! - fix: EnvelopError was not skipped by default
August 31, 2022
@envelop/core@2.6.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
Patch Changes
-
#1496
ae7bc9a3
Thanks @ardatan! - Fix isIntrospectionDocument and isIntrospectionOperation for fragment tricks -
Updated dependencies [
1f7af02b
]:- @envelop/types@2.4.0
@envelop/apollo-datasources@1.3.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
-
Updated dependencies [
1f7af02b
,ae7bc9a3
]:- @envelop/core@2.6.0
@envelop/apollo-federation@2.6.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
-
Updated dependencies [
1f7af02b
,ae7bc9a3
]:- @envelop/core@2.6.0
@envelop/apollo-server-errors@3.6.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
-
Updated dependencies [
1f7af02b
,ae7bc9a3
]:- @envelop/core@2.6.0
@envelop/apollo-tracing@3.6.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
-
Updated dependencies [
1f7af02b
,ae7bc9a3
]:- @envelop/core@2.6.0
@envelop/auth0@3.6.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
-
Updated dependencies [
1f7af02b
,ae7bc9a3
]:- @envelop/core@2.6.0
@envelop/dataloader@3.6.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
-
Updated dependencies [
1f7af02b
,ae7bc9a3
]:- @envelop/core@2.6.0
@envelop/depth-limit@1.8.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
-
Updated dependencies [
1f7af02b
,ae7bc9a3
]:- @envelop/core@2.6.0
@envelop/disable-introspection@3.6.0
Minor Changes
-
#1499
1f7af02b
Thanks @viniciuspalma! - Adding tslib to package dependenciesProjects that currently are using yarn Berry with PnP or any strict dependency
resolver, that requires that all dependencies are specified on
package.json otherwise it would endue in an error if not treated correctSince https://www.typescriptlang.org/tsconfig#importHelpers is currently
being used, tslib should be exported as a dependency to external runners
get the proper import.Change on each package:
// package.json { "dependencies": { "tslib": "^2.4.0" } }
-
Updated dependencies [[
1f7af02b
](https://github.com/n1ru4l/envel...
August 16, 2022
@envelop/core@2.5.0
Minor Changes
Patch Changes
- #1471
5a5f5c04
Thanks @n1ru4l! - Ensure error thrown from the context factory is wrapped within a GraphQLError for proper formatting. Previously this caused an unexpected error to be swallowed completly when error masking is enabled.
@envelop/apollo-datasources@1.2.0
Minor Changes
@envelop/apollo-federation@2.5.0
Minor Changes
@envelop/apollo-server-errors@3.5.0
Minor Changes
@envelop/apollo-tracing@3.5.0
Minor Changes
@envelop/auth0@3.5.0
Minor Changes
@envelop/dataloader@3.5.0
Minor Changes
@envelop/depth-limit@1.7.0
Minor Changes
@envelop/disable-introspection@3.5.0
Minor Changes
@envelop/execute-subscription-event@2.5.0
Minor Changes
@envelop/extended-validation@1.8.0
Minor Changes
@envelop/filter-operation-type@3.5.0
Minor Changes
@envelop/fragment-arguments@3.5.0
Minor Changes
@envelop/generic-auth@4.4.0
Minor Changes
Patch Changes
- Updated dependencies []:
- @envelop/extended-validation@1.8.0
@envelop/graphql-jit@4.5.0
Minor Changes
@envelop/graphql-middleware@3.5.0
Minor Changes
@envelop/graphql-modules@3.5.0
Minor Changes
@envelop/live-query@4.1.0
Minor Changes
-
#1481
752ba122
Thanks @n1ru4l! - Support for plugging in a patch middleware.import { InMemoryLiveQueryStore } from '@n1ru4l/in-memory-live-query-store' import { applyLiveQueryJSONDiffPatchGenerator } from '@n1ru4l/graphql-live-query-patch-jsondiffpatch' const liveQueryStore = new InMemoryLiveQueryStore() const plugin = useLiveQuery({ liveQueryStore, applyLiveQueryPatchGenerator: applyLiveQueryJSONDiffPatchGenerator })
-
Updated dependencies [
5a5f5c04
,d828f129
]:- @envelop/core@2.5.0
Patch Changes
-
#1481
752ba122
Thanks @n1ru4l! - dependencies updates:- Added dependency
@n1ru4l/graphql-live-query-patch@^0.7.0
↗︎ (todependencies
)
- Added dependency
@envelop/newrelic@4.2.0
Minor Changes
Patch Changes
-
#1457
ff8b4476
Thanks @zawadzkip! - New Relic: add error for agent not being found
Adds an error message when initializing the new relic plugin- This error message will occur when the new relic agent is not found when initializing the plugin. Signalling information to a developer that new relic may not be
- installed correctly or may be disabled where this plugin is being instantiated.
@envelop/opentelemetry@3.5.0
Minor Changes
@envelop/operation-field-permissions@3.5.0
Minor Changes
Patch Changes
- Updated dependencies []:
- @envelop/extended-validation@1.8.0
@envelop/parser-cache@4.6.0
Minor Changes
@envelop/persisted-operations@4.5.0
Minor Changes
@envelop/preload-assets@3.5.0
Minor Changes
@envelop/prometheus@6.5.0
Minor Changes
@envelop/rate-limiter@3.5.0
Minor Changes
- Updated dependencies [[
5a5f5c04
](https://gith...
@envelop/validation-cache@4.5.2
@envelop/types@2.3.1
Patch Changes
- 071f946: Fix CommonJS TypeScript resolution with
moduleResolution
node16
ornodenext