Skip to content

Commit

Permalink
fix: regression introduced in #24. Partially exporting ESM breaks env…
Browse files Browse the repository at this point in the history
…ironments that bundle for the browser, such as Next.js. Remove `pkg.exports` until what we ship there is 100% compatible with the ecosystem.
  • Loading branch information
stipsan committed Aug 27, 2022
1 parent d3a893a commit 8ed604e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ All notable changes to this project will be documented in this file. See

All notable changes to this project will be documented in this file.

## [3.3.5]

- fix: regression introduced in #24. Partially exporting ESM breaks environments that bundle for the browser, such as Next.js. Remove `pkg.exports` until what we ship there is 100% compatible with the ecosystem.

## [3.3.4]

- fix: removed `@sanity/generate-help-url` dependency which threw `TypeError: generateHelpUrl is not a function` errors in some cases
Expand Down Expand Up @@ -76,6 +80,7 @@ All notable changes to this project will be documented in this file.
- BREAKING: Remove deprecated `document` property on `assets.upload` response
- BREAKING: Make sure `client.observable.fetch()` returns a cold observable

[3.3.5]: https://github.com/sanity-io/client/compare/v3.3.4...v3.3.5
[3.3.4]: https://github.com/sanity-io/client/compare/v3.3.3...v3.3.4
[3.3.3]: https://github.com/sanity-io/client/compare/v3.3.2...v3.3.3
[3.3.2]: https://github.com/sanity-io/client/compare/v3.3.1...v3.3.2
Expand Down
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
"umd": "umd/sanityClient.min.js",
"unpkg": "umd/sanityClient.min.js",
"types": "./sanityClient.d.ts",
"exports": {
".": {
"source": "./src/sanityClient.js",
"browser": "./dist/sanityClient.browser.mjs",
"default": "./lib/sanityClient.js"
}
},
"files": [
"dist",
"lib",
Expand Down

0 comments on commit 8ed604e

Please sign in to comment.