526 Commits

Author SHA1 Message Date
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
Joel Denning
052c8747ff
Ensure that __esModule is copied to ns even if it isn't enumerable. (#2093)
* Ensure that __esModule is copied to ns even if it isn't enumerable.

* Self review

* Self review
2020-01-10 11:18:15 -07:00
Joel Denning
5338b4bb02
Fixing bug where named-exports didn't work on named registers. Resolves #2073. (#2074)
* Fixing bug where named-exports didn't work on named registers. Resolves #2073.

* Comment

* Comment

* Comment

* Guy's feedback
2019-11-22 14:01:06 -07:00
Guy Bedford
958aa919aa
handle resolution of relative URLs LHS in import maps (#2039) 2019-10-04 22:31:34 -04:00
Joel Denning
82a829e006 Fixing bug with AMD extra. Resolves #2026. (#2029) 2019-09-17 16:32:25 -04:00
Joel Denning
a40a82e36d Patching prepareImport before loading script modules. Resolves #2024. (#2025) 2019-09-13 17:46:12 -04:00
Joel Denning
1b5a2bdcc8 Loading type=systemjs-module scripts. Resolves #2002. (#2015) 2019-09-02 12:45:59 -04:00
Guy Bedford
e6bd2d3e15
Cascading import maps implementation (#2009) 2019-08-29 14:45:48 -04:00
Guy Bedford
36854be097
Module Types Extra (#2006) 2019-08-27 13:54:05 -04:00
Joel Denning
fc0cf78c6a Reserve html modules for future implementation. See #1992. (#2000) 2019-08-25 13:51:52 -04:00
Joel Denning
df3ac1955b Implement loading of CSS Modules. Resolves #1991. (#1997) 2019-08-25 12:57:46 -04:00
Guy Bedford
c0226a86b5
Add deps argument to onload hook (#1998) 2019-08-25 12:57:00 -04:00
Joel Denning
3b62497acd Changing System.resolve to be synchronous. Resolves #1985. (#1996) 2019-08-25 11:53:47 -04:00
Joel Denning
06dadee7f7 Supporting System.import for a single named System.register module (#1984) 2019-08-25 11:45:24 -04:00