Remove { ok, err } from 'option-t/**/PlainResult/index'; #1002
As we announced in v25.6.0, we removed these aliases. Please use toOptionFromOk() or toOptionFromErr() instead.
This breaking change would affect these patterns
import { ok, err } from option-t/cjs/PlainResult/index';
import { ok, err } from option-t/cjs/PlainResult';
import { ok, err } from option-t/esm/PlainResult/index';
import { ok, err } from option-t/esm/PlainResult';
import { ok, err } from option-t/lib/PlainResult/index';
import { ok, err } from option-t/lib/PlainResult';
import { ok, err } from option-t/PlainResult';
v26.0.0
Breaking Change
unsafeDrop() release the field and freeze the passed value #1000
From this release, unsafeDrop() will do 2 things as a its response.
Fill input.val or input.err with undefined to release an object reference.
Do Object.freeze(input).
By this change, the code will throw an error if input object is modified or you touch the value on their cleared property after passing input to unsafeDrop().
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 27.0.0.
Release notes
Sourced from option-t's releases.
... (truncated)
Changelog
Sourced from option-t's changelog.
... (truncated)
Commits
8087f77
27.0.07269600
Merge pull request #1002 from tetsuharuohzeki/remove-deprecated-alias70f4399
Remove { ok, err } from 'option-t/**/PlainResult/index';ae18b67
26.0.03c7156f
Merge pull request #1001 from tetsuharuohzeki/rm-shared-error-message205cb2f
Remove shared/ErrorMessage8d4e9ed
Merge pull request #1000 from tetsuharuohzeki/drop-actually6a7a256
unsafeDrop() should release the field and freeze itself.32dec95
25.7.0438509b
Merge pull request #999 from tetsuharuohzeki/cleanupDependabot 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)