Details on breaking changes:
- Adds support for genuine ESM in Node (
type
andexports
inpackage.json
and
changedmain
path). - Changes browser paths to include "-browser" in the file name
- Adds
browser
topackage.json
to point to browser build for browser-specific bundling.
Rollup users wishing the browser bundle must ensure@rollup/plugin-node-resolve
hasmainFields
to includebrowser
as the first item in the array; Webpack users may
need to setresolve
withaliasFields: ['browser']
and/or
mainFields: ['browser', 'module', 'main']
, ensuring thatbrowser
is in the front of the list - Has
module
point to the Node-specific build (with a new path)
Changes
- Breaking change: Add
type: 'commonjs'
andexports: {import, require}
(withnode-import-test
npm script to demo) - Breaking change: Change paths for browser (now is
dist/index-browser-umd.js
ordist/index-browser-es.js
)
(for Node,main
andmodule
point to new Node-specific dist) - Breaking enhancement: Add
browser
for browser bundling;
allowing static analysis environments, doesn't have however
conditional code to requirevm
); for ESM browser bundling,
now must checkbrowser
in Rollup Node resolver plugin;
see README - Build: Update per latest devDeps.
- Docs: Add Regex (
.match
) example on value (@jeffreypriebe) - Docs: Add Regex (
.match
) example on property - Docs: Fix XPath example (@humbertoc-silva)
- Docs: Link to XPath 2.0 tester
- Docs: Update badges per latest updates
- Linting: quote props
- Linting: As per latest ash-nazg
- Testing: Fix browser tests
- Testing: Add test case for setting values in callbacks (issue #126)
- Testing: Add more at-sign tests
- Testing: Bump timeout
- Travis: Check Node 14
- Travis: add default
dist
field to avoid extra config reporting - npm: Update from deprecated
rollup-plugin-babel
to@rollup/plugin-babel
(and makebabelHelpers
explicit) - npm: Reorder scripts by test execution order
- npm: Update devDeps