Skip to content

Commit ea63671

Browse files
Fix NPM shim resolver on Firefox (#290)
* Update es-module-shims to 1.5.9 * Add changelog entry * Update React import map to 17.0.2
1 parent 121cc79 commit ea63671

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ New features:
1111
Bugfixes:
1212
- Fix `Reference Error: main is not defined` bug: (#288 by @JordanMartinez)
1313
- Fix `Unknown type Effect` bug in examples (#292 by @ptrfrncsmrph)
14+
- Fix NPM dependency shims on Firefox 100+ (#289 by @JordanMartinez)
15+
- Fix import maps for React deps by bumping version to 17.0.2 (#289 by @JordanMartinez)
1416

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

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

RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Update the package set by doing the following:
5353
- Update the version to the one you need once added
5454
- If needed, include other files from that dependency
5555
- Copy and paste the content into the `client/public/frame.html` file
56-
- Ensure `es-module-shims` has version `1.5.5` or greater.
56+
- Ensure `es-module-shims` has version `1.5.9` or greater.
5757

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

client/public/frame.html

+6-7
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,29 @@
1818
</script>
1919
<!--
2020
JSPM Generator Import Map
21-
Edit URL: https://generator.jspm.io/#Y2NnYGCzD80rySzJSU1hSMpM183MK0lNTy1yMNQz0zM1ZEhJTc7MTczRyyp2MDTQM9YzZChKTUwu0U3Jz3UwNNMzxCqiX5xaVJZaBJGAKystzUxxsACaYQQAoBlP83cA
21+
Edit URL: https://generator.jspm.io/#Y2NhYGCzD80rySzJSU1hSMpM183MK0lNTy1yMNQz0zM1ZEhJTc7MTczRyyp2MDTQM9YzZChKTUwu0U3Jz3UwNNcz0DPCENAvTi0qSy2CiMMUlZZmpjhYAA0wAgA6XlZ2dAA
2222
-->
2323
<script type="importmap">
2424
{
2525
"imports": {
2626
"big-integer": "https://ga.jspm.io/npm:[email protected]/BigInteger.js",
2727
"decimal.js": "https://ga.jspm.io/npm:[email protected]/decimal.js",
28-
"react": "https://ga.jspm.io/npm:react@16.13.1/index.js",
29-
"react-dom": "https://ga.jspm.io/npm:react-dom@16.13.1/index.js",
30-
"react-dom/server": "https://ga.jspm.io/npm:react-dom@16.13.1/server.browser.js",
28+
"react": "https://ga.jspm.io/npm:react@17.0.2/index.js",
29+
"react-dom": "https://ga.jspm.io/npm:react-dom@17.0.2/index.js",
30+
"react-dom/server": "https://ga.jspm.io/npm:react-dom@17.0.2/server.browser.js",
3131
"uuid": "https://ga.jspm.io/npm:[email protected]/dist/esm-browser/index.js"
3232
},
3333
"scopes": {
3434
"https://ga.jspm.io/": {
3535
"object-assign": "https://ga.jspm.io/npm:[email protected]/index.js",
36-
"react": "https://ga.jspm.io/npm:[email protected]/index.js",
37-
"scheduler": "https://ga.jspm.io/npm:[email protected]/index.js"
36+
"scheduler": "https://ga.jspm.io/npm:[email protected]/index.js"
3837
}
3938
}
4039
}
4140
</script>
4241

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

4645
<script src="js/frame.js"></script>
4746
</head>

0 commit comments

Comments
 (0)