Drop path having file extensions from exports #1032
By this change, we drop all extension from legacy exported paths (cjs/**, esm/**, and lib/**).
If you use a Node.js which supports conditional exports, this change might affect. Basically, if you import this package without a file extension, this will not affect anything.
How to migration
Remove file extension from import path. e.g. option-t/lib/Nullable/map.js -> option-t/lib/Nullable/map.
By this change, we would be able to use some new language features for the future change. Then they might make our d.ts incompatible with typescript v4.2 or earlier.
Until this release, all paths under lib/ without file extension (e.g. option-t/lib/Nullable/map) always points cjs file.
By this change, your toolchain switch to load mjs or cjs properly if your toolchain support conditional exports. This may improve a bundled code size by some tree shaking techniques which your toolchain apply only for ES Module.
This is an empty release to announce that option-t/lib will be remove in near ,future major releases.
option-t/lib/*** has been deprecated in v22.1
but we think some people still continue to use it by some reasons.
Finally, webpack v5 and rollup supports exports field in their latest stable version. So we think we remove this feature in near future major releases.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot will not automatically merge this PR because it includes a major update to a production dependency.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps option-t from 20.3.1 to 28.1.1.
Release notes
Sourced from option-t's releases.
... (truncated)
Changelog
Sourced from option-t's changelog.
... (truncated)
Commits
7862586
28.1.1ea4e73d
Merge pull request #1069 from tetsuharuohzeki/rm-glob03eab06
Implement glob like module by myself03bdee5
Move the part to handle if the file path is dir6f716ac
Merge pull request #1068 from tetsuharuohzeki/replace-cpxd09b30f
Replace cpx with the simple node.js script4ae1599
Merge pull request #1063 from karen-irc/dependabot/npm_and_yarn/typescript-es...e068554
Bump@typescript-eslint/eslint-plugin
from 4.28.0 to 4.28.19215c9f
Merge pull request #1066 from karen-irc/dependabot/npm_and_yarn/typescript-es...eba415b
Merge pull request #1067 from karen-irc/dependabot/npm_and_yarn/eslint-7.30.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot will not automatically merge this PR because it includes a major update to a production dependency.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in the `.dependabot/config.yml` file in this repo: - Update frequency - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)