1 | # next-graphql-react changelog
|
2 |
|
3 | ## 8.0.4
|
4 |
|
5 | ### Patch
|
6 |
|
7 | - Updated dependencies.
|
8 | - Removed redundant dev dependencies.
|
9 | - Stop using [`hard-rejection`](https://npm.im/hard-rejection) to detect unhandled `Promise` rejections in tests, as Node.js v15+ does this natively.
|
10 | - Tweaked the v8.0.3 changelog entry.
|
11 | - Always use regex `u` mode.
|
12 | - Use the Next.js JS API instead of the CLI to start Next.js in tests, fixing Next.js start detection in tests broken since Next.js v10.0.6-canary.8.
|
13 | - Asynchronously create test fixture files.
|
14 | - Fixed incorrect console output indentation following certain test failures.
|
15 | - Added tests for SSR GraphQL response `Link` header forwarding to the client.
|
16 | - Fixed errors that can happen during a Next.js build or SSR due to unparsable `Link` headers.
|
17 | - Internal JSDoc tweaks.
|
18 | - Updated GitHub Actions CI config:
|
19 | - Updated `actions/checkout` to v2.
|
20 | - Updated `actions/setup-node` to v2.
|
21 | - Don’t specify the `CI` environment variable as it’s set by default.
|
22 |
|
23 | ## 8.0.3
|
24 |
|
25 | ### Patch
|
26 |
|
27 | - Updated the [`next`](https://npm.im/next) peer dependency to `9.0.3 - 10`.
|
28 | - Updated the [`react`](https://npm.im/react) peer dependency to `16.8 - 17`.
|
29 | - Updated dependencies.
|
30 | - Moved [`disposable-directory`](https://npm.im/disposable-directory) to dev dependencies.
|
31 | - Also run GitHub Actions with Node.js v15.
|
32 | - Fixed a test hanging in Node.js v15.
|
33 |
|
34 | ## 8.0.2
|
35 |
|
36 | ### Patch
|
37 |
|
38 | - Updated dependencies.
|
39 | - Updated the [`graphql-react`](https://npm.im/graphql-react) peer dependency to `11 - 12`.
|
40 |
|
41 | ## 8.0.1
|
42 |
|
43 | ### Patch
|
44 |
|
45 | - Updated dependencies.
|
46 | - Derive fixture dependency versions from dev dependency versions.
|
47 | - No longer separately build ESM and CJS to simplify package scripts, Babel and ESLint config.
|
48 | - Use `require` instead of dynamic `import` in `withGraphQLApp` source, as since v7.0.0 the module is only published as CJS.
|
49 | - Removed unnecessary `.js` file extensions from `require` paths.
|
50 | - Simplified the GitHub Actions CI config with the [`npm install-test`](https://docs.npmjs.com/cli/install-test.html) command.
|
51 | - Clearly documented ways to `import` and `require` the package exports.
|
52 | - Removed `npm-debug.log` from the `.gitignore` file as npm [v4.2.0](https://github.com/npm/npm/releases/tag/v4.2.0)+ doesn’t create it in the current working directory.
|
53 |
|
54 | ## 8.0.0
|
55 |
|
56 | ### Major
|
57 |
|
58 | - Updated supported Node.js versions to `^10.17.0 || ^12.0.0 || >= 13.7.0`.
|
59 | - Added integration tests. These use modern Node.js APIs, increasing the minimum supported Node.js version.
|
60 |
|
61 | ### Patch
|
62 |
|
63 | - Updated dependencies.
|
64 | - Stop testing with Node.js v13.
|
65 | - Added missing file extensions to dynamic imports from Next.js.
|
66 | - Removed documentation relating to polyfilling `Promise` and `fetch`, as they are automatically polyfilled by recent versions of Next.js.
|
67 | - Updated the `.editorconfig` file.
|
68 |
|
69 | ## 7.0.1
|
70 |
|
71 | ### Patch
|
72 |
|
73 | - Corrected the package description to match the current API.
|
74 | - Updated JSDoc code examples:
|
75 | - Prettier formatting.
|
76 | - Import React in examples containing JSX.
|
77 |
|
78 | ## 7.0.0
|
79 |
|
80 | ### Major
|
81 |
|
82 | - Added a [package `exports` field](https://nodejs.org/api/esm.html#esm_package_exports) to support native ESM in Node.js.
|
83 | - Some source and published files are now `.js` (CJS) instead of `.mjs` (ESM), so undocumented deep imports may no longer work. [This approach avoids the dual package hazard](https://nodejs.org/api/esm.html#esm_approach_1_use_an_es_module_wrapper).
|
84 | - Updated Node.js support from v10+ to `10 - 12 || >= 13.7` to reflect the package `exports` related breaking changes.
|
85 | - Updated the [`graphql-react`](https://npm.im/graphql-react) peer dependency to `^11.0.0`.
|
86 | - Removed `withGraphQLConfig`; `withGraphQLApp` now uses dynamic `import` to only load certain dependencies in a server environment.
|
87 |
|
88 | ### Patch
|
89 |
|
90 | - Updated dependencies.
|
91 | - Removed the [`@babel/plugin-proposal-object-rest-spread`](https://npm.im/@babel/plugin-proposal-object-rest-spread) and [`babel-plugin-transform-replace-object-assign`](https://npm.im/babel-plugin-transform-replace-object-assign) dev dependencies and simplified Babel config.
|
92 | - Improved the package `prepare:prettier` and `test:prettier` scripts.
|
93 | - Reordered the package `test:eslint` script args for consistency with `test:prettier`.
|
94 | - Configured Prettier option `semi` to the default, `true`.
|
95 | - Lint fixes for [`prettier`](https://npm.im/prettier) v2.
|
96 | - Reorder Babel config fields.
|
97 | - Ensure GitHub Actions run on pull request.
|
98 | - Also run GitHub Actions with Node.js v14.
|
99 | - Support Next.js static HTML export, fixing [#4](https://github.com/jaydenseric/next-graphql-react/issues/4).
|
100 |
|
101 | ## 6.0.1
|
102 |
|
103 | ### Patch
|
104 |
|
105 | - Updated dev dependencies.
|
106 | - Fixed a bug relating to ESM/CJS interoperability and default imports.
|
107 |
|
108 | ## 6.0.0
|
109 |
|
110 | ### Major
|
111 |
|
112 | - Updated Node.js support from v8.10+ to v10+.
|
113 | - Updated dev dependencies, some of which now require Node.js v10+.
|
114 |
|
115 | ### Patch
|
116 |
|
117 | - Updated dependencies.
|
118 | - Removed the now redundant [`eslint-plugin-import-order-alphabetical`](https://npm.im/eslint-plugin-import-order-alphabetical) dev dependency.
|
119 | - Stop using [`husky`](https://npm.im/husky) and [`lint-staged`](https://npm.im/lint-staged).
|
120 | - Use strict mode for scripts.
|
121 | - Fixed page `getInitialProps` not working when `withGraphQLApp` decorates an app that doesn’t have `getInitialProps`.
|
122 |
|
123 | ## 5.1.0
|
124 |
|
125 | ### Minor
|
126 |
|
127 | - Setup [GitHub Sponsors funding](https://github.com/sponsors/jaydenseric):
|
128 | - Added `.github/funding.yml` to display a sponsor button in GitHub.
|
129 | - Added a `package.json` `funding` field to enable npm CLI funding features.
|
130 |
|
131 | ### Patch
|
132 |
|
133 | - Updated dev dependencies.
|
134 |
|
135 | ## 5.0.0
|
136 |
|
137 | ### Major
|
138 |
|
139 | - Updated Node.js support from v8.5+ to v8.10+, to match what the [`eslint`](https://npm.im/eslint) dev dependency now supports. This is unlikely to be a breaking change for the published package.
|
140 |
|
141 | ### Patch
|
142 |
|
143 | - Updated dev dependencies.
|
144 | - Updated the [`graphql-react`](https://npm.im/graphql-react) peer dependency to `8.3.0 - 9`.
|
145 | - Clarified that Opera Mini isn’t supported in the Browserslist queries and readme “Support” section.
|
146 | - Use GitHub Actions instead of Travis for CI.
|
147 | - Removed `package-lock.json` from `.gitignore` and `.prettierignore` as it’s disabled in `.npmrc` anyway.
|
148 | - Updated the `withGraphQLApp` example code for the current Next.js API, and mark it as JSX instead of JS for syntax highlighting.
|
149 | - Added a readme “Examples” section.
|
150 |
|
151 | ## 4.0.0
|
152 |
|
153 | ### Major
|
154 |
|
155 | - Updated the [`next`](https://npm.im/next) peer dependency to `^9.0.3`.
|
156 | - Use the new `AppTree` component available in [`next` v9.0.3](https://github.com/zeit/next.js/releases/tag/v9.0.3) in the `App.getInitialProps` static method `context` argument, with the `ssr` function in `withGraphQLApp`. This allows the use of Next.js React hook based APIs such as `useRouter` that previously had undefined context values in SSR (see [zeit/next.js#6042](https://github.com/zeit/next.js/issues/6042)).
|
157 |
|
158 | ### Patch
|
159 |
|
160 | - Updated dependencies.
|
161 | - Cleaner readme “API” section table of contents with “See” and “Examples” headings excluded, thanks to [`jsdoc-md` v3.1.0](https://github.com/jaydenseric/jsdoc-md/releases/tag/v3.1.0).
|
162 | - Removed a now redundant ESLint disable `no-console` comment in `withGraphQLApp`.
|
163 |
|
164 | ## 3.2.0
|
165 |
|
166 | ### Minor
|
167 |
|
168 | - In addition to `preload`, HTTP `Link` headers from GraphQL responses during SSR with the following `rel` parameters are forwarded in the Next.js page response:
|
169 | - `dns-prefetch`
|
170 | - `preconnect`
|
171 | - `prefetch`
|
172 | - `modulepreload`
|
173 | - `prerender`
|
174 |
|
175 | ### Patch
|
176 |
|
177 | - Updated dev dependencies.
|
178 | - Minor variable rename for clarity.
|
179 |
|
180 | ## 3.1.1
|
181 |
|
182 | ### Patch
|
183 |
|
184 | - Fixed edge case HTTP `Link` header parsing bugs (e.g. an error when a URL contains `,`) by replacing the `filterLinkHeader` and `mergeLinkHeaders` functions with [`http-link-header`](https://npm.im/http-link-header).
|
185 | - Fixed `withGraphQLConfig` documentation.
|
186 | - Documented the HTTP `Link` `rel="preload"` header forwarding behavior of `withGraphQLApp`.
|
187 |
|
188 | ## 3.1.0
|
189 |
|
190 | ### Minor
|
191 |
|
192 | - Updated the [`next`](https://npm.im/next) peer dependency to `7 - 9`.
|
193 | - HTTP `Link` headers with `rel=preload` from GraphQL responses are now merged with the Next.js page response `Link` header (if present), allowing assets to be preloaded from GraphQL queries.
|
194 |
|
195 | ### Patch
|
196 |
|
197 | - Updated dependencies.
|
198 | - New `src/universal/decoys` directory structure for decoy server files.
|
199 |
|
200 | ## 3.0.2
|
201 |
|
202 | ### Patch
|
203 |
|
204 | - Updated dependencies.
|
205 | - Reduced the size of the published `package.json` by moving dev tool config to files. This also prevents editor extensions such as Prettier and ESLint from detecting config and attempting to operate when opening package files installed in `node_modules`.
|
206 | - Use `cjs` instead of `commonjs` for the [`@babel/preset-env`](https:npm.im/@babel/preset-env) `modules` option.
|
207 | - Use `>=` in the Browserslist `node` queries.
|
208 |
|
209 | ## 3.0.1
|
210 |
|
211 | ### Patch
|
212 |
|
213 | - Updated dependencies.
|
214 | - Updated examples for [`graphql-react`](https:npm.im/graphql-react) v8.2.0.
|
215 |
|
216 | ## 3.0.0
|
217 |
|
218 | ### Major
|
219 |
|
220 | - Updated the [`graphql-react`](https://npm.im/graphql-react) peer dependency to `^8.0.0`, and updated the implementation for the new API.
|
221 | - Updated the [`react`](https://npm.im/react) peer dependency to `^16.8.0`.
|
222 |
|
223 | ### Minor
|
224 |
|
225 | - Updated the [`next`](https://npm.im/next) peer dependency to `7 - 8`.
|
226 |
|
227 | ### Patch
|
228 |
|
229 | - Updated dev dependencies.
|
230 | - Simplified the `prepublishOnly` script.
|
231 | - Updated docs for the new [`graphql-react`](https://npm.im/graphql-react) API.
|
232 |
|
233 | ## 2.0.0
|
234 |
|
235 | ### Major
|
236 |
|
237 | - Updated the [`graphql-react`](https://npm.im/graphql-react) peer dependency to `^7.0.0`.
|
238 | - Renamed `withGraphQL` to `withGraphQLApp`.
|
239 | - Added `withGraphQLConfig`, a Next.js custom config decorator that excludes server only `graphql-react/lib/ssr` imports from the client bundle.
|
240 |
|
241 | ### Patch
|
242 |
|
243 | - Updated dependencies.
|
244 | - New package description.
|
245 | - New project structure so server only and universal modules can have different Babel and Browserslist config.
|
246 |
|
247 | ## 1.0.2
|
248 |
|
249 | ### Patch
|
250 |
|
251 | - Updated dev dependencies.
|
252 | - Catch and `console.log` GraphQL `preload` render errors.
|
253 |
|
254 | ## 1.0.1
|
255 |
|
256 | ### Patch
|
257 |
|
258 | - Fixed GraphQL cache clearing on route changes.
|
259 | - Fixed incorrect `getInitialProps` implementation.
|
260 | - Higher-order component display name better follows [React conventions](https://reactjs.org/docs/higher-order-components#convention-wrap-the-display-name-for-easy-debugging):
|
261 | - Uppercase first letter.
|
262 | - Decorated component name falls back to `Component` instead of `Unknown`.
|
263 | - Renamed `cache` prop to `graphqlCache`.
|
264 | - Improved JSDoc.
|
265 |
|
266 | ## 1.0.0
|
267 |
|
268 | Initial release.
|