Skip to content

Fix NPM shim resolver on Firefox #290

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 7 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ New features:
Bugfixes:
- Fix `Reference Error: main is not defined` bug: (#288 by @JordanMartinez)
- Fix `Unknown type Effect` bug in examples (#292 by @ptrfrncsmrph)
- Fix NPM dependency shims on Firefox 100+ (#289 by @JordanMartinez)
- Fix import maps for React deps by bumping version to 17.0.2 (#289 by @JordanMartinez)

Other improvements:
- Update `es-module-shims` to 1.5.9 (#289 by @JordanMartinez)

## [v2022-07-15.1](https://github.com/purescript/trypurescript/releases/tag/v2022-07-15.1)

Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Update the package set by doing the following:
- Update the version to the one you need once added
- If needed, include other files from that dependency
- Copy and paste the content into the `client/public/frame.html` file
- Ensure `es-module-shims` has version `1.5.5` or greater.
- Ensure `es-module-shims` has version `1.5.9` or greater.

6. If `es-module-shims` releases a new version, you can calculate its SHA-384 via

Expand Down
13 changes: 6 additions & 7 deletions client/public/frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,29 @@
</script>
<!--
JSPM Generator Import Map
Edit URL: https://generator.jspm.io/#Y2NnYGCzD80rySzJSU1hSMpM183MK0lNTy1yMNQz0zM1ZEhJTc7MTczRyyp2MDTQM9YzZChKTUwu0U3Jz3UwNNMzxCqiX5xaVJZaBJGAKystzUxxsACaYQQAoBlP83cA
Edit URL: https://generator.jspm.io/#Y2NhYGCzD80rySzJSU1hSMpM183MK0lNTy1yMNQz0zM1ZEhJTc7MTczRyyp2MDTQM9YzZChKTUwu0U3Jz3UwNNcz0DPCENAvTi0qSy2CiMMUlZZmpjhYAA0wAgA6XlZ2dAA
-->
<script type="importmap">
{
"imports": {
"big-integer": "https://ga.jspm.io/npm:[email protected]/BigInteger.js",
"decimal.js": "https://ga.jspm.io/npm:[email protected]/decimal.js",
"react": "https://ga.jspm.io/npm:react@16.13.1/index.js",
"react-dom": "https://ga.jspm.io/npm:react-dom@16.13.1/index.js",
"react-dom/server": "https://ga.jspm.io/npm:react-dom@16.13.1/server.browser.js",
"react": "https://ga.jspm.io/npm:react@17.0.2/index.js",
"react-dom": "https://ga.jspm.io/npm:react-dom@17.0.2/index.js",
"react-dom/server": "https://ga.jspm.io/npm:react-dom@17.0.2/server.browser.js",
"uuid": "https://ga.jspm.io/npm:[email protected]/dist/esm-browser/index.js"
},
"scopes": {
"https://ga.jspm.io/": {
"object-assign": "https://ga.jspm.io/npm:[email protected]/index.js",
"react": "https://ga.jspm.io/npm:[email protected]/index.js",
"scheduler": "https://ga.jspm.io/npm:[email protected]/index.js"
"scheduler": "https://ga.jspm.io/npm:[email protected]/index.js"
}
}
}
</script>

<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) -->
<script async src="https://ga.jspm.io/npm:[email protected].6/dist/es-module-shims.js" integrity="sha384-Zi3OSEiS8YnN0yIdnkInyBlzXCGA18AMnQuPb+T1hXvE4DIDhGIp2QIBZcm4WNIU" crossorigin="anonymous"></script>
<script async src="https://ga.jspm.io/npm:[email protected].9/dist/es-module-shims.js" integrity="sha384-O6YhhDNmwzHXz9VDaEaEtY9rnzCF5Fy+yoxD6StrNyhjwyBrYYOjZkbFRt9zcoGx" crossorigin="anonymous"></script>

<script src="js/frame.js"></script>
</head>
Expand Down