mirror of
https://github.com/unraid/api.git
synced 2025-12-31 05:29:48 -06:00
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [diff](https://redirect.github.com/kpdecker/jsdiff) | [`^7.0.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/diff/7.0.0/8.0.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kpdecker/jsdiff (diff)</summary> ### [`v8.0.0`](https://redirect.github.com/kpdecker/jsdiff/blob/HEAD/release-notes.md#800) [Compare Source](https://redirect.github.com/kpdecker/jsdiff/compare/7.0.0...v8.0.0) - [#​580](https://redirect.github.com/kpdecker/jsdiff/pull/580) **Multiple tweaks to `diffSentences`**: - tokenization no longer takes quadratic time on pathological inputs (reported as a ReDOS vulnerability by Snyk); is now linear instead - the final sentence in the string is now handled the same by the tokenizer regardless of whether it has a trailing punctuation mark or not. (Previously, "foo. bar." tokenized to `["foo.", " ", "bar."]` but "foo. bar" tokenized to `["foo.", " bar"]` - i.e. whether the space between sentences was treated as a separate token depended upon whether the final sentence had trailing punctuation or not. This was arbitrary and surprising; it is no longer the case.) - in a string that starts with a sentence end, like "! hello.", the "!" is now treated as a separate sentence - the README now correctly documents the tokenization behaviour (it was wrong before) - [#​581](https://redirect.github.com/kpdecker/jsdiff/pull/581) - **fixed some regex operations used for tokenization in `diffWords` taking O(n^2) time** in pathological cases - [#​595](https://redirect.github.com/kpdecker/jsdiff/pull/595) - **fixed a crash in patch creation functions when handling a single hunk consisting of a very large number (e.g. >130k) of lines**. (This was caused by spreading indefinitely-large arrays to `.push()` using `.apply` or the spread operator and hitting the JS-implementation-specific limit on the maximum number of arguments to a function, as shown at https://stackoverflow.com/a/56809779/1709587; thus the exact threshold to hit the error will depend on the environment in which you were running JsDiff.) - [#​596](https://redirect.github.com/kpdecker/jsdiff/pull/596) - **removed the `merge` function**. Previously JsDiff included an undocumented function called `merge` that was meant to, in some sense, merge patches. It had at least a couple of serious bugs that could lead to it returning unambiguously wrong results, and it was difficult to simply "fix" because it was [unclear precisely what it was meant to do](https://redirect.github.com/kpdecker/jsdiff/issues/181#issuecomment-2198319542). For now, the fix is to remove it entirely. - [#​591](https://redirect.github.com/kpdecker/jsdiff/pull/591) - JsDiff's source code has been rewritten in TypeScript. This change entails the following changes for end users: - **the `diff` package on npm now includes its own TypeScript type definitions**. Users who previously used the `@types/diff` npm package from DefinitelyTyped should remove that dependency when upgrading JsDiff to v8. Note that the transition from the DefinitelyTyped types to JsDiff's own type definitions includes multiple fixes and also removes many exported types previously used for `options` arguments to diffing and patch-generation functions. (There are now different exported options types for abortable calls - ones with a `timeout` or `maxEditLength` that may give a result of `undefined` - and non-abortable calls.) See the TypeScript section of the README for some usage tips. - **The `Diff` object is now a class**. Custom extensions of `Diff`, as described in the "Defining custom diffing behaviors" section of the README, can therefore now be done by writing a `class CustomDiff extends Diff` and overriding methods, instead of the old way based on prototype inheritance. (I *think* code that did things the old way should still work, though!) - **`diff/lib/index.es6.js` and `diff/lib/index.mjs` no longer exist, and the ESM version of the library is no longer bundled into a single file.** - **The `ignoreWhitespace` option for `diffWords` is no longer included in the type declarations**. The effect of passing `ignoreWhitespace: true` has always been to make `diffWords` just call `diffWordsWithSpace` instead, which was confusing, because that behaviour doesn't seem properly described as "ignoring" whitespace at all. The property remains available to non-TypeScript applications for the sake of backwards compatability, but TypeScript applications will now see a type error if they try to pass `ignoreWhitespace: true` to `diffWords` and should change their code to call `diffWordsWithSpace` instead. - JsDiff no longer purports to support ES3 environments. (I'm pretty sure it never truly did, despite claiming to in its README, since even the 1.0.0 release used `Array.map` which was added in ES5.) - [#​601](https://redirect.github.com/kpdecker/jsdiff/pull/601) - **`diffJson`'s `stringifyReplacer` option behaves more like `JSON.stringify`'s `replacer` argument now.** In particular: - Each key/value pair now gets passed through the replacer once instead of twice - The `key` passed to the replacer when the top-level object is passed in as `value` is now `""` (previously, was `undefined`), and the `key` passed with an array element is the array index as a string, like `"0"` or `"1"` (previously was whatever the key for the entire array was). Both the new behaviours match that of `JSON.stringify`. - [#​602](https://redirect.github.com/kpdecker/jsdiff/pull/602) - **diffing functions now consistently return `undefined` when called in async mode** (i.e. with a callback). Previously, there was an odd quirk where they would return `true` if the strings being diffed were equal and `undefined` otherwise. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/unraid/api). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC43LjEiLCJ1cGRhdGVkSW5WZXIiOiI0MC43LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
61 lines
1.3 KiB
JSON
61 lines
1.3 KiB
JSON
{
|
|
"name": "unraid-monorepo",
|
|
"private": true,
|
|
"version": "4.8.0",
|
|
"scripts": {
|
|
"build": "pnpm -r build",
|
|
"build:watch": "pnpm -r build:watch",
|
|
"dev": "pnpm -r dev",
|
|
"unraid:deploy": "pnpm -r unraid:deploy",
|
|
"test": "pnpm -r test",
|
|
"lint": "pnpm -r lint",
|
|
"lint:fix": "pnpm -r lint:fix",
|
|
"type-check": "pnpm -r type-check",
|
|
"check": "manypkg check",
|
|
"sync-webgui-repo": "node web/scripts/sync-webgui-repo.js",
|
|
"postinstall": "simple-git-hooks"
|
|
},
|
|
"pnpm": {
|
|
"peerDependencyRules": {
|
|
"allowAny": [
|
|
"vue"
|
|
]
|
|
},
|
|
"onlyBuiltDependencies": [
|
|
"@apollo/protobufjs",
|
|
"@nestjs/core",
|
|
"@parcel/watcher",
|
|
"@swc/core",
|
|
"@unraid/libvirt",
|
|
"core-js",
|
|
"cpu-features",
|
|
"es5-ext",
|
|
"esbuild",
|
|
"nestjs-pino",
|
|
"protobufjs",
|
|
"simple-git-hooks",
|
|
"ssh2",
|
|
"vue-demi"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@manypkg/cli": "^0.24.0",
|
|
"chalk": "^5.0.0",
|
|
"diff": "^8.0.0",
|
|
"ignore": "^7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"lint-staged": "^16.0.0",
|
|
"simple-git-hooks": "^2.9.0"
|
|
},
|
|
"simple-git-hooks": {
|
|
"pre-commit": "pnpm lint-staged"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"pnpm lint:fix"
|
|
]
|
|
},
|
|
"packageManager": "pnpm@10.11.0"
|
|
}
|