Skip to content

chore(deps): update dependency js-yaml to v5 - #38262

Merged
silverwind merged 4 commits into
mainfrom
renovate/major-npm-dependencies
Jun 29, 2026
Merged

chore(deps): update dependency js-yaml to v5#38262
silverwind merged 4 commits into
mainfrom
renovate/major-npm-dependencies

Conversation

@GiteaBot

@GiteaBot GiteaBot commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

This PR contains the following updates:

Package Change Age Confidence
js-yaml 4.2.05.1.0 age confidence

Release Notes

nodeca/js-yaml (js-yaml)

v5.1.0

Compare Source

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

Compare Source

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 to the
    test set.
Changed
  • See the migration guide 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

Compare Source

Security
  • Backported maxTotalMergeKeys option.

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@GiteaBot GiteaBot added dependencies lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 29, 2026
@GiteaBot
GiteaBot force-pushed the renovate/major-npm-dependencies branch 3 times, most recently from 587772f to 7fdf545 Compare June 29, 2026 12:06
@GiteaBot
GiteaBot force-pushed the renovate/major-npm-dependencies branch from 7fdf545 to 9850861 Compare June 29, 2026 13:53
js-yaml v5 bundles its own TypeScript types, making the separate
@types/js-yaml package unnecessary.

Assisted-by: Claude:Opus 4.8
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 29, 2026
@silverwind

silverwind commented Jun 29, 2026

Copy link
Copy Markdown
Member

Update to v5 done, types package became obsolete, removed. Also did a few yaml parser tests, all working.

@silverwind silverwind changed the title fix(deps): update dependency js-yaml to v5 chore(deps): update dependency js-yaml to v5 Jun 29, 2026
@github-actions github-actions Bot added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Jun 29, 2026
@GiteaBot

Copy link
Copy Markdown
Collaborator Author

Edited/Blocked Notification

Renovate 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.

⚠️ Warning: custom changes will be lost.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 29, 2026
@silverwind
silverwind enabled auto-merge (squash) June 29, 2026 16:04
@silverwind silverwind added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jun 29, 2026
@silverwind
silverwind merged commit 6f2e328 into main Jun 29, 2026
29 checks passed
@silverwind
silverwind deleted the renovate/major-npm-dependencies branch June 29, 2026 17:22
@GiteaBot GiteaBot added this to the 1.28.0 milestone Jun 29, 2026
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jun 29, 2026
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jun 30, 2026
* '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)
  ...
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jun 30, 2026
* 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)
  ...
@wxiaoguang

Copy link
Copy Markdown
Contributor

@go-gitea/maintainers

why it makes sense to keep flooding the garbage content into commit message?

@silverwind

silverwind commented Jul 2, 2026

Copy link
Copy Markdown
Member

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.

@wxiaoguang

wxiaoguang commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

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.

@wxiaoguang

Copy link
Copy Markdown
Contributor

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.

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?

zeekay pushed a commit to hanzoai/forge that referenced this pull request Jul 26, 2026
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) |
![age](https://developer.mend.io/api/mc/badges/age/npm/js-yaml/5.1.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/js-yaml/4.2.0/5.1.0?slim=true)
|

---

### 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants