diff --git a/.tegami/2026-11-02-previewer-folder.md b/.tegami/2026-11-02-previewer-folder.md deleted file mode 100644 index 1942a190..00000000 --- a/.tegami/2026-11-02-previewer-folder.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -packages: - npm:@reactunity/renderer: - type: patch ---- - -### A custom Vite previewer lives in `previewer/`, not `public/previewer/` - -The Vite preset now looks for your own previewer in a `previewer` folder next to your Vite config, -instead of in `public/previewer`. Vite copies `public/` into the build, and this preset builds into -the Unity project, so a previewer kept there landed in `Assets/Resources/react` on every -`vite build`. It is now the same folder `react-unity-scripts` reads. Move the folder out of `public/` -if you already set one up. - -The `previewer` option also takes a folder path, relative to the Vite root, when the build lives -somewhere else: - -```ts -reactUnity({ previewer: '../Builds/Previewer' }) -``` - -The folder is checked on each request, so a build copied in while the dev server runs is picked up -without a restart. If the folder you name has no `index.html`, the dev server warns at startup and -falls back to the hosted previewer. Builds compressed with Gzip or Brotli now load even with -Unity's decompression fallback off, because the dev server sends the `Content-Encoding` header they -need. diff --git a/.tegami/publish-lock.yaml b/.tegami/publish-lock.yaml index d3d5f27d..68756369 100644 --- a/.tegami/publish-lock.yaml +++ b/.tegami/publish-lock.yaml @@ -1,6 +1,6 @@ core:changelogs: - - content: "---\npackages:\n npm:@reactunity/renderer:\n type: minor\n npm:@reactunity/scripts:\n type: patch\n---\n\n### The Vite preset has a previewer\n\n`reactUnity()` from `@reactunity/renderer/vite` now serves the previewer at `/previewer/` on the dev\nserver. The previewer is a hosted Unity WebGL player that runs your app in the browser, with no\nEditor open, and Vite's hot reload applies edits to it as you save. The dev server prints its address\nnext to `Local:`. Opening the dev server's root in a browser now redirects there, instead of failing\nwith `Globals is not defined`.\n\nA WebGL build of your own scene in `public/previewer/` is served in its place. Pass\n`previewer: false` to turn the page off.\n\nThe previewer build is new in this release, and the `react-unity-scripts` dev server loads it too.\n" - filename: 2026-11-02-vite-previewer.md + - content: "---\npackages:\n npm:@reactunity/renderer:\n type: patch\n---\n\n### A custom Vite previewer lives in `previewer/`, not `public/previewer/`\n\nThe Vite preset now looks for your own previewer in a `previewer` folder next to your Vite config,\ninstead of in `public/previewer`. Vite copies `public/` into the build, and this preset builds into\nthe Unity project, so a previewer kept there landed in `Assets/Resources/react` on every\n`vite build`. It is now the same folder `react-unity-scripts` reads. Move the folder out of `public/`\nif you already set one up.\n\nThe `previewer` option also takes a folder path, relative to the Vite root, when the build lives\nsomewhere else:\n\n```ts\nreactUnity({ previewer: '../Builds/Previewer' })\n```\n\nThe folder is checked on each request, so a build copied in while the dev server runs is picked up\nwithout a restart. If the folder you name has no `index.html`, the dev server warns at startup and\nfalls back to the hosted previewer. Builds compressed with Gzip or Brotli now load even with\nUnity's decompression fallback off, because the dev server sends the `Content-Encoding` header they\nneed.\n" + filename: 2026-11-02-previewer-folder.md v: 0.0.0 core:packages: - id: npm:@reactunity/monorepo @@ -10,12 +10,10 @@ core:packages: - id: npm:@reactunity/material updated: true - changelogIds: - - 2026-11-02-vite-previewer.md + - 2026-11-02-previewer-folder.md id: npm:@reactunity/renderer updated: true - - changelogIds: - - 2026-11-02-vite-previewer.md - id: npm:@reactunity/scripts + - id: npm:@reactunity/scripts updated: true npm:packages: - id: npm:@reactunity/monorepo diff --git a/CHANGELOG.md b/CHANGELOG.md index e348c9c7..3fd87bf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +## 0.27.1 + +### A custom Vite previewer lives in `previewer/`, not `public/previewer/` + +`@reactunity/renderer` + +The Vite preset now looks for your own previewer in a `previewer` folder next to your Vite config, +instead of in `public/previewer`. Vite copies `public/` into the build, and this preset builds into +the Unity project, so a previewer kept there landed in `Assets/Resources/react` on every +`vite build`. It is now the same folder `react-unity-scripts` reads. Move the folder out of `public/` +if you already set one up. + +The `previewer` option also takes a folder path, relative to the Vite root, when the build lives +somewhere else: + +```ts +reactUnity({ previewer: '../Builds/Previewer' }) +``` + +The folder is checked on each request, so a build copied in while the dev server runs is picked up +without a restart. If the folder you name has no `index.html`, the dev server warns at startup and +falls back to the hosted previewer. Builds compressed with Gzip or Brotli now load even with +Unity's decompression fallback off, because the dev server sends the `Content-Encoding` header they +need. + ## 0.27.0 ### CSS hot updates work with Vite 8.3 diff --git a/packages/create/package.json b/packages/create/package.json index da8fd7fb..19d67501 100644 --- a/packages/create/package.json +++ b/packages/create/package.json @@ -1,6 +1,6 @@ { "name": "@reactunity/create", - "version": "0.27.0", + "version": "0.27.1", "description": "Scaffold a ReactUnity app using npm init", "license": "MIT", "//type": "ESM, as of the chalk 6 / commander 15 upgrade: both dropped CommonJS. index.ts is emitted next to itself as ESM, so `bin` keeps pointing at index.js.", diff --git a/packages/create/scaffold/Packages/manifest.json b/packages/create/scaffold/Packages/manifest.json index c4c27337..59673b75 100644 --- a/packages/create/scaffold/Packages/manifest.json +++ b/packages/create/scaffold/Packages/manifest.json @@ -1,7 +1,7 @@ { "dependencies": { - "com.reactunity.core": "0.27.0", - "com.reactunity.quickjs": "0.27.0", + "com.reactunity.core": "0.27.1", + "com.reactunity.quickjs": "0.27.1", "com.unity.ai.navigation": "2.0.14", "com.unity.editorcoroutines": "1.1.0", "com.unity.ide.visualstudio": "2.0.26", diff --git a/packages/create/scaffold/react/package.json b/packages/create/scaffold/react/package.json index bf70c036..6e8e1eff 100644 --- a/packages/create/scaffold/react/package.json +++ b/packages/create/scaffold/react/package.json @@ -10,11 +10,11 @@ "lint": "react-unity-scripts lint" }, "dependencies": { - "@reactunity/renderer": "^0.27.0", + "@reactunity/renderer": "^0.27.1", "react": "^19.1.0" }, "devDependencies": { - "@reactunity/scripts": "^0.27.0", + "@reactunity/scripts": "^0.27.1", "typescript": "^5.8.3" } } diff --git a/packages/material/package.json b/packages/material/package.json index fe3a7d38..4fb9219b 100644 --- a/packages/material/package.json +++ b/packages/material/package.json @@ -1,6 +1,6 @@ { "name": "@reactunity/material", - "version": "0.27.0", + "version": "0.27.1", "description": "Material Design components and utilities for React Unity", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/renderer/CHANGELOG.md b/packages/renderer/CHANGELOG.md index cfa33ff2..13b1aeaa 100644 --- a/packages/renderer/CHANGELOG.md +++ b/packages/renderer/CHANGELOG.md @@ -1,3 +1,26 @@ +## @reactunity/renderer@0.27.1 + +### A custom Vite previewer lives in `previewer/`, not `public/previewer/` + +The Vite preset now looks for your own previewer in a `previewer` folder next to your Vite config, +instead of in `public/previewer`. Vite copies `public/` into the build, and this preset builds into +the Unity project, so a previewer kept there landed in `Assets/Resources/react` on every +`vite build`. It is now the same folder `react-unity-scripts` reads. Move the folder out of `public/` +if you already set one up. + +The `previewer` option also takes a folder path, relative to the Vite root, when the build lives +somewhere else: + +```ts +reactUnity({ previewer: '../Builds/Previewer' }) +``` + +The folder is checked on each request, so a build copied in while the dev server runs is picked up +without a restart. If the folder you name has no `index.html`, the dev server warns at startup and +falls back to the hosted previewer. Builds compressed with Gzip or Brotli now load even with +Unity's decompression fallback off, because the dev server sends the `Content-Encoding` header they +need. + ## @reactunity/renderer@0.27.0 ### The Vite preset has a previewer diff --git a/packages/renderer/package.json b/packages/renderer/package.json index 3a3a167f..05096a77 100644 --- a/packages/renderer/package.json +++ b/packages/renderer/package.json @@ -1,6 +1,6 @@ { "name": "@reactunity/renderer", - "version": "0.27.0", + "version": "0.27.1", "description": "React renderer for Unity3D", "types": "dist/index.d.ts", "typings": "dist/index.d.ts", diff --git a/packages/scripts/package.json b/packages/scripts/package.json index f1e4d125..50761e22 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -1,6 +1,6 @@ { "name": "@reactunity/scripts", - "version": "0.27.0", + "version": "0.27.1", "description": "Configuration and scripts for React Unity.", "repository": { "type": "git", diff --git a/unity/clearscript/package.json b/unity/clearscript/package.json index 67d4f53b..e4593769 100644 --- a/unity/clearscript/package.json +++ b/unity/clearscript/package.json @@ -6,7 +6,7 @@ "url": "https://github.com/KurtGokhan" }, "displayName": "React Unity ClearScript", - "version": "0.27.0", + "version": "0.27.1", "unity": "2019.4", "description": "ClearScript (V8) Plugin for ReactUnity", "keywords": ["ReactUnity", "ClearScript", "V8"], diff --git a/unity/core/package.json b/unity/core/package.json index 6cafb0cc..ae80a1aa 100644 --- a/unity/core/package.json +++ b/unity/core/package.json @@ -6,7 +6,7 @@ "url": "https://github.com/KurtGokhan" }, "displayName": "React Unity", - "version": "0.27.0", + "version": "0.27.1", "unity": "2021.3", "description": "React renderer for Unity", "keywords": ["React", "Framework", "UI", "UGUI", "UIToolkit"], diff --git a/unity/jint/package.json b/unity/jint/package.json index bb664cc9..d97c8e9e 100644 --- a/unity/jint/package.json +++ b/unity/jint/package.json @@ -6,7 +6,7 @@ "url": "https://github.com/KurtGokhan" }, "displayName": "React Unity Jint", - "version": "0.27.0", + "version": "0.27.1", "unity": "2019.4", "description": "Jint Plugin for ReactUnity", "keywords": ["ReactUnity", "Jint"], diff --git a/unity/quickjs/package.json b/unity/quickjs/package.json index ac933bbd..8e37e9d3 100644 --- a/unity/quickjs/package.json +++ b/unity/quickjs/package.json @@ -6,7 +6,7 @@ "url": "https://github.com/KurtGokhan" }, "displayName": "React Unity QuickJS", - "version": "0.27.0", + "version": "0.27.1", "unity": "2019.4", "description": "QuickJS Plugin for ReactUnity", "keywords": ["ReactUnity", "QuickJS"],