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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [2.2.8] - 2026-07-18

### Changed

- Updated the bundled Unicorn Studio SDK to 2.2.8, adding particle support and improved rendering for scenes with overlapping or blended elements
- Re-vendored the SDK extension bundles (`model-renderer.js`, `three-bundle.js`) to match SDK 2.2.8

## [2.2.6] - 2026-07-08

### Added
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.6",
"version": "2.2.8",
"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: 14 additions & 0 deletions src/__tests__/constants.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,26 @@ import {
DEFAULT_VALUES,
VALID_FPS,
} from "../shared/constants";
import { BUNDLED_UNICORN_SDK } from "../shared/sdk-bundle";
import { version as packageVersion } from "../../package.json";

describe("constants", () => {
it("CDN URL includes the version", () => {
expect(UNICORN_STUDIO_CDN_URL).toContain(UNICORN_STUDIO_VERSION);
});

it("package version matches UNICORN_STUDIO_VERSION", () => {
expect(packageVersion).toBe(UNICORN_STUDIO_VERSION);
});

it("bundled SDK core matches UNICORN_STUDIO_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}"`);
});

it("CDN URL points to jsdelivr", () => {
expect(UNICORN_STUDIO_CDN_URL).toMatch(/^https:\/\/cdn\.jsdelivr\.net\//);
});
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.6";
export const UNICORN_STUDIO_VERSION = "2.2.8";

/**
* Official CDN URL for the Unicorn Studio SDK script.
Expand Down
6 changes: 3 additions & 3 deletions src/shared/sdk-bundle.ts

Large diffs are not rendered by default.

1,065 changes: 1 addition & 1,064 deletions vendor/unicornstudio/extensions/model-renderer.js

Large diffs are not rendered by default.

Loading
Loading