chore(deps): update template major updates (major)#34
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
chore(deps): update template major updates (major)#34renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
49b2011 to
19dab98
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.5.1→8.0.112.1.1→13.0.063.0.0→64.0.01.14.3→2.0.15.9.3→6.0.2Release Notes
eslint/markdown (@eslint/markdown)
v8.0.1Compare Source
Bug Fixes
v8.0.0Compare Source
⚠ BREAKING CHANGES
/typesexport (#564)Features
no-multiple-h1(#624) (e57e398)require-alt-textandno-html(#604) (cd264d0)Bug Fixes
no-html(a2ccff8)no-html(#592) (a2ccff8)no-reversed-media-syntax(#597) (8538c10)Definitionnode inno-missing-link-fragments(#603) (9b58e36)no-missing-link-fragments(#583) (bd9dfa3)/typesexport (#564) (28eecf6)@eslint/plugin-kitand update@eslint/core(#607) (f5d4ce0)lydell/eslint-plugin-simple-import-sort (eslint-plugin-simple-import-sort)
v13.0.0Compare Source
This release puts imports from the same source, but with different import styles, in a deterministic order.
That is especially useful if you need to have both a namespace import and want to import a few things separately (since that cannot be combined into a single import statement). With the above rule, the imports end up in a deterministic order.
It’s only a breaking change if you import from the same source multiple times in the same file (using different styles), and only in the form that you need to autofix your files.
Thanks to Kannan Goundan (@cakoose)!
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
v64.0.0Compare Source
New rules
consistent-template-literal-escape(#2866)55444b4no-useless-iterator-to-array(#2872)641b88cprefer-simple-condition-first(#2902)b0279ddswitch-case-break-position(#2910)8d5d487Improvements
6b41299text-encoding-identifier-case: Support template literals (#2905)9448c8cprefer-math-min-max: Ignore Date objects (#2903)cd53d9eprevent-abbreviations: Handle exported TS interfaces and enums (#2898)6dc01d2no-array-callback-reference: Skip TypeScript type predicate callbacks (#2897)02364c8prefer-spread: Skip autofix when it would drop comments (#2896)6ff1467no-useless-undefined: Flagreturn undefinedfor explicit undefined return types (#2876)41fc9c2no-unnecessary-polyfills: Improve performance (#2874)c88bf29expiring-todo-comments: AddignoreDatesoption (#2892)95a288bprevent-abbreviations: Recognize jQuery42f5364prefer-object-from-entries: Avoid auto-fixing generic reduce (#2878)bea9b20Fixes
expiring-todo-comments: Fix partial version comparison (#2895)51390e9consistent-destructuring: Fix false positive for nested rest destructuring (#2894)1cddfb5consistent-destructuring: Fix false positive after reassignment (#2893)c7f57d0consistent-function-scoping: Fix TypeScript false positives for lexicalthis(#2885)a383657custom-error-definition: Fix class field autofix (#2887)1359726explicit-length-check: Fix||fallback false positives (#2889)84246ecexplicit-length-check: Avoid unsafe autofix in negated comparisons (#2883)73b043bimport-style: Fix false positive for type-only import (#2891)aea9954no-unused-properties: Fix for JSX member access (#2890)0ff698bbetter-regex: Fix empty-pattern autofix (#2881)c201987prefer-global-this: Fix for window-specificinchecks (#2879)6bf7537prefer-native-coercion-functions: Fix false positive for TS type predicates (#2888)4c4b565prefer-set-has: Fix string false positives (#2882)c230c22prefer-top-level-await: Fix false positive withPromise.all(#2884)67faa7asindresorhus/ky (ky)
v2.0.1Compare Source
fetchimplementations (#858)29719912df9b7ev2.0.0Compare Source
Breaking
f1da0fcecdd45e{request, options, retryCount, ...}state object instead of separate arguments.prefixUrltoprefix, and allow leading slashes in input (#606)1f2ad7fbeforeErrorhook receive all errors, not justHTTPError(#829)101c74b.json()throw on empty bodies and204responses instead of returning an empty string (#854)1b8e1ffsearchParamswith input URL instead of replacing (#840)29e78fe433febd90c6d00New
totalTimeoutoption for an overall timeout across all retries (#848)c20d7c7baseUrloption for standard URL resolution (#606)1f2ad7fbaseUrluses standard URL resolution:/usersmeans origin-root,usersmeans relative to the base path.prefixdoes simple string joining first, so/usersandusersboth append to the prefix the same way. Use it only when you want that behavior.dataproperty toHTTPErrorwith pre-parsed response body (#823)1341f5cinithook (#841)87c6740NetworkErrorclass and tighten retry logic (#842)eaf0b80.json()(#830)94741a9replaceOptionhelper for.extend()(#846)bb8412erequestandoptionstobeforeErrorhook state (#835)01e0b85parseJsonoption (#849)3713ce8HTTPErrorfor opaque responses fromno-corsrequests (#847)1d15eb6onUploadProgresswhen request streams are unsupported (#845)1e38ff4Fixes
beforeRequesthooks being skipped when aRequestis returned (#832)aec65dbbeforeErrorhooks (#833)a541fc0Migration guide
Hook signatures
All hooks now receive a single state object instead of separate arguments.
hooks: { - beforeRequest: [(request, options) => { + beforeRequest: [({request, options}) => { request.headers.set('X-Custom', 'value'); }], - afterResponse: [(request, options, response) => { + afterResponse: [({request, options, response}) => { log(response.status); }], - beforeRetry: [({request, options, error, retryCount}) => { + beforeRetry: [({request, options, error, retryCount}) => { // Same as before - beforeRetry already used an object }], - beforeError: [(error) => { + beforeError: [({error}) => { return error; }], }prefixUrlrenamed toprefixLeading slashes in input are now allowed with
prefix. There's also a newbaseUrloption for standard URL resolution, which you may prefer overprefix.beforeErrorhook receives all errorsPreviously only received
HTTPError. Now receives all error types. Use type guards:.json()on empty responses.json()now throws a parse error on empty bodies and204responses instead of returning an empty string. This aligns with nativeJSON.parsebehavior and surfaces the real issue; your code expected JSON but the server sent none.Check the status before calling
.json()if you expect empty responses:Ky-specific options stripped from hooks
Ky-specific properties (
hooks,json,parseJson,stringifyJson,searchParams,timeout,throwHttpErrors,fetch) are no longer available on theoptionsobject passed to hooks. If you need access to these values, store them in a variable outside the hook or use thecontextoption to pass data between hooks.searchParamsmergingsearchParamsnow merges with existing query parameters in the input URL instead of replacing them.HTTPErrorresponse bodyerror.response.json()and other body methods no longer work since the body is now automatically consumed. Useerror.datainstead, which has the pre-parsed response body immediately available.This fixes resource leaks when catching
HTTPErrorwithout consuming the body (#633) and makes error details synchronously available (#642). We considered cloning the response to keep both paths working, but that doubles memory usage for error bodies and adds edge cases around locked/large streams for little benefit.error.responseis still available for headers and status.Upgrading from
2.0.0-0.json()on empty responsesThe behavior changed again from the prerelease.
.json()now throws instead of returningundefinedfor empty bodies and204responses. The return type is back toPromise<T>(no more| undefined).Thanks to @sholladay for helping with this update.
microsoft/TypeScript (typescript)
v6.0.2Compare Source
Configuration
📅 Schedule: (in timezone Asia/Shanghai)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.