Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [2.2.13] - 2026-09-11

### Changed

- Updated the bundled Unicorn Studio SDK to 2.2.13

### Notes

- Upstream shipped `dist/unicornStudio.umd.js` in v2.2.13 with a stale internal version string (`2.2.12`), so `UnicornStudio.version` reports `2.2.12` at runtime. The vendored files are kept byte-identical to the upstream tag rather than patched, and the test suite pins the mismatch.

## [2.2.10] - 2026-08-14

### Changed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unicornstudio-react",
"version": "2.2.10",
"version": "2.2.13",
"description": "React component for embedding Unicorn.Studio interactive scenes with TypeScript support. Compatible with React (Vite) and Next.js.",
"keywords": [
"react",
Expand Down
14 changes: 12 additions & 2 deletions src/__tests__/constants.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ import {
import { BUNDLED_UNICORN_SDK } from "../shared/sdk-bundle";
import { version as packageVersion } from "../../package.json";

/**
* Version string the vendored core SDK reports at runtime.
*
* This usually equals `UNICORN_STUDIO_VERSION`, but upstream v2.2.13 shipped
* `dist/unicornStudio.umd.js` with a stale `2.2.12` internal version. The
* vendored file is kept byte-identical to the upstream tag, so the mismatch is
* pinned here instead of being hidden by editing vendored bytes.
*/
const VENDORED_CORE_VERSION = "2.2.12";

describe("constants", () => {
it("CDN URL includes the version", () => {
expect(UNICORN_STUDIO_CDN_URL).toContain(UNICORN_STUDIO_VERSION);
Expand All @@ -20,12 +30,12 @@ describe("constants", () => {
expect(packageVersion).toBe(UNICORN_STUDIO_VERSION);
});

it("bundled SDK core matches UNICORN_STUDIO_VERSION", () => {
it("bundled SDK core reports the vendored upstream version", () => {
const core = BUNDLED_UNICORN_SDK.scripts.find(
(script) => script.id === "core",
);
expect(BUNDLED_UNICORN_SDK.available).toBe(true);
expect(core?.content).toContain(`"${UNICORN_STUDIO_VERSION}"`);
expect(core?.content).toContain(`"${VENDORED_CORE_VERSION}"`);
});

it("bundled SDK scripts are byte-identical to vendor files", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ValidFPS, ScaleRange } from "./types";
/**
* Current version of the Unicorn Studio SDK being used.
*/
export const UNICORN_STUDIO_VERSION = "2.2.10";
export const UNICORN_STUDIO_VERSION = "2.2.13";

/**
* Official CDN URL for the Unicorn Studio SDK script.
Expand Down
2 changes: 1 addition & 1 deletion src/shared/sdk-bundle.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/unicornstudio/unicornStudio.umd.js

Large diffs are not rendered by default.

Loading