Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Releases: valu-digital/babel-gql

v0.1.5

07 Aug 07:42
Compare
Choose a tag to compare

Fix build output (remove optional chaining)

v0.1.4...v0.1.5

v0.1.4

07 Aug 07:19
Compare
Choose a tag to compare

Fix active option on QueryManager class

v0.1.3...v0.1.4

v0.1.1

17 Jan 14:54
Compare
Choose a tag to compare
  • Export ParsedGQLTag
  • Add customFetch support

v0.1.0...v0.1.1

v0.1.0

17 Jan 13:38
Compare
Choose a tag to compare

Breaking changes

You must now configure a Webpack plugin too.

Add BabelGQLWebpackPlugin to webpack.config.js

const { BabelGQLWebpackPlugin } = require("babel-gql/plugin");

module.exports = {
    // ...
    plugins: [
        new BabelGQLWebpackPlugin({
            // the directory where persisted query files will be written to
            target: ".queries",
        }),
    ],
};

If you use @valu/webpack-config:

// REQUIRES v0.12.0 of @valu/webpack-confi or later
const { createWebpackConfig } = require("@valu/webpack-config");
const { BabelGQLWebpackPlugin } = require("babel-gql/plugin");

module.exports = createWebpackConfig({
    babelPlugins: ["babel-gql/plugin"],
    webpackPlugins: [
        new BabelGQLWebpackPlugin({
            target: ".queries",
        }),
    ],
});

v0.0.6...v0.1.0

v0.0.6

14 Jan 12:14
Compare
Choose a tag to compare

Pass fetch options properly in dev too

v0.0.5...v0.0.6

v0.0.5

13 Jan 14:09
Compare
Choose a tag to compare

Add fetchOptions support to request()

Example

request("/graphql", {
    query: getPostsQuery,
    variables: {
        first: 10,
    },
    fetchOptions: {
        credentials: "omit",
        headers: {
            "x-custom-header": "test",
        },
    },
});

v0.0.4...v0.0.5