diff --git a/.changeset/cuddly-carrots-obey.md b/.changeset/cuddly-carrots-obey.md deleted file mode 100644 index a845151c..00000000 --- a/.changeset/cuddly-carrots-obey.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/ype-5528-core-split.md b/.changeset/ype-5528-core-split.md deleted file mode 100644 index bbf3d761..00000000 --- a/.changeset/ype-5528-core-split.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@youversion/platform-core': patch ---- - -Core clients are separate tsup entries so an `ApiClient` import can drop `BibleClient` and `LanguagesClient`. Import zod Mini as a namespace so unused classic locale files and unused Mini helpers stay out of named-import graphs. The version string is inlined from `package.json` without embedding the rest of the manifest. Published JS is whitespace-minified; syntax and identifier minify stay off so the `X-YVP-Sdk` stamp remains verifiable. Core does not run tsup's Rollup tree-shake pass, because that pass folds `isPublishBuild` and trips the stamp guard. Core wipes `dist` on build so stale tsup `.d.cts` files cannot publish. Bible version-filter allowlists live in a small state module so narrow imports do not pull auth storage or grants. `YouVersionPlatformConfiguration` still exposes the same statics. Public `theme.css` keeps the `--yv-*` tokens SDK components read. - -Behavior note: input-validation failures throw zod Mini's `$ZodError` (from `zod/mini`) instead of classic `ZodError`. `instanceof ZodError` checks against classic `zod` no longer match. Callers that catch validation errors should match on `error instanceof $ZodError` from `zod/mini` (or `z.core.$ZodError`). `page_size="*"` without 1-3 fields still throws the prior `Error` (`page_size="*" requires 1-3 fields to be specified`). diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index d974aaf6..7dc87657 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,13 @@ # @youversion/platform-core +## 2.12.2 + +### Patch Changes + +- 42a7d88: Core clients are separate tsup entries so an `ApiClient` import can drop `BibleClient` and `LanguagesClient`. Import zod Mini as a namespace so unused classic locale files and unused Mini helpers stay out of named-import graphs. The version string is inlined from `package.json` without embedding the rest of the manifest. Published JS is whitespace-minified; syntax and identifier minify stay off so the `X-YVP-Sdk` stamp remains verifiable. Core does not run tsup's Rollup tree-shake pass, because that pass folds `isPublishBuild` and trips the stamp guard. Core wipes `dist` on build so stale tsup `.d.cts` files cannot publish. Bible version-filter allowlists live in a small state module so narrow imports do not pull auth storage or grants. `YouVersionPlatformConfiguration` still exposes the same statics. Public `theme.css` keeps the `--yv-*` tokens SDK components read. + + Behavior note: input-validation failures throw zod Mini's `$ZodError` (from `zod/mini`) instead of classic `ZodError`. `instanceof ZodError` checks against classic `zod` no longer match. Callers that catch validation errors should match on `error instanceof $ZodError` from `zod/mini` (or `z.core.$ZodError`). `page_size="*"` without 1-3 fields still throws the prior `Error` (`page_size="*" requires 1-3 fields to be specified`). + ## 2.12.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 898b523a..c3c752cb 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@youversion/platform-core", - "version": "2.12.1", + "version": "2.12.2", "description": "A type-safe TypeScript SDK for accessing the YouVersion Platform APIs. Get Bible content and build Bible-based applications.", "license": "Apache-2.0", "type": "module", diff --git a/packages/hooks/CHANGELOG.md b/packages/hooks/CHANGELOG.md index a9ab4765..4ec251a7 100644 --- a/packages/hooks/CHANGELOG.md +++ b/packages/hooks/CHANGELOG.md @@ -1,5 +1,12 @@ # @youversion/platform-react-hooks +## 2.12.2 + +### Patch Changes + +- Updated dependencies [42a7d88] + - @youversion/platform-core@2.12.2 + ## 2.12.1 ### Patch Changes diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 82f91645..14f6889d 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@youversion/platform-react-hooks", - "version": "2.12.1", + "version": "2.12.2", "description": "React hooks for accessing YouVersion Platform APIs with automatic loading/error states.", "license": "Apache-2.0", "type": "module", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index a98a71d0..0658c69f 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,13 @@ # @youversion/platform-react-ui +## 2.12.2 + +### Patch Changes + +- Updated dependencies [42a7d88] + - @youversion/platform-core@2.12.2 + - @youversion/platform-react-hooks@2.12.2 + ## 2.12.1 ### Patch Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 7e734547..f9275ac6 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@youversion/platform-react-ui", - "version": "2.12.1", + "version": "2.12.2", "description": "Pre-built React components for Bible applications with styling included.", "license": "Apache-2.0", "type": "module",