-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also introduces a CHANGELOG.md for the `@apollo/query-planner-wasm` package.
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# CHANGELOG for `@apollo/query-planner-wasm` | ||
|
||
## vNEXT | ||
|
||
> The changes noted within this `vNEXT` section have not been released yet. New PRs and commits which introduce changes should include an entry in this `vNEXT` section as part of their development. When a release is being prepared, a new header will be (manually) created below and the appropriate changes within that release will be moved into the new section. | ||
- To facilitate interoperability with bundlers (e.g., Webpack) attempting to bundle this package which includes a WASM module, we will also now generate a ECMAScript Module (ESM) entry-point for this package _in addition to the existing CommonJS (CJS) bundle. This new ESM entry-point is conveyed via the [`exports` object within the `package.json`](https://nodejs.org/api/packages.html#packages_exports) of the published package. It's worth noting that package has always had a WebAssembly (WASM; `.wasm`) module inside of it which was produced with [`wasm-pack`](https://github.com/rustwasm/wasm-pack) but, prior to this change, we'd been specifying the [`--target nodejs`](https://rustwasm.github.io/wasm-pack/book/commands/build.html#target) flag to `wasm-pack build`. [PR #270](https://github.com/apollographql/federation/pull/270) [Issue #255](https://github.com/apollographql/federation/issues/255) |