chore(deps): update dependency js-yaml to v5 - #38262
Conversation
587772f to
7fdf545
Compare
7fdf545 to
9850861
Compare
js-yaml v5 bundles its own TypeScript types, making the separate @types/js-yaml package unnecessary. Assisted-by: Claude:Opus 4.8
|
Update to v5 done, types package became obsolete, removed. Also did a few yaml parser tests, all working. |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
* 'main' of https://github.com/go-gitea/gitea: (50 commits) [skip ci] Updated translations via Crowdin ci: regenerate codemirror languages on renovate npm updates (go-gitea#38267) build: fix snapcraft release (go-gitea#38260) chore(deps): update dependency js-yaml to v5 (go-gitea#38262) chore(deps): update actions/cache action to v6 (go-gitea#38261) fix(deps): update module gitlab.com/gitlab-org/api/client-go/v2 to v2.42.0 (go-gitea#38266) fix(deps): update go dependencies (go-gitea#38194) chore: various UI problems (go-gitea#38263) fix: update npm dependencies, fix misc issues (go-gitea#38257) chore(deps): update action dependencies (go-gitea#38258) fix(packages): validate debian distribution and component names (go-gitea#38116) chore(deps): update python dependencies (go-gitea#38256) fix: flex divided list item shrink (go-gitea#38255) [skip ci] Updated translations via Crowdin fix(actions): authenticate snapcraft before nightly remote build (go-gitea#38252) revert(sign): restore gpg (go-gitea#38251) fix(api): respect since/until when counting commits for X-Total-Count (go-gitea#38204) build(sign): move to sigstore (go-gitea#38250) fix: codemirror regressions (go-gitea#38248) fix(api): support HEAD requests on all API GET endpoints (go-gitea#38245) ...
* main: (50 commits) [skip ci] Updated translations via Crowdin ci: regenerate codemirror languages on renovate npm updates (go-gitea#38267) build: fix snapcraft release (go-gitea#38260) chore(deps): update dependency js-yaml to v5 (go-gitea#38262) chore(deps): update actions/cache action to v6 (go-gitea#38261) fix(deps): update module gitlab.com/gitlab-org/api/client-go/v2 to v2.42.0 (go-gitea#38266) fix(deps): update go dependencies (go-gitea#38194) chore: various UI problems (go-gitea#38263) fix: update npm dependencies, fix misc issues (go-gitea#38257) chore(deps): update action dependencies (go-gitea#38258) fix(packages): validate debian distribution and component names (go-gitea#38116) chore(deps): update python dependencies (go-gitea#38256) fix: flex divided list item shrink (go-gitea#38255) [skip ci] Updated translations via Crowdin fix(actions): authenticate snapcraft before nightly remote build (go-gitea#38252) revert(sign): restore gpg (go-gitea#38251) fix(api): respect since/until when counting commits for X-Total-Count (go-gitea#38204) build(sign): move to sigstore (go-gitea#38250) fix: codemirror regressions (go-gitea#38248) fix(api): support HEAD requests on all API GET endpoints (go-gitea#38245) ...
|
@go-gitea/maintainers why it makes sense to keep flooding the garbage content into commit message? |
|
Sometimes I edit the message, sometimes I don't. I don't think anyone else really cares about these commit messages, GitHub auto-suggests them. |
At least, @lunny said he cares. Although he is also the one who keeps flooding garbage. Since the commit message is there, it just misleads the people who are blaming the code history. The commit message SHOULD match the code, or just leave the commit message empty and write everything into code comment. |
And if I remember correctly, you do care about "size", you ever tried everything to minimize the frontend assets, optimize code, etc. Now, the garbage message is in the commit message forever, it only wastes your disk storage with no real value, so why you can bare the garbage commit messages? |
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [js-yaml](https://redirect.github.com/nodeca/js-yaml) | [`4.2.0` → `5.1.0`](https://renovatebot.com/diffs/npm/js-yaml/4.2.0/5.1.0) |  |  | --- ### Release Notes <details> <summary>nodeca/js-yaml (js-yaml)</summary> ### [`v5.1.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#510---2026-06-23) [Compare Source](https://redirect.github.com/nodeca/js-yaml/compare/5.0.0...5.1.0) ##### Added - Collection tags can finalize an incrementally populated carrier into a different result value. ##### Changed - \[breaking] `quoteStyle` now selects the preferred quote style; use the restored `forceQuotes` option to force quoting non-key strings. ### [`v5.0.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#500---2026-06-20) [Compare Source](https://redirect.github.com/nodeca/js-yaml/compare/4.3.0...5.0.0) ##### Added - Added named exports for schemas, tags, parser events and AST utilities. - Reworked `JSON_SCHEMA` and `CORE_SCHEMA` with spec-compliant scalar resolution rules, and added `YAML11_SCHEMA`. - Added `realMapTag` for lossless mappings with non-string and complex keys. Object-based mappings now reject complex keys instead of stringifying them. - Added `dump()` `transform` option for changing the generated AST before rendering. - Added `dump()` options `seqInlineFirst`, `flowBracketPadding`, `flowSkipCommaSpace`, `flowSkipColonSpace`, `quoteFlowKeys`, `quoteStyle` and `tagBeforeAnchor`. - Added formal data layers (events and AST) for modular data pipelines. - Added low-level parser (to events), presenter and visitor APIs. - Added the [YAML Test Suite](https://redirect.github.com/yaml/yaml-test-suite) to the test set. ##### Changed - See the [migration guide](docs/migrate_v4_to_v5.md) for upgrade notes. - Rewritten in TypeScript and reorganized the public API around flat named exports. - Reduced the set of exported schemas: - YAML 1.2 schemas: `CORE_SCHEMA` (loader default), `JSON_SCHEMA`, `FAILSAFE_SCHEMA`. - `YAML11_SCHEMA`, a combination of all YAML 1.1 tags (YAML 1.1 does not specify a schema, only "types"). - `load`/`dump` default behaviour is now specified exactly via schemas: - `load` uses `CORE_SCHEMA`, without `!!merge` by default. - `dump` uses `YAML11_SCHEMA` + `CORE_SCHEMA` for the quoting check, to guarantee backward compatibility by default. - `!!set` is now loaded as a JavaScript `Set`. - Replaced the `Type` API with a tags API. Similar, but more precise and simpler. See examples for details. Tags can be defined via `defineScalarTag()`, `defineSequenceTag()` and `defineMappingTag()`, or as a spread + override of an existing tag. - Renamed `Schema.extend()` to `Schema.withTags()`. - Expanded YAML 1.2 conformance and improved handling of directives, document markers, block keys, multiline scalars, tag syntax and other things. - `load()` now throws on empty input instead of returning `undefined`. - Moved browser builds to the `js-yaml/browser` export. - Deprecated the `loadAll` signature with an iterator (still works, but is a candidate for removal). ##### Removed - Removed deprecated `safeLoad()`, `safeLoadAll()` and `safeDump()` exports. - Removed `DEFAULT_SCHEMA` and the nested `types` export. - Removed loader options `onWarning`, `legacy` and `listener`. - Removed dumper options `styles`, `replacer`, `noCompatMode`, `condenseFlow`, `quotingType` and `forceQuotes`. Renamed `noArrayIndent` to `seqNoIndent`. Formatting and representation are now configured through presenter options, schemas and tag definitions. See migration guide on how to replace. - Removed support for importing internal files from `lib/`. ### [`v4.3.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#430-3150---2026-06-27) [Compare Source](https://redirect.github.com/nodeca/js-yaml/compare/4.2.0...4.3.0) ##### Security - Backported `maxTotalMergeKeys` option. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Only on Monday (`* * * * 1`) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, 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 has been generated by [Mend Renovate](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDEuNSIsInVwZGF0ZWRJblZlciI6IjQzLjE0MS41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> --------- Co-authored-by: silverwind <me@silverwind.io>
This PR contains the following updates:
4.2.0→5.1.0Release Notes
nodeca/js-yaml (js-yaml)
v5.1.0Compare Source
Added
different result value.
Changed
quoteStylenow selects the preferred quote style; use therestored
forceQuotesoption to force quoting non-key strings.v5.0.0Compare Source
Added
JSON_SCHEMAandCORE_SCHEMAwith spec-compliant scalar resolutionrules, and added
YAML11_SCHEMA.realMapTagfor lossless mappings with non-string and complex keys.Object-based mappings now reject complex keys instead of stringifying them.
dump()transformoption for changing the generated AST beforerendering.
dump()optionsseqInlineFirst,flowBracketPadding,flowSkipCommaSpace,flowSkipColonSpace,quoteFlowKeys,quoteStyleandtagBeforeAnchor.test set.
Changed
exports.
CORE_SCHEMA(loader default),JSON_SCHEMA,FAILSAFE_SCHEMA.YAML11_SCHEMA, a combination of all YAML 1.1 tags (YAML 1.1 does notspecify a schema, only "types").
load/dumpdefault behaviour is now specified exactly via schemas:loadusesCORE_SCHEMA, without!!mergeby default.dumpusesYAML11_SCHEMA+CORE_SCHEMAfor the quoting check, toguarantee backward compatibility by default.
!!setis now loaded as a JavaScriptSet.TypeAPI with a tags API. Similar, but more precise andsimpler. See examples for details. Tags can be defined via
defineScalarTag(),defineSequenceTag()anddefineMappingTag(), or as aspread + override of an existing tag.
Schema.extend()toSchema.withTags().markers, block keys, multiline scalars, tag syntax and other things.
load()now throws on empty input instead of returningundefined.js-yaml/browserexport.loadAllsignature with an iterator (still works, but is acandidate for removal).
Removed
safeLoad(),safeLoadAll()andsafeDump()exports.DEFAULT_SCHEMAand the nestedtypesexport.onWarning,legacyandlistener.styles,replacer,noCompatMode,condenseFlow,quotingTypeandforceQuotes. RenamednoArrayIndenttoseqNoIndent.Formatting and representation are now configured through presenter options,
schemas and tag definitions. See migration guide on how to replace.
lib/.v4.3.0Compare Source
Security
maxTotalMergeKeysoption.Configuration
📅 Schedule: (UTC)
* * * * 1)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.