v1.1.1
Patches
- Handle subpath entry names that start with a dot (#20):
Thank you @ErikMikkelson - Allow subpath patterns to include
"*"
anywhere (#16, #22): 7e41d63 - Support
null
resolved values: (#16): d3bda82 - Allow multiple
"*"
within the resolved value (#9):
All these fixes allow the following package.json
example to be resolved correctly (according to the latest "exports"
resolution specification):
{
"name": "foobar",
"exports": {
// subpath w/ leading "."
"./.ini": "./.ini",
// nullable (private) values
"./features/internal/*": null,
"./features/*": "./src/features/*.js",
"./features/private/*": null,
// allow "*" anywhere in pattern
"./views/*": "./src/views/*.js",
"./views/*.jsx": "./src/views/*.jsx",
"./views/*/template": "./src/views/*.html",
// multiple wildcards in value
"./es*": "./esm/*/GAP/*.js"
// "foobar/es2015" => "./esm/2015/GAP/2015.js"
// "foobar/es2015/a/b" => "./esm/2015/a/b/GAP/2015/a/b.js"
}
}
Types
- Allow
readonly
andconst
arrays in options (#15): 587b0ba
Thank you @SimenB - Add
types
condition toexports
field (#18): dc7bae3
Thank you @merceyz
Chores
- Add additional tests for subpath pattern depth (#23): 0bae61e
Thank you @huntie - Add Node
16.x
and18x
to CI testing matrix: 4908584
Full Changelog: v1.1.0...v1.1.1