版本发布 8
### Minor Changes - [#1481](https://github.com/withstudiocms/studiocms/pull/1481) [`3f7e6cf`](https://github.com/withstudiocms/studiocms/commit/3f7e6cf419781e714f6802117b8ead0e3ddd7f47) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Adds new astro-integration-kit-inspired `defineIntegration` utility helper for building Astro integrations with Effect. The `defineIntegration` function introduces schema-validation for integration options using Effect Schema and automatically wraps integration hooks to surface errors as `EffectifyIntegrationHookError` instances. This provides better type safety and error handling for Astro integration authors. **Behavioral Changes:** - Integration options are now validated against the provided schema at integration initialization time, throwing `EffectifyIntegrationHookError` with `hook: 'integration:options'` for invalid options - All Effect-based integration hooks are automatically wrapped to catch and re-throw errors with proper context (hook name, integration name, and error details) - Hook errors are logged to the console and thrown as `EffectifyIntegrationHookError` instances **Pre-1.0 Versioning Note:** While this is technically a minor version bump (new feature addition), the introduction of schema-validation and automatic error wrapping represents a behavioral change that integration authors should be aware of. Existing code using raw Effect patterns for Astro integrations should evaluate whether to adopt this new utility for improved error handling and type safety.
### Patch Changes - [#1372](https://github.com/withstudiocms/studiocms/pull/1372) [`466d3c5`](https://github.com/withstudiocms/studiocms/commit/466d3c599fdf54b95788e377cd0c817a53bb6fd3) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fixes an issue where it could be possible that multiple schema updates that ran too fast would cause errors - [#1281](https://github.com/withstudiocms/studiocms/pull/1281) [`b5d5719`](https://github.com/withstudiocms/studiocms/commit/b5d5719b612545622813f1a944313e61a08e50f8) Thanks [@renovate](https://github.com/apps/renovate)! - lint
### Minor Changes - [#1356](https://github.com/withstudiocms/studiocms/pull/1356) [`262103e`](https://github.com/withstudiocms/studiocms/commit/262103ed60201c709582c97f8a7aae40fef24e32) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Migrate to main withstudiocms/studiocms mono repo and refactor ### Patch Changes - [#1384](https://github.com/withstudiocms/studiocms/pull/1384) [`1350aed`](https://github.com/withstudiocms/studiocms/commit/1350aed02274cda292eb4c27623a9cb5d6dbdd44) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update all non-major dependencies - [#1370](https://github.com/withstudiocms/studiocms/pull/1370) [`1e2d588`](https://github.com/withstudiocms/studiocms/commit/1e2d5888fd00471d0a7088dba5b972464ad47ac0) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fix Vite dynamic import comment preservation - Updated dependencies \[[`5c0c17b`](https://github.com/withstudiocms/studiocms/commit/5c0c17b17a65046bcb93654d8bd7b0bfdad4c773), [`0ae47b0`](https://github.com/withstudiocms/studiocms/commit/0ae47b06a4ff03ed9cdf01b136e1a50f4c8c4add), [`0ae47b0`](https://github.com/withstudiocms/studiocms/commit/0ae47b06a4ff03ed9cdf01b136e1a50f4c8c4add)]: - @withstudiocms/internal_helpers@0.2.0
### Minor Changes - [#1322](https://github.com/withstudiocms/studiocms/pull/1322) [`0ae47b0`](https://github.com/withstudiocms/studiocms/commit/0ae47b06a4ff03ed9cdf01b136e1a50f4c8c4add) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Migrate from Zod Schemas to Effect Schemas - [#1322](https://github.com/withstudiocms/studiocms/pull/1322) [`0ae47b0`](https://github.com/withstudiocms/studiocms/commit/0ae47b06a4ff03ed9cdf01b136e1a50f4c8c4add) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Update Plugin hooks to align with new schemas ### Patch Changes - [#1388](https://github.com/withstudiocms/studiocms/pull/1388) [`79f5b86`](https://github.com/withstudiocms/studiocms/commit/79f5b8648ddcfea1006599d656bfa0966e04ddce) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency sanitize-html to ^2.17.1
### Minor Changes - [#1322](https://github.com/withstudiocms/studiocms/pull/1322) [`0ae47b0`](https://github.com/withstudiocms/studiocms/commit/0ae47b06a4ff03ed9cdf01b136e1a50f4c8c4add) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Update Plugin hooks to align with new schemas - [#1448](https://github.com/withstudiocms/studiocms/pull/1448) [`35a1984`](https://github.com/withstudiocms/studiocms/commit/35a19845b30b6eed5b1273a40d99d9b405eeab9f) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Removes deprecated studiocmsMinimumVersion variable from plugin config
### Minor Changes - [#1254](https://github.com/withstudiocms/studiocms/pull/1254) [`180b959`](https://github.com/withstudiocms/studiocms/commit/180b95972f9d51731eb570685e251532cbae2f62) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Replaces chalk with node:util's styleText - [#1271](https://github.com/withstudiocms/studiocms/pull/1271) [`9a450cb`](https://github.com/withstudiocms/studiocms/commit/9a450cb9167e2f2ea4c197bc812131d2fdeda6c9) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Removes deprecated and unused virtual modules. The following modules have been removed. - `studiocms:astro-config/adapter` - `studiocms:auth/utils/getLabelForPermissionLevel` - `virtual:studiocms/sdk/env` ### Patch Changes - [#1237](https://github.com/withstudiocms/studiocms/pull/1237) [`fb6c96a`](https://github.com/withstudiocms/studiocms/commit/fb6c96ac6ae25887a0f673618770a67b2deffae6) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies - [#1259](https://github.com/withstudiocms/studiocms/pull/1259) [`0525390`](https://github.com/withstudiocms/studiocms/commit/05253906d33a9b7bd12a27cdf2b8c9e9f693177f) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies - [#1267](https://github.com/withstudiocms/studiocms/pull/1267) [`d56b066`](https://github.com/withstudiocms/studiocms/commit/d56b066554848d819cc3dd59cfacfbda51565ad5) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @nanostores/persistent to ^1.3.0 - [#1255](https://github.com/withstudiocms/studiocms/pull/1255) [`e12e074`](https://github.com/withstudiocms/studiocms/commit/e12e074e6432398181be1f58f5c89df96a516cbb) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fix new type issues due to updated clack version - [#1270](https://github.com/withstudiocms/studiocms/pull/1270) [`c9727f7`](https://github.com/withstudiocms/studiocms/commit/c9727f7a218113d68254de825b84ddb926721b56) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fixes issue with pg and mysql2 being required to be installed when they should be optional - [#1272](https://github.com/withstudiocms/studiocms/pull/1272) [`38e74bb`](https://github.com/withstudiocms/studiocms/commit/38e74bbeec97e054e8545d6665452c5246a1fdd3) Thanks [@RATIU5](https://github.com/RATIU5)! - Fix client regex in frontend to allow for slashes within a slug, but not on the outside. This unblocks creating pages under sub-paths just using the slug (e.g., `docs/getting-started`) and only affects client-side validation. - [#1265](https://github.com/withstudiocms/studiocms/pull/1265) [`6d9b601`](https://github.com/withstudiocms/studiocms/commit/6d9b601b0a29ca2221d47efa65bc1356870e0339) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Removes legacy email domain verification code - [#1231](https://github.com/withstudiocms/studiocms/pull/1231) [`e7b39ef`](https://github.com/withstudiocms/studiocms/commit/e7b39ef6c3e1e2a54201e200b32fb1c02cd5fc3e) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fixes default 404 route rendering - Updated dependencies \[[`6b826b8`](https://github.com/withstudiocms/studiocms/commit/6b826b80104fe23e35763edf275f1800e5629c32), [`8b46bf5`](https://github.com/withstudiocms/studiocms/commit/8b46bf5861f3ab884bb8cbac1b73a1e97fcabe96), [`f129eec`](https://github.com/withstudiocms/studiocms/commit/f129eec8d0a6f18c446c319dec9925cc31a890b4), [`e12e074`](https://github.com/withstudiocms/studiocms/commit/e12e074e6432398181be1f58f5c89df96a516cbb)]: - @withstudiocms/internal_helpers@0.1.1 - @withstudiocms/effect@0.3.0 - @withstudiocms/auth-kit@0.1.3 - @withstudiocms/component-registry@0.1.3 - @withstudiocms/sdk@0.2.0
### Patch Changes - [#1242](https://github.com/withstudiocms/studiocms/pull/1242) [`6b826b8`](https://github.com/withstudiocms/studiocms/commit/6b826b80104fe23e35763edf275f1800e5629c32) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency unist-util-visit to ^5.1.0
### Minor Changes - [#1278](https://github.com/withstudiocms/studiocms/pull/1278) [`54fef34`](https://github.com/withstudiocms/studiocms/commit/54fef348b11d25adb8601010438a83185af7ed4d) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Simplified template loading and selection process ### Patch Changes - [#1252](https://github.com/withstudiocms/studiocms/pull/1252) [`fc2dbad`](https://github.com/withstudiocms/studiocms/commit/fc2dbad9e8efa9a946e291ebae73620578e151ed) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - fix import statements to use .mjs instead of .js since new tsdown version outputs .mjs by default - [#1255](https://github.com/withstudiocms/studiocms/pull/1255) [`e12e074`](https://github.com/withstudiocms/studiocms/commit/e12e074e6432398181be1f58f5c89df96a516cbb) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fix new type issues due to updated clack version