Skip to content

Improve string interpolation in non Node environments #4109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 30, 2022
Merged

Conversation

ardatan
Copy link
Owner

@ardatan ardatan commented Jun 30, 2022

Improvements on string interpolation ({env.sth} or {context.headers.sth}) for different environments

As we mention in most of our docs, we usually expect a key-value header object in the context.
But Fetch-like environments don't have this kind of object but instead Headers object which is a kind Map.
Now Mesh can detect this and automatically convert it to the key-value object especially for Yoga users.

Also Mesh now handles env in a better way for non-Node environments;

Consider import.meta.env as env if available, else take globalThis as env.

@changeset-bot
Copy link

changeset-bot bot commented Jun 30, 2022

🦋 Changeset detected

Latest commit: 7a8516d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 92 packages
Name Type
@graphql-mesh/cli Minor
@graphql-mesh/cross-helpers Minor
@graphql-mesh/openapi Minor
@graphql-mesh/soap Minor
@omnigraph/json-schema Minor
@graphql-mesh/runtime Minor
@graphql-mesh/utils Minor
@graphql-mesh/config Major
@graphql-mesh/container Patch
cloudflare-workers Patch
graphql-file-upload-example Patch
grpc-example Patch
grpc-reflection-example Patch
hasura-openbrewery-geodb Patch
hello-world-esm Patch
json-schema-hello-world Patch
json-schema-example Patch
json-schema-fhir Patch
json-schema-subscriptions Patch
mongoose-example Patch
mysql-employees Patch
mysql-rfam Patch
neo4j-example Patch
nextjs-apollo-example Patch
nextjs-sdk-example Patch
odata-microsoft-graph-example Patch
odata-msgraph-programmatic-ts Patch
odata-msgraph-programmatic Patch
odata-trippin-example Patch
javascript-wiki Patch
openapi-jira Patch
typescript-location-weather-example Patch
openapi-stackexchange Patch
openapi-stripe Patch
openapi-subscriptions Patch
openapi-youtrack Patch
postgres-geodb-example Patch
reddit-example Patch
country-info-example Patch
soap-demo Patch
soap-netsuite Patch
spacex-cfw Patch
chinook Patch
thrift-calculator Patch
type-merging-batching-example Patch
federation-gateway Patch
json-machete Patch
@graphql-mesh/store Patch
@graphql-mesh/cache-file Patch
@graphql-mesh/cache-redis Patch
@graphql-mesh/graphql Patch
@graphql-mesh/grpc Patch
@graphql-mesh/json-schema Patch
@graphql-mesh/mysql Patch
@graphql-mesh/neo4j Patch
@graphql-mesh/odata Patch
@graphql-mesh/postgraphile Patch
@graphql-mesh/thrift Patch
@graphql-mesh/tuql Patch
@graphql-mesh/transform-cache Patch
@graphql-mesh/transform-extend Patch
@graphql-mesh/transform-mock Patch
@graphql-mesh/transform-rate-limit Patch
@graphql-mesh/transform-snapshot Patch
@graphql-mesh/merger-federation Patch
@graphql-mesh/plugin-live-query Patch
@graphql-mesh/plugin-rate-limit Patch
@graphql-mesh/plugin-response-cache Patch
@omnigraph/openapi Patch
@omnigraph/raml Patch
@graphql-mesh/apollo-link Major
@graphql-mesh/urql-exchange Major
@graphql-mesh/jit-executor Patch
@graphql-mesh/cache-cfw-kv Patch
@graphql-mesh/cache-localforage Patch
@graphql-mesh/mongoose Patch
@graphql-mesh/new-openapi Patch
@graphql-mesh/raml Patch
@graphql-mesh/transform-encapsulate Patch
@graphql-mesh/transform-federation Patch
@graphql-mesh/transform-filter-schema Patch
@graphql-mesh/transform-hoist-field Patch
@graphql-mesh/transform-naming-convention Patch
@graphql-mesh/transform-prefix Patch
@graphql-mesh/transform-rename Patch
@graphql-mesh/transform-replace-field Patch
@graphql-mesh/transform-resolvers-composition Patch
@graphql-mesh/transform-type-merging Patch
@graphql-mesh/merger-bare Patch
@graphql-mesh/merger-stitching Patch
@graphql-mesh/types Patch
@graphql-mesh/transform-prune Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jun 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
graphql-mesh ✅ Ready (Inspect) Visit Preview Jun 30, 2022 at 1:45PM (UTC)

@theguild-bot
Copy link
Collaborator

theguild-bot commented Jun 30, 2022

The latest changes of this PR are available as alpha in npm (based on the declared changesets):

@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
[email protected]
@omnigraph/[email protected]
@omnigraph/[email protected]
@omnigraph/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]
@graphql-mesh/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants