Skip to content

chore: release packages (beta) - #159

Merged
btravers merged 1 commit into
mainfrom
changeset-release/main
Jul 28, 2026
Merged

chore: release packages (beta)#159
btravers merged 1 commit into
mainfrom
changeset-release/main

Conversation

@btravers

Copy link
Copy Markdown
Collaborator

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

unthrown@5.0.0-beta.9

Major Changes

  • e43d44e: tag(t) moves onto the pattern namespace as P.tag(t); the standalone
    tag export is removed.
    tag is a pattern constructor, and every other one
    already lives on P (P._ / P.any / P.instanceOf / P.when / P.union /
    P.string / P.number) — having exactly one of them sitting loose in the root
    export was the odd one out. There is no alias: one concept, one name.

    The type and the runtime behaviour are unchanged — it still produces the
    { _tag: t } object pattern, still narrows to the matching variant with its
    payload, and still works in grouped patterns and inside P.union.

    Migration is mechanical: drop tag from the import (keeping or adding P) and
    prefix the call sites. (The - import { tag } from "unthrown" line below is the
    v5-beta spelling; coming from 4.x the import was @unthrown/pattern, which is
    gone — see the v5 upgrade guide.)

    - import { tag } from "unthrown";
    + import { P } from "unthrown";
    
      result.mapErrCases((matcher) =>
        matcher
    -     .with(tag("NotFound"), () => new ApiError({ status: 404 }))
    -     .with(tag("Conflict"), tag("DriverError"), (e) => defect(e.cause)),
    +     .with(P.tag("NotFound"), () => new ApiError({ status: 404 }))
    +     .with(P.tag("Conflict"), P.tag("DriverError"), (e) => defect(e.cause)),
      );

    TaggedError (and the TaggedErrorConstructor / TaggedErrorInstance types)
    are untouched and still exported from the root — only the matcher pattern
    moved.

@unthrown/boxed@5.0.0-beta.9

Patch Changes

  • Updated dependencies [e43d44e]
    • unthrown@5.0.0-beta.9

@unthrown/effect@5.0.0-beta.9

Patch Changes

  • Updated dependencies [e43d44e]
    • unthrown@5.0.0-beta.9

@unthrown/neverthrow@5.0.0-beta.9

Patch Changes

  • Updated dependencies [e43d44e]
    • unthrown@5.0.0-beta.9

@unthrown/oxlint@5.0.0-beta.9

Patch Changes

  • e43d44e: Update no-catch-all-pattern's diagnostic and documentation to spell the
    recommended form as .with(P.tag("A"), P.tag("B"), …, handler), following
    core's move of the tag pattern constructor onto the P namespace. No rule
    behaviour, name, or option changed — only the guidance text a developer reads
    when the rule fires.

@unthrown/standard-schema@5.0.0-beta.9

Patch Changes

  • Updated dependencies [e43d44e]
    • unthrown@5.0.0-beta.9

@unthrown/vitest@5.0.0-beta.9

Copilot AI review requested due to automatic review settings July 28, 2026 14:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This is an automated Changesets release PR to publish the next prerelease (beta.9) across the unthrown monorepo, reflecting the P.tag(...) pattern-constructor move in core and dependency bumps in satellite packages.

Changes:

  • Bump package versions from 5.0.0-beta.8 to 5.0.0-beta.9 across core and related packages.
  • Update package changelogs to include the 5.0.0-beta.9 release entries (including core’s major-change notes).
  • Update .changeset/pre.json to include the new changeset IDs used in the prerelease sequence.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/core/package.json Version bump to 5.0.0-beta.9.
packages/core/CHANGELOG.md Adds 5.0.0-beta.9 major-change entry documenting tagP.tag.
packages/boxed/package.json Version bump to 5.0.0-beta.9.
packages/boxed/CHANGELOG.md Adds 5.0.0-beta.9 patch entry for updated dependency on core.
packages/effect/package.json Version bump to 5.0.0-beta.9.
packages/effect/CHANGELOG.md Adds 5.0.0-beta.9 patch entry for updated dependency on core.
packages/neverthrow/package.json Version bump to 5.0.0-beta.9.
packages/neverthrow/CHANGELOG.md Adds 5.0.0-beta.9 patch entry for updated dependency on core.
packages/oxlint/package.json Version bump to 5.0.0-beta.9.
packages/oxlint/CHANGELOG.md Adds 5.0.0-beta.9 patch entry updating rule messaging to use P.tag.
packages/standard-schema/package.json Version bump to 5.0.0-beta.9.
packages/standard-schema/CHANGELOG.md Adds 5.0.0-beta.9 patch entry for updated dependency on core.
packages/vitest/package.json Version bump to 5.0.0-beta.9.
packages/vitest/CHANGELOG.md Adds 5.0.0-beta.9 header (currently missing any change notes).
.changeset/pre.json Adds oxlint-p-tag-message and p-tag-pattern to the prerelease changeset list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/vitest/CHANGELOG.md
@btravers
btravers merged commit f0b704b into main Jul 28, 2026
15 checks passed
@btravers
btravers deleted the changeset-release/main branch July 28, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants