Bump @total-typescript/ts-reset from 0.4.2 to 0.5.1
Bumps @total-typescript/ts-reset from 0.4.2 to 0.5.1.
Changelog
Sourced from @total-typescript/ts-reset's changelog.
0.5.1
Patch Changes
- Added homepage for npm purposes.
0.5.0
Minor Changes
49b8603: Added a rule,
/session, to make sessionStorage and localStorage safer.// Is now typed as `unknown`, not `any`! localStorage.a;// Is now typed as
unknown, notany! sessionStorage.abc;49b8603: Added a
/domentrypoint to allow users to import DOM-only rules.0.4.1
Patch Changes
- No changes, just pushing to fix the previous slightly borked release.
0.4.0
Minor Changes
ce9db42: Added support for widening in
Array.lastIndexOf,Array.indexOf,ReadonlyArray.lastIndexOfandReadonlyArray.indexOf.107dfc2: Changed the array.includes on readonly arrays to NOT be a type predicate. Before this change, this perfectly valid code would not behave correctly.
type Code = 0 | 1 | 2; type SpecificCode = 0 | 1;const currentCode: Code = 0;
// Create an empty list of subset type const specificCodeList: ReadonlyArray<SpecificCode> = [];
// This will be false, since 0 is not in [] if (specificCodeList.includes(currentCode)) { currentCode; // -> SpecificCode } else { // This branch will be entered, and ts will think z is 2, when it is actually 0 currentCode; // -> 2
... (truncated)
Commits
- See full diff in compare view
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 commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)