Skip to content

Latest commit

 

History

History
1473 lines (507 loc) · 39.4 KB

CHANGELOG.md

File metadata and controls

1473 lines (507 loc) · 39.4 KB

3.1.1 (2024-12-24)

Bug Fixes

  • some npm package uses array in package.json exports condition (2fe50e6)

3.1.0 (2024-12-24)

Bug Fixes

  • fix local require check in npm package (fba127f)

Features

  • support node: import like require('node:fs/promises') (8d0544c), closes #17
  • support package.json exports field (a800eb8), closes #17

3.0.0 (2024-09-17)

chore

BREAKING CHANGES

  • drop support of Node.js < v18

2.1.2 (2024-05-11)

2.1.1 (2022-08-06)

Bug Fixes

  • clearCache should return resolved promise (a828f48)
  • need to init parcel source-map for using in browser (9538e6e)

2.1.0 (2022-05-21)

Features

  • bring back browser test, use typescript to compile esm (55db97d)

2.0.1 (2022-05-20)

2.0.0 (2022-05-20)

chore

  • skip browser test for now (4bcb136)

Features

  • use faster @parcel/source-map (ecf3469)

BREAKING CHANGES

  • temporarily drop support of running in browser env
  • drop support of of nodejs v12 and below

1.14.13 (2022-05-18)

1.14.12 (2022-05-18)

Bug Fixes

  • more accurate time report (df47a01)

1.14.11 (2022-05-17)

Bug Fixes

  • update source-map to fix the issue on nodejs v18 (0565f57)

1.14.10 (2022-05-07)

Bug Fixes

  • bypass source-map bug on sourceRoot (6972943)
  • fill process.execArgv (9df7e0b)
  • fill up process.version and process.versions for browser code (056fe88)

1.14.9 (2021-11-28)

1.14.8 (2021-05-13)

Bug Fixes

  • handle indirect define in special UMD module (4961f2d), closes #25

1.14.7 (2021-01-14)

1.14.6 (2021-01-13)

Bug Fixes

  • correctly treat empty commonjs code (89046fd)

1.14.5 (2021-01-13)

1.14.4 (2020-12-19)

Bug Fixes

  • fallback gracefully for broken browser or module field in package.json (1e220f5), closes #23

1.14.3 (2020-11-15)

Bug Fixes

  • use absolute path to bypass weird yarn2 bug (8f4b8d7)

1.14.2 (2020-11-15)

Bug Fixes

  • bring back "resolve" for yarn2 compatibility (512a740), closes #22

1.14.1 (2020-11-02)

Bug Fixes

  • leave dynamic import with full url untouched (f2205f0), closes #21

1.14.0 (2020-10-26)

Features

  • improve tracing performance by avoid parsing unchanged code (b2c2e38)

1.13.5 (2020-10-16)

1.13.4 (2020-10-02)

Bug Fixes

  • fix possible failing resolve due to new exports field in package.json (09d409e)

1.13.3 (2020-09-16)

Bug Fixes

  • correctly handle browser field "." replacement (647d73d)

1.13.2 (2020-07-17)

Bug Fixes

  • fix above the surface json module (e.g. ../package.json) (b1a7f59)

1.13.1 (2020-05-28)

1.13.0 (2020-04-18)

Features

  • upgrade to stream-browserify v3 (889abe0)

1.12.9 (2020-04-09)

Bug Fixes

  • ignores runtime modules mapped by paths (52d7102)

1.12.8 (2020-04-08)

Bug Fixes

  • fix runtime loading on module with paths mapped https:// (c1b132e)

1.12.7 (2020-04-08)

Bug Fixes

  • don't detect false cjs require, properly detect global require usage (8e25d19)

1.12.6 (2020-04-03)

1.12.5 (2020-04-03)

1.12.4 (2020-04-03)

Bug Fixes

  • delay version message to construct (7a8367a)

1.12.3 (2020-04-03)

1.12.2 (2020-04-02)

1.12.1 (2020-04-02)

Bug Fixes

  • meriyah is dep, not devDep (887b570)

1.12.0 (2020-04-02)

Features

  • switch from babel parser to meriyah for performance (4c817af)

1.11.6 (2020-03-18)

Bug Fixes

  • alias should alias module id too (28b6fc8)

1.11.5 (2020-03-06)

1.11.4 (2020-03-05)

Bug Fixes

  • fix main alias on file name like index.cjs.js (3910668)
  • remove alias check to avoid double strip (ec804c5)

1.11.3 (2020-03-04)

Bug Fixes

  • dynamic import() should return es namespace (b7b68b5)

1.11.2 (2020-02-14)

Bug Fixes

1.11.1 (2020-02-14)

Bug Fixes

  • fix fsExists on dir check (bcb2d67)

1.11.0 (2020-02-13)

Features

  • add exists api to package-file-reader to avoid unnecessary io (7c45630)

1.10.4 (2020-02-13)

Bug Fixes

  • lazily resolve package main (b883b05)

1.10.3 (2020-02-12)

Bug Fixes

  • treat empty cache as no cache (41460d8)

1.10.2 (2020-02-11)

Bug Fixes

  • package reader needs to bypass traced cache (c6ed0eb)

1.10.1 (2020-02-11)

Bug Fixes

  • avoid fetching jsdelivr package.json repeatedly (b81bc56)

1.10.0 (2020-02-10)

Features

  • support aggressive reading from cache (dc824d0)

1.9.1 (2020-01-31)

Bug Fixes

  • need to transform cjs/mjs as js code (2326c49)

1.9.0 (2020-01-31)

Features

  • small step to add some support for mjs and cjs files (a5e1d05)

1.8.1 (2020-01-28)

Bug Fixes

  • add package main path to cache hash (f7353ab)

1.8.0 (2020-01-22)

Features

  • add "size" meta data to getCache callback (0067ae3)

1.7.5 (2020-01-21)

Bug Fixes

  • synchronously print slow code warning (0c36984)

1.7.4 (2020-01-20)

1.7.3 (2020-01-20)

1.7.2 (2020-01-19)

1.7.1 (2020-01-18)

1.7.0 (2020-01-17)

Features

  • calls getCache with meta info to allow user to fine tune cache storage (c2b08d6)

1.6.0 (2020-01-15)

Features

  • better stub of fs to delay the error in browser (67b1673)

1.5.1 (2019-12-22)

Bug Fixes

  • avoid warning of unhandled promise reject (0163b08)

1.5.0 (2019-12-22)

Bug Fixes

  • localStorage api is not available in service worker (fc49a20)

Features

  • improve jsdelivr reader by caching file lists result (45a1faa)

1.4.0 (2019-12-20)

Features

  • show additional package config in log (902383d)

1.3.1 (2019-12-19)

Bug Fixes

  • update to latest estree ImportExpression from @babel/parser (a105914)

1.3.0 (2019-12-19)

Features

  • performance boost by paralleling npm package (io) reading (85a4926)

1.2.5 (2019-12-18)

1.2.4 (2019-12-17)

Bug Fixes

  • avoid panic when parsing toastr, but doesn't fix toastr bundling (9024a62)

1.2.3 (2019-11-13)

Bug Fixes

  • fix default NODE_ENV value in cache key (d24dea6)

1.2.2 (2019-10-16)

Bug Fixes

  • fix missed sourcemap content on cache key (81060cf)

1.2.1 (2019-09-26)

Bug Fixes

  • fix esm-to-cjs error when running bundler inside browser (a3b9a20)

1.2.0 (2019-09-23)

Bug Fixes

  • fix jsDeliver reader url issue (a831fad)

Features

  • refactor forced main, support forced main in jsDelivr (4fdfb00)

1.1.2 (2019-09-22)

Bug Fixes

  • use full path for jsdelivr when running dumber in browser (fcc014a)

1.1.1 (2019-09-22)

Bug Fixes

  • avoid conflict in conventional alias, only apply for package with main with same path prefix (99b4bba)
  • fix a missing package alias when main file is requested from an explicit require('packageName/main/path'); (7ecc905)

1.1.0 (2019-09-02)

Features

  • support gulp-dumber-css-module (2d11107), closes #13

1.0.2 (2019-08-30)

Bug Fixes

  • fix wrong removal of js string contains literl "sourceMappingURL" (73db498)

1.0.1 (2019-08-30)

1.0.0 (2019-08-29)

0.14.4 (2019-08-28)

Bug Fixes

  • replace deprecated cherow with @babel/parser (in estree mode) (896057a)

0.14.3 (2019-08-09)

Bug Fixes

  • fix regresstion on path to inject-css module (def96de)

0.14.2 (2019-08-09)

Bug Fixes

  • fix bad typo mistake in node-env-condition (6e11ffe)

0.14.1 (2019-08-09)

Bug Fixes

  • fix missing check in node-env-condition (17ecb94)

0.14.0 (2019-08-09)

Features

  • support process.env.NODE_ENV (75a902c)

0.13.1 (2019-08-05)

0.13.0 (2019-08-05)

Features

  • remove babel transpiling, back to plain commonjs (f62c8aa)

BREAKING CHANGES

  • ensure-parser-set API is changed.

0.12.7 (2019-08-04)

Bug Fixes

  • fix missing ext:css plugin for less/sass/scss/styl deps (3edd9da)

0.12.6 (2019-08-04)

Bug Fixes

  • fix missing css injection for less/scss/sass/styl files (420e0aa)

Features

  • support multiple aliases (6cc5f6b)

0.12.5 (2019-07-30)

0.12.4 (2019-07-25)

0.12.3 (2019-07-16)

0.12.2 (2019-07-14)

0.12.1 (2019-07-13)

0.12.0 (2019-06-26)

Features

  • use the new define.alias func (a86c32c)

0.11.7 (2019-06-25)

Bug Fixes

  • fix missing main alias for npm package name ended with ".js" (fa5ffb2)

0.11.6 (2019-06-25)

Bug Fixes

  • explicitly fullfill json module to avoid json module dep issue in npm package (f45809a)

0.11.5 (2019-06-04)

Bug Fixes

  • add dynamic import to tracing deps if possible (1e6d148)

0.11.4 (2019-06-04)

Bug Fixes

  • don't stop transform when incoming sourceMap is broken (f129439)

0.11.3 (2019-05-16)

Bug Fixes

  • don't stub text module with identity source map if there is existing map (3afd5c0)

0.11.2 (2019-03-19)

Bug Fixes

  • better sources path support for npm package with source map (825df14)
  • use a non-empty sourcemap to please applySourceMap merge (6c64dbf)

0.11.1 (2019-03-19)

0.11.0 (2019-03-19)

Features

  • proper source map rewrite. refactor trace pipeline (2ddf24e), closes #6

0.10.0 (2019-03-08)

0.9.2 (2019-03-08)

Bug Fixes

  • improve compatibility with legacy libs that depends on jquery on momentjs (323518d)
  • skip deps cleanup (remove .js) for UMD file (c574e29), closes #8
  • throw error on broken directory package.json (b1d859f)

Features

  • support duplicated module name in both user and package spaces (6309efe), closes #5

0.9.1 (2019-02-10)

Bug Fixes

  • fix a regression of missing css injection on local css (67e8532)

0.9.0 (2019-02-09)

Bug Fixes

  • upgrade dumber-module-loader, use requirejs compatible module.uri (7fa38f6)

Features

  • show real package version for hard coded package main (37f3bd7)

0.8.18 (2019-01-18)

Bug Fixes

0.8.17 (2019-01-18)

0.8.16 (2019-01-18)

Bug Fixes

  • better cache key with file path (2f1a554)
  • sync mode for fallback resolve (35eaffe)

0.8.15 (2019-01-18)

0.8.14 (2019-01-18)

0.8.13 (2019-01-17)

Bug Fixes

  • fix compatibility with nodejs v8 where URL is not available as global var (2578785)

Features

  • improve efficiency by skipping unchanged files in watch mode (53caf61)

0.8.12 (2019-01-17)

0.8.11 (2019-01-16)

Bug Fixes

  • fix sourcesContent format (d23a56e)

0.8.10 (2019-01-16)

Bug Fixes

0.8.9 (2019-01-16)

Features

  • inline sourcesContent for all npm package sourceMap (f30e695)

0.8.8 (2019-01-15)

Bug Fixes

  • normalise file path for windows (fff914d)

Features

  • support sourceMap from npm package (956a946)

0.8.7 (2019-01-13)

Features

  • support mapping and tracing plugin module (bb32149)

0.8.6 (2019-01-06)

0.8.5 (2019-01-02)

Bug Fixes

  • only skip cjs wrap if amd define is in use (90f0749)

0.8.4 (2018-12-30)

Features

  • support lerna hoisting (b355daf), closes #4

0.8.3 (2018-12-24)

0.8.2 (2018-12-23)

Features

BREAKING CHANGES

  • option injectCss is now turned on by default

0.8.1 (2018-12-23)

Bug Fixes

  • fix accidentally upgraded readable-stream (f11b53d)

0.8.0 (2018-12-23)

Features

  • move appends to dedicated section to ensure appends after config (0528bb9)

BREAKING CHANGES

  • this requires gulp-dumber update

0.7.25 (2018-12-23)

Bug Fixes

  • simply put onRequire module content onto package space (df28359)

Features

  • support requirejs paths config (f01f263)

Reverts

  • feat: be smart on onRequire stub's module space (c403add)

0.7.24 (2018-12-19)

0.7.23 (2018-12-18)

Features

  • coloured console log in nodejs env (e76d173)

0.7.22 (2018-12-18)

0.7.21 (2018-12-18)

Features

  • be smart on onRequire stub's module space (3851939)

0.7.20 (2018-12-18)

Bug Fixes

  • fix onRequire file path (b0dc772)

0.7.19 (2018-12-17)

Bug Fixes

  • only recover missing main, not broken package.json (6d08545)

0.7.18 (2018-12-17)

Bug Fixes

  • arrayBuffer() stub should return a promise (4f03a1e)

0.7.17 (2018-12-17)

Bug Fixes

  • fix missing dep on base64-arraybuffer (5a07d94)

0.7.16 (2018-12-17)

Bug Fixes

  • fix missing } in wasm wrapper (cab8453)

0.7.15 (2018-12-17)

Bug Fixes

  • fix unknown encoding null for buffer.toString() (fc61bcc)

0.7.14 (2018-12-17)

Features

  • basic support of bundling wasm (3efd5dd)

0.7.13 (2018-12-17)

Features

  • option to inject css onto html head (ca45a3c), closes #1

0.7.12 (2018-12-15)

Bug Fixes

  • change default baseUrl from "dist" to "/dist" to work better in some SPA router (71f0099)

0.7.11 (2018-12-15)

Bug Fixes

  • get missed location and main (dc7c550)

0.7.10 (2018-12-15)

Features

  • support es dynamic import() (a9c0caf)

0.7.9 (2018-12-13)

Bug Fixes

  • need alias for direct browser replacement too (62d0224)

0.7.8 (2018-12-13)

Bug Fixes

  • hopefully fixed stream stub (e92bc04)

0.7.7 (2018-12-13)

Bug Fixes

  • fix browser replacement on direct resource require (73d26d8)
  • fix browser replacement on main (a0b4934)

0.7.6 (2018-12-13)

Bug Fixes

  • use new readable-stream instead of old stream-browserify to stub nodejs core module stream (f579263)

0.7.5 (2018-12-13)

Bug Fixes

  • fix false error on stub module (efe776f)

0.7.4 (2018-12-13)

Bug Fixes

  • fix parser on special globals like defineSetter (36cb1d4)

Features

  • support nodejs globals: global, process, Buffer (a1975c4)

0.7.3 (2018-12-11)

Features

0.7.2 (2018-12-11)

Features

  • support option skipModuleLoader (1fc207c)

0.7.1 (2018-12-11)

0.7.0 (2018-12-10)

Features

  • ensure ending in semicolon for prepends/appends (e00be42)

0.6.0 (2018-12-10)

Features

  • ignore falsy values in prepends/appends/deps, so it is easier for user to do conditional config (096fabb)

0.5.1 (2018-12-09)

0.5.0 (2018-12-09)

Features

  • tolerant missing main file like npm package simple-line-icons (1fe8744)

0.4.10 (2018-12-07)

Bug Fixes

  • remove sourceMappingUrl from prepends and appends (803954e)

0.4.9 (2018-12-07)

0.4.8 (2018-12-07)

0.4.7 (2018-12-07)

0.4.6 (2018-12-06)

Bug Fixes

  • take depsFinder in consideration when doing cache (5d4be04)

Features

  • conventional alias from npm package module foo/dist/lib/bar (or foo/dist/favor/lib/bar) to foo/bar (fcb11c9)

0.4.5 (2018-12-06)

Bug Fixes

  • no warning for empty shim deps (23c9ae3)

0.4.4 (2018-12-06)

Bug Fixes

  • cleanup dist folder before build (1bd842a)

0.4.3 (2018-12-05)

0.4.2 (2018-12-05)

Bug Fixes

  • remove inner defined modules from deps (e772a62)

0.4.1 (2018-12-04)

0.4.0 (2018-12-04)

Features

  • follow Fred's advice, replace esprima with cherow (eea54a2)

0.3.0 (2018-12-04)

Bug Fixes

  • fix failures on windows (ee90d8f)

0.2.1 (2018-12-03)

Bug Fixes

0.2.0 (2018-12-02)

Bug Fixes

  • support stub-module when running dumber in browser (9aca164)

Features

0.1.5 (2018-11-30)

0.1.4 (2018-11-30)

Features

  • support optional onRequire hook (72cd8ff)

0.1.3 (2018-11-29)

Bug Fixes

  • cleanup switch module space call (637d5a2)

0.1.2 (2018-11-29)

Bug Fixes

  • remove cjs contants from deps (90eb551)

0.1.1 (2018-11-29)

Bug Fixes

0.1.0 (2018-11-29)

Bug Fixes

  • fix json alias (130d076)
  • use nodejs require.resolve to ensure module resolving compatibility (986b788)
  • package-locator: rejects jsDelivr redirection on dir read (a867d4d)
  • trace: mimic requirejs runtime behaviour, if no module defined, add an empty shim (8d9d4dd)

Features

  • add nodejsload to reader, remove mock-fs (722ad71)
  • alias creates aliases. (844e02e)
  • allow passing in globalIndentifiers result for efficiency. (89bc0b9)
  • bundler (be73a3f)
  • default npm package locator. (f58584b)
  • defines transform returns js deps. (b017c8f)
  • implement r.js commonJs.convert. (73c2571)
  • implement r.js parse.usesAmdOrRequirejs, but not declaresDefine and defineAmd. (23132d1)
  • implement r.js parse.usesCommonJs with ast-matcher. (a032dda)
  • implement r.js transform.toTransport in ast-matcher. (76ea9c2)
  • jsDelivr-npm-package-locator. (d6c2e8f)
  • json transform into amd. (5e3630b)
  • package reader (b2ba08b)
  • parser.usesEsm to check usage of ES module format (33535b2)
  • resolve-module-id. (353af30)
  • shim support. (9ff04cf)
  • support "json!a.json" for directly using requirejs (ff24a65)
  • support package.json browser field (7cf93b7)
  • text transform into amd. (9452dec)
  • trace unit. (252bdaf)
  • understand amdefine. (ecfd655)
  • use escope analysis to do true global variable check. (2835381)