Skip to content

Version Packages - #154

Merged
behnam-oneschema merged 1 commit into
mainfrom
changeset-release/main
Aug 30, 2026
Merged

behnam-oneschema merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

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.

Releases

@oneschema/importer@0.7.6

Patch Changes

  • e852152: Add destroy() and fix the message listener leak: cleanup removed a different
    function reference than the one that was added, so a closed importer kept
    handling embed messages. close(true) now delegates to destroy(). A destroyed instance rejects
    launch() with OneSchemaLaunchError.Destroyed rather than reporting a success
    it cannot deliver, and the React component now creates and destroys its importer
    in a mount effect, so a remount (including React strict mode's double effect)
    gets a fresh instance and still imports.

    Carry the launch failure detail (message, status, data) from the embed to
    the host on the launched event, and always emit the initialization-timeout
    error instead of swallowing it when devMode is true.

    Type the event surface with OneSchemaEventMap, export PicklistOption and
    OneSchemaImportResult, and mark the _-prefixed internals as @internal.

  • e852152: Generate the README option, prop and event references from the TypeScript
    types, and correct the drift they had accumulated: clientID (never a real
    option) is clientId, saveSession defaults to true rather than false, the
    error payload is { message, severity }, and the callbacks and events that
    were missing are now listed.

  • 0041f56: Document that pnpm projects need to install eventemitter3 alongside the SDK, because the importer class extends it in the published type declarations and pnpm does not hoist transitive dependencies.

  • 6c39143: Publish dual ESM and CommonJS package entrypoints with explicit export maps.

@oneschema/angular@0.7.6

Patch Changes

  • 710ef89: Document the @oneschema/importer compatibility policy and the supported Angular versions in the README.

  • 3816ab9: Update @oneschema/importer peer dependency range to ^0.7.0 to match the published importer version.

  • e852152: Add destroy() and fix the message listener leak: cleanup removed a different
    function reference than the one that was added, so a closed importer kept
    handling embed messages. close(true) now delegates to destroy(). A destroyed instance rejects
    launch() with OneSchemaLaunchError.Destroyed rather than reporting a success
    it cannot deliver, and the React component now creates and destroys its importer
    in a mount effect, so a remount (including React strict mode's double effect)
    gets a fresh instance and still imports.

    Carry the launch failure detail (message, status, data) from the embed to
    the host on the launched event, and always emit the initialization-timeout
    error instead of swallowing it when devMode is true.

    Type the event surface with OneSchemaEventMap, export PicklistOption and
    OneSchemaImportResult, and mark the _-prefixed internals as @internal.

  • 0041f56: Document that pnpm projects need to install eventemitter3 alongside the SDK, because the importer class extends it in the published type declarations and pnpm does not hoist transitive dependencies.

  • Updated dependencies [e852152]

  • Updated dependencies [e852152]

  • Updated dependencies [0041f56]

  • Updated dependencies [6c39143]

    • @oneschema/importer@0.7.6

@oneschema/react@0.7.6

Patch Changes

  • e852152: Add destroy() and fix the message listener leak: cleanup removed a different
    function reference than the one that was added, so a closed importer kept
    handling embed messages. close(true) now delegates to destroy(). A destroyed instance rejects
    launch() with OneSchemaLaunchError.Destroyed rather than reporting a success
    it cannot deliver, and the React component now creates and destroys its importer
    in a mount effect, so a remount (including React strict mode's double effect)
    gets a fresh instance and still imports.

    Carry the launch failure detail (message, status, data) from the embed to
    the host on the launched event, and always emit the initialization-timeout
    error instead of swallowing it when devMode is true.

    Type the event surface with OneSchemaEventMap, export PicklistOption and
    OneSchemaImportResult, and mark the _-prefixed internals as @internal.

  • e852152: Generate the README option, prop and event references from the TypeScript
    types, and correct the drift they had accumulated: clientID (never a real
    option) is clientId, saveSession defaults to true rather than false, the
    error payload is { message, severity }, and the callbacks and events that
    were missing are now listed.

  • 0041f56: Document that pnpm projects need to install eventemitter3 alongside the SDK, because the importer class extends it in the published type declarations and pnpm does not hoist transitive dependencies.

  • 6c39143: Publish dual ESM and CommonJS package entrypoints with explicit export maps.

  • Updated dependencies [e852152]

  • Updated dependencies [e852152]

  • Updated dependencies [0041f56]

  • Updated dependencies [6c39143]

    • @oneschema/importer@0.7.6

@oneschema/vue@0.7.6

Patch Changes

  • e852152: Add destroy() and fix the message listener leak: cleanup removed a different
    function reference than the one that was added, so a closed importer kept
    handling embed messages. close(true) now delegates to destroy(). A destroyed instance rejects
    launch() with OneSchemaLaunchError.Destroyed rather than reporting a success
    it cannot deliver, and the React component now creates and destroys its importer
    in a mount effect, so a remount (including React strict mode's double effect)
    gets a fresh instance and still imports.

    Carry the launch failure detail (message, status, data) from the embed to
    the host on the launched event, and always emit the initialization-timeout
    error instead of swallowing it when devMode is true.

    Type the event surface with OneSchemaEventMap, export PicklistOption and
    OneSchemaImportResult, and mark the _-prefixed internals as @internal.

  • 0041f56: Document that pnpm projects need to install eventemitter3 alongside the SDK, because the importer class extends it in the published type declarations and pnpm does not hoist transitive dependencies.

  • a68ce85: Stop shipping the ESLint config file in the published package.

  • 6c39143: Publish dual ESM and CommonJS package entrypoints with explicit export maps.

  • Updated dependencies [e852152]

  • Updated dependencies [e852152]

  • Updated dependencies [0041f56]

  • Updated dependencies [6c39143]

    • @oneschema/importer@0.7.6

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 17 times, most recently from 9daadaf to a1dd50a Compare August 30, 2026 00:03
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from a1dd50a to bb3d3d2 Compare August 30, 2026 00:05
behnam-oneschema added a commit that referenced this pull request Aug 30, 2026
…181)

## Summary

The changeset landed in #179 still describes an earlier revision of the
React fix — "the React component replaces the instance it destroyed" —
which was the shape that created a strict-mode update loop and was
reworked (in 032b783) before merge. The component now owns the importer
in a mount effect and destroys exactly that instance in its cleanup;
nothing is replaced from a cleanup.

Wording only, in the unreleased changeset, so the 0.7.6 CHANGELOG
shipped to customers matches the code. The Version Packages PR (#154)
regenerates from this file.

## Test plan

- `npx prettier --check .changeset/importer-destroy-and-typed-events.md`
— clean.
- No code change; the release notes on #154 update when this lands.


Link to Devin session:
https://app.devin.ai/sessions/0f6a86671bae4388870cb4d122431d2b
Open in Devin Desktop:
https://app.devin.ai/desktop/session/0f6a86671bae4388870cb4d122431d2b?variant=devin
Requested by: @behnam-oneschema

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@github-actions
github-actions Bot force-pushed the changeset-release/main branch 5 times, most recently from 04aeb9d to 1dfc76f Compare August 30, 2026 02:17
behnam-oneschema added a commit that referenced this pull request Aug 30, 2026
## Summary

`changeset version` rewrites the wrapper packages' `@oneschema/importer`
range (`^0.7.0` → `^0.7.6`) but never touches `yarn.lock`, so the
Version Packages PR arrives with a lockfile that contradicts its own
`package.json`s and every CI job dies in `yarn install --immutable`:

```
YN0028: -    "@oneschema/importer": "npm:^0.7.0"
YN0028: +    "@oneschema/importer": "npm:^0.7.6"
YN0028: The lockfile would have been modified by this install, which is explicitly forbidden.
```

The release job's version step now regenerates the lockfile before
changesets commits:

```diff
-version: yarn changeset version
+version: yarn version:packages
+# "version:packages": "changeset version && yarn install --mode=update-lockfile"
```

`--mode=update-lockfile` only rewrites `yarn.lock` (link step skipped),
so the versioning step stays a metadata-only operation.

Verified in a scratch worktree: `yarn version:packages` produces exactly
the five lockfile lines CI demanded, and `yarn install --immutable` then
passes.

Merging this makes the next release run rewrite #154 with the lockfile
included, which unblocks the 0.7.6 publish.

## Context

- Failing run on #154:
https://github.com/oneschema/sdk/actions/runs/33287633101
- Version Packages PR: #154


Link to Devin session:
https://app.devin.ai/sessions/0f6a86671bae4388870cb4d122431d2b
Open in Devin Desktop:
https://app.devin.ai/desktop/session/0f6a86671bae4388870cb4d122431d2b?variant=devin
Requested by: @behnam-oneschema

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 1dfc76f to a2adc89 Compare August 30, 2026 03:22
@behnam-oneschema
behnam-oneschema enabled auto-merge (squash) August 30, 2026 03:35
@github-actions

Copy link
Copy Markdown
Contributor Author

Bundle size report

Package/file Gzip size Raw size Delta vs base (gzip)
@oneschema/angular/esm2022/base-index.mjs 553 B 700 B 0 B (0.00%)
@oneschema/angular/esm2022/oneschema-angular.mjs 421 B 512 B 0 B (0.00%)
@oneschema/angular/esm2022/src/lib/oneschema.button.mjs 1,411 B 2,578 B 0 B (0.00%)
@oneschema/angular/esm2022/src/lib/oneschema.module.mjs 1,459 B 3,363 B 0 B (0.00%)
@oneschema/angular/esm2022/src/lib/oneschema.params.mjs 603 B 848 B 0 B (0.00%)
@oneschema/angular/esm2022/src/lib/oneschema.service.mjs 1,544 B 3,189 B 0 B (0.00%)
@oneschema/angular/esm2022/src/public-api.mjs 517 B 761 B 0 B (0.00%)
@oneschema/angular/fesm2022/oneschema-angular.mjs 1,465 B 5,025 B 0 B (0.00%)
@oneschema/filefeeds-react/main.js 7,857 B 35,825 B 0 B (0.00%)
@oneschema/filefeeds-react/module.js 7,730 B 35,424 B 0 B (0.00%)
@oneschema/filefeeds-react/module.mjs 7,731 B 35,425 B 0 B (0.00%)
@oneschema/filefeeds/main.js 6,694 B 29,909 B 0 B (0.00%)
@oneschema/filefeeds/module.js 6,647 B 29,774 B 0 B (0.00%)
@oneschema/filefeeds/module.mjs 6,648 B 29,775 B 0 B (0.00%)
@oneschema/filefeeds/oneschema-filefeeds-0.5.3.min.js 3,278 B 9,350 B 0 B (0.00%)
@oneschema/filefeeds/oneschema-filefeeds-0.5.latest.min.js 3,282 B 9,355 B 0 B (0.00%)
@oneschema/importer/main.js 8,444 B 39,638 B +1 B (0.01%)
@oneschema/importer/module.js 8,389 B 39,396 B 0 B (0.00%)
@oneschema/importer/module.mjs 8,390 B 39,397 B 0 B (0.00%)
@oneschema/importer/oneschema-importer-0.7.5.min.js — — removed
@oneschema/importer/oneschema-importer-0.7.6.min.js 4,050 B 12,108 B new
@oneschema/importer/oneschema-importer-0.7.latest.min.js 4,053 B 12,113 B 0 B (0.00%)
@oneschema/react/main.js 10,185 B 45,718 B 0 B (0.00%)
@oneschema/react/module.js 10,060 B 45,190 B 0 B (0.00%)
@oneschema/react/module.mjs 10,061 B 45,191 B 0 B (0.00%)
@oneschema/vue/main.js 26,781 B 114,082 B 0 B (0.00%)
@oneschema/vue/module.js 26,732 B 113,951 B 0 B (0.00%)
@oneschema/vue/module.mjs 26,733 B 113,952 B 0 B (0.00%)

@behnam-oneschema
behnam-oneschema enabled auto-merge (squash) August 30, 2026 03:37
@behnam-oneschema
behnam-oneschema merged commit 85da431 into main Aug 30, 2026
3 checks passed
@behnam-oneschema
behnam-oneschema deleted the changeset-release/main branch August 30, 2026 03:38
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.

1 participant