diff --git a/.changeset/angular-compatibility-docs.md b/.changeset/angular-compatibility-docs.md deleted file mode 100644 index 15961b1..0000000 --- a/.changeset/angular-compatibility-docs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@oneschema/angular": patch ---- - -Document the `@oneschema/importer` compatibility policy and the supported Angular versions in the README. diff --git a/.changeset/angular-importer-peer-range.md b/.changeset/angular-importer-peer-range.md deleted file mode 100644 index 600ebbb..0000000 --- a/.changeset/angular-importer-peer-range.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@oneschema/angular": patch ---- - -Update `@oneschema/importer` peer dependency range to `^0.7.0` to match the published importer version. diff --git a/.changeset/importer-destroy-and-typed-events.md b/.changeset/importer-destroy-and-typed-events.md deleted file mode 100644 index 2f7d666..0000000 --- a/.changeset/importer-destroy-and-typed-events.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -"@oneschema/importer": patch -"@oneschema/react": patch -"@oneschema/vue": patch -"@oneschema/angular": patch ---- - -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`. diff --git a/.changeset/importer-generated-api-reference.md b/.changeset/importer-generated-api-reference.md deleted file mode 100644 index 62e5db0..0000000 --- a/.changeset/importer-generated-api-reference.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@oneschema/importer": patch -"@oneschema/react": patch ---- - -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. diff --git a/.changeset/pnpm-eventemitter3-docs.md b/.changeset/pnpm-eventemitter3-docs.md deleted file mode 100644 index 5adcdc7..0000000 --- a/.changeset/pnpm-eventemitter3-docs.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@oneschema/importer": patch -"@oneschema/react": patch -"@oneschema/vue": patch -"@oneschema/angular": patch ---- - -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. diff --git a/.changeset/quiet-vans-smile.md b/.changeset/quiet-vans-smile.md deleted file mode 100644 index d29949d..0000000 --- a/.changeset/quiet-vans-smile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@oneschema/vue": patch ---- - -Stop shipping the ESLint config file in the published package. diff --git a/.changeset/tidy-packages-export-maps.md b/.changeset/tidy-packages-export-maps.md deleted file mode 100644 index 93197e4..0000000 --- a/.changeset/tidy-packages-export-maps.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@oneschema/importer": patch -"@oneschema/react": patch -"@oneschema/vue": patch ---- - -Publish dual ESM and CommonJS package entrypoints with explicit export maps. diff --git a/packages/importer-angular/package.json b/packages/importer-angular/package.json index d7a9185..be6e3a8 100644 --- a/packages/importer-angular/package.json +++ b/packages/importer-angular/package.json @@ -37,7 +37,7 @@ "@angular/cli": "~16.2.12", "@angular/compiler-cli": "^16.2.12", "@babel/core": "^7.22.9", - "@oneschema/importer": "^0.7.0", + "@oneschema/importer": "^0.7.6", "@types/jasmine": "~4.0.0", "@typescript-eslint/eslint-plugin": "^5.29.0", "@typescript-eslint/parser": "^5.29.0", diff --git a/packages/importer-angular/projects/oneschema/CHANGELOG.md b/packages/importer-angular/projects/oneschema/CHANGELOG.md new file mode 100644 index 0000000..f2e94be --- /dev/null +++ b/packages/importer-angular/projects/oneschema/CHANGELOG.md @@ -0,0 +1,29 @@ +# @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 diff --git a/packages/importer-angular/projects/oneschema/package.json b/packages/importer-angular/projects/oneschema/package.json index 8a75d32..5241918 100644 --- a/packages/importer-angular/projects/oneschema/package.json +++ b/packages/importer-angular/projects/oneschema/package.json @@ -1,6 +1,6 @@ { "name": "@oneschema/angular", - "version": "0.7.5", + "version": "0.7.6", "description": "Angular module for embedding OneSchema Importer", "author": "OneSchema", "license": "MIT", @@ -27,6 +27,6 @@ "peerDependencies": { "@angular/common": ">=15", "@angular/core": ">=15", - "@oneschema/importer": "^0.7.0" + "@oneschema/importer": "^0.7.6" } } diff --git a/packages/importer-react/CHANGELOG.md b/packages/importer-react/CHANGELOG.md new file mode 100644 index 0000000..e0f187d --- /dev/null +++ b/packages/importer-react/CHANGELOG.md @@ -0,0 +1,33 @@ +# @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 diff --git a/packages/importer-react/package.json b/packages/importer-react/package.json index 2622b05..16aa3c7 100644 --- a/packages/importer-react/package.json +++ b/packages/importer-react/package.json @@ -1,6 +1,6 @@ { "name": "@oneschema/react", - "version": "0.7.5", + "version": "0.7.6", "description": "React component for embedding OneSchema Importer", "author": "OneSchema", "license": "MIT", @@ -53,7 +53,7 @@ "clean": "npx --yes rimraf dist" }, "dependencies": { - "@oneschema/importer": "^0.7.0", + "@oneschema/importer": "^0.7.6", "tslib": "^2.x" }, "devDependencies": { diff --git a/packages/importer-vue/CHANGELOG.md b/packages/importer-vue/CHANGELOG.md new file mode 100644 index 0000000..70853d4 --- /dev/null +++ b/packages/importer-vue/CHANGELOG.md @@ -0,0 +1,29 @@ +# @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 diff --git a/packages/importer-vue/package.json b/packages/importer-vue/package.json index cfe3e00..67b53a7 100644 --- a/packages/importer-vue/package.json +++ b/packages/importer-vue/package.json @@ -1,6 +1,6 @@ { "name": "@oneschema/vue", - "version": "0.7.5", + "version": "0.7.6", "description": "Vue plugin for embedding OneSchema Importer", "author": "OneSchema", "license": "MIT", @@ -53,7 +53,7 @@ "clean": "npx --yes rimraf dist" }, "dependencies": { - "@oneschema/importer": "^0.7.0", + "@oneschema/importer": "^0.7.6", "tslib": "^2.x" }, "devDependencies": { diff --git a/packages/importer/CHANGELOG.md b/packages/importer/CHANGELOG.md new file mode 100644 index 0000000..3c263f1 --- /dev/null +++ b/packages/importer/CHANGELOG.md @@ -0,0 +1,28 @@ +# @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. diff --git a/packages/importer/package.json b/packages/importer/package.json index 7d8c42e..0e7fa0d 100644 --- a/packages/importer/package.json +++ b/packages/importer/package.json @@ -1,6 +1,6 @@ { "name": "@oneschema/importer", - "version": "0.7.5", + "version": "0.7.6", "description": "Vanilla JS library for embedding OneSchema Importer", "author": "OneSchema", "license": "MIT", diff --git a/yarn.lock b/yarn.lock index 5193cc0..3e437c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3488,7 +3488,7 @@ __metadata: "@angular/platform-browser-dynamic": "npm:^16.2.12" "@angular/router": "npm:^16.2.12" "@babel/core": "npm:^7.22.9" - "@oneschema/importer": "npm:^0.7.0" + "@oneschema/importer": "npm:^0.7.6" "@types/jasmine": "npm:~4.0.0" "@typescript-eslint/eslint-plugin": "npm:^5.29.0" "@typescript-eslint/parser": "npm:^5.29.0" @@ -3515,7 +3515,7 @@ __metadata: peerDependencies: "@angular/common": ">=15" "@angular/core": ">=15" - "@oneschema/importer": ^0.7.0 + "@oneschema/importer": ^0.7.6 languageName: unknown linkType: soft @@ -3581,7 +3581,7 @@ __metadata: languageName: unknown linkType: soft -"@oneschema/importer@npm:^0.7.0, @oneschema/importer@workspace:packages/importer": +"@oneschema/importer@npm:^0.7.6, @oneschema/importer@workspace:packages/importer": version: 0.0.0-use.local resolution: "@oneschema/importer@workspace:packages/importer" dependencies: @@ -3611,7 +3611,7 @@ __metadata: version: 0.0.0-use.local resolution: "@oneschema/react@workspace:packages/importer-react" dependencies: - "@oneschema/importer": "npm:^0.7.0" + "@oneschema/importer": "npm:^0.7.6" "@rollup/plugin-commonjs": "npm:^22.0.0" "@rollup/plugin-json": "npm:^5.0.0" "@rollup/plugin-node-resolve": "npm:^13.3.0" @@ -3646,7 +3646,7 @@ __metadata: version: 0.0.0-use.local resolution: "@oneschema/vue@workspace:packages/importer-vue" dependencies: - "@oneschema/importer": "npm:^0.7.0" + "@oneschema/importer": "npm:^0.7.6" "@rollup/plugin-commonjs": "npm:^22.0.0" "@rollup/plugin-json": "npm:^5.0.0" "@rollup/plugin-node-resolve": "npm:^13.3.0"