Jack Westbrook
1f76d7d349
Feat: Support module.uri in AMD extra ( #2485 )
...
* feat(amd): support module.uri
* test(amd-extra): add test case for passing context meta url as module.uri
2024-04-27 14:59:31 -07:00
Mauricio Alves
a9e092a1b0
feat: add support for reading the mapping of loaded imports ( #2484 )
2024-04-27 14:57:54 -07:00
Jack Westbrook
61bc72f93a
fix(module-types): ignore undefined when checking for quotes in css url strings ( #2467 )
2023-08-15 22:18:06 -07:00
陈杨文
1e410396a4
feat: expose addImportMap ( #2429 )
2022-09-27 07:05:05 -07:00
陈杨文
6376e51033
fix: avoid module-types override shouldFetch ( #2427 )
2022-09-24 10:00:00 -07:00
Leslie Leigh (李的序)
01bac3ec52
fix: concurrent bug due to async execution ( #2404 )
2022-07-24 02:52:02 -07:00
Guy Bedford
db75ae4b0f
feat: Chomp migration, windows build, GitHub CI ( #2405 )
2022-07-24 02:41:07 -07:00
Joel Denning
e586338aae
Call fetch hook when retrieving external import maps. Resolves #2374 . ( #2376 )
...
* Call fetch hook when retrieving external import maps. Resolves #2374 .
* Semicolon
* Fix build
2022-01-21 15:45:38 -07:00
Joel Denning
6a5a62002e
Fixes for named-register extra. ( #2352 )
2021-08-17 10:06:33 -06:00
Joel Denning
a9a0f3470c
Do not export null as module.exports in amd.js. Resolves #2332 . ( #2334 )
...
* Do not export null as module.exports in amd.js. Resolves #2332 .
* Make named-exports and system-core resilient to _export(null)
* Comment
* Guy's feedback
2021-06-07 12:04:23 -06:00
Joel Denning
a4f64c939c
Refactor amd.js to only call System.register. Resolves #2331 . ( #2335 )
...
* Refactor amd.js to only call System.register. Resolves #2331 .
* Semicolons
* Curly braces
* Add new error/warning
2021-06-07 10:34:42 -06:00
Guy Bedford
e54d18d95a
Disable caching for test server ( #2330 )
2021-05-14 15:06:58 +02:00
kykwak
f34cdc6382
Onerror Callback Support for Errors Fetching External Import Map ( #2324 )
2021-04-28 20:31:39 +02:00
Joel Denning
5b99ee22ea
Allow deletion of uninstantiated modules whose top level parent import finished. Resolves #2286 . ( #2291 )
...
* Reproduce issue #2286 .
* Making test more clear
* Fix
* Self review
* Add load.p
* possible parent fix
* optional p
* parent restriction
* Fix
* Update src/system-core.js
* another variation
Co-authored-by: Guy Bedford <guybedford@gmail.com>
2020-12-31 13:05:28 -07:00
Joel Denning
bbd15a3ec3
Fix deleting modules after link failure. Resolves #2286 . ( #2288 )
2020-12-15 16:02:20 -08:00
Joel Denning
48351aa83c
System.firstGlobalProp to use first global. Resolves #2272 . ( #2280 )
2020-11-25 18:55:57 -08:00
Michael Geers
9edebd1969
Better import map error handling ( #2267 ) ( #2275 )
2020-11-25 18:55:23 -08:00
Guy Bedford
3eefa2daa8
Inline named exports extra into core ( #2264 )
2020-10-09 13:04:11 -07:00
Guy Bedford
281fdf0653
refactor module types as a fetch hook ( #2258 )
2020-10-09 07:51:10 -07:00
Guy Bedford
78072e594e
implement import map integrity ( #2255 )
2020-10-09 05:51:39 -07:00
Guy Bedford
50e5b1a933
type: "script" mode ( #2246 )
2020-09-11 17:11:06 -07:00
Guy Bedford
a0dd823256
import.meta.resolve implementation ( #2230 )
2020-08-10 11:56:41 -07:00
Guy Bedford
55478653b5
Implement integrity in import map ( #2229 )
2020-08-10 11:55:55 -07:00
Guy Bedford
42308a1f5a
fixup dynamic import maps ie11 test
2020-07-23 14:16:17 -07:00
Guy Bedford
c8210d60eb
depcache implementation ( #2134 )
2020-07-23 13:55:45 -07:00
Guy Bedford
7398358b5a
Dynamic maps ( #2217 )
2020-07-23 13:26:44 -07:00
Guy Bedford
26f91ca9f1
Auto import and core refactoring ( #2216 )
...
* auto import and core refactoring
* fixup internals test
2020-07-23 12:41:31 -07:00
Jamespp
b6be7a367e
Fix onload ( #2204 )
2020-07-21 08:24:51 -07:00
Somer
3286989685
Fixing browser tests on mocha 7.2.0 ( #2200 )
...
* Move extras imports to suiteSetup and run mocha.run once
* Report a test failure when an import or mocha error occurs
2020-07-05 21:29:55 -06:00
Brandon Istenes
809e91f4ee
Add error message for missing content-type header ( #2197 )
...
* Add error message for missing content-type header
* Update src/extras/module-types.js
Co-authored-by: Joel Denning <joeldenning@gmail.com>
* Add tests for missing or invalid content-type headers
Co-authored-by: Joel Denning <joeldenning@gmail.com>
2020-06-26 21:39:54 -06:00
Saulo Furuta
827c644e67
Named-exports extras - Default export function with named exports ( #2186 )
...
* Allow default function to have named-exports
* Updated dist bundle
* Add tests for umd named exports
* Revert dist changes
* created fixture for Object.create(null)
* Linters 👕
* Check for enumerable safe for Object.creaate(null)
* Add tests for default export w Obj.create(null)
* 👕
2020-05-09 10:17:30 -06:00
Joel Denning
fa543d4178
Fix bug in system-node where prepareImport overwrote import map. ( #2170 )
2020-04-09 15:42:21 -06:00
Joel Denning
eeb0e1f736
Fixing tests in IE11 ( #2167 )
2020-04-09 12:16:16 -06:00
Joel Denning
109af162d9
Add warning for calling System.set with non-URL id. ( #2161 )
...
* Add warning for calling System.set with non-URL id.
* Fixing package.json
* Self review
* Splitting warnings from errors.
* Self review
* Fix tests
* Guy's feedback
* Fixing test
2020-04-08 16:56:19 -06:00
Joel Denning
fa6afcd1ca
Fixing NodeJS build and tests. ( #2163 )
...
* Fixing NodeJS build and tests.
* Ensuring browser tests are run in firefox.
* Self review
* Making footprint command faster
* Fixing test scripts in Windows
2020-04-07 13:29:00 -06:00
Joel Denning
17686fbaa2
Switching to ncc, using make-fetch-happen, and source-map-support ( #2158 )
2020-04-06 17:47:52 -07:00
Joel Denning
7fea9d7c8c
NodeJS Support ( #2150 )
2020-04-06 16:04:45 -07:00
Joel Denning
243c0990ba
Switching to error codes and documentation pages ( #2151 )
...
* Beginnings of error codes
* Self review
* Merging master
* Undoing changes to dist
* Self review
* Self review
* Self review
* Self review
* Self review
* Self review
* Guy's feedback
* Guy's feedback
* Adding more documentation for error codes
* Self review
* Self review
* Last error codes
* Guy's feedback
* Self review
* Feedback
* Last feedback
* Self review
* Self review
* Feedback
2020-04-06 15:09:35 -06:00
Joel Denning
e890d4b562
Adding test-browser-watch script, and fixing nodejs cjs/esm interop warning ( #2145 )
2020-03-15 10:52:42 -06:00
Laura
b50fd23e36
Fix AMD modules which return falsy values ( #2130 )
...
* fix: amd modules can resolves to falsy values
* test: AMD module does not need to be named
* fix: missing AMD modules should be undefined
2020-02-27 15:20:35 -07:00
Joel Denning
6caaee5921
6.2.4
2020-02-23 19:05:31 -07:00
k-j-kim
90c8490f36
fix: cleaning up registerRegistry after instantiate ( #2125 )
...
* fix: cleaning up registerRegistry after instantiate
* refactor: setting entry to null instead of using nameRegistry
* test: adding a test for named registry resolve after import cleanup
* chore: reverting dist
2020-02-23 18:55:46 -07:00
Joel Denning
3e26b1d653
Fixing more named register race conditions. ( #2121 )
...
* Fixing more named register race conditions.
* Self review
* Guy's feedback
2020-02-14 09:44:45 -07:00
Joel Denning
dfdba67f65
Supporting multiple define variations for named modules. Resolves #2118 . ( #2119 )
...
* Supporting multiple define variations for named modules. Resolves #2118 .
* Self review
2020-02-07 09:09:02 -07:00
Joel Denning
2cf8503b0f
Fix problem with named register modules. Resolves #2115 . ( #2116 )
2020-02-06 09:44:06 -07:00
Guy Bedford
f1e5ec58fa
createScript / fetch / shouldFetch hooks ( #2058 )
...
* createScript hook
* fetch, shouldFetch
Co-authored-by: Joel Denning <joeldenning@gmail.com>
2020-01-31 13:55:34 -07:00
Joel Denning
9c1fe43f05
Prefer import map resolution over registerRegistry. Resolves #2107 . ( #2108 )
...
* Prefer import map resolution over registerRegistry. Resolves #2107 .
* Guy's feedback
2020-01-25 21:18:16 -07:00
Joel Denning
8ac413f127
Fixing bug - named AMD modules were instantiated twice. Resolves #2103 . ( #2104 )
...
* Fixing bug - named AMD modules were instantiated twice. Resolves #2103 .
* Self review
* Self review
2020-01-17 11:40:15 -07:00
Joel Denning
a13f88fb25
Fixing tests in non-Chrome browsers
2020-01-11 14:12:11 -07:00
Lars den Bakker
c7f5e1273c
fix: strip search param and hash when determining module type ( #2096 )
2020-01-11 14:03:50 -07:00