diff --git a/.changeset/dev-only-code-uxf-918.md b/.changeset/dev-only-code-uxf-918.md deleted file mode 100644 index ce01cff9d..000000000 --- a/.changeset/dev-only-code-uxf-918.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"@uxfront/unframework": minor -"@unframework.dev/ir": minor -"@unframework.dev/diagnostics": minor -"@unframework.dev/analyzer": minor -"@unframework.dev/codegen": minor -"@unframework.dev/compiler": minor -"@unframework.dev/target-react": minor -"@unframework.dev/target-vue": minor -"@unframework.dev/target-svelte": minor -"@unframework.dev/target-solid": minor -"@unframework.dev/target-solid2": minor -"@unframework.dev/target-angular": minor -"@unframework.dev/target-qwik": minor -"@unframework.dev/target-astro": minor ---- - -Add `isDev`, for code that runs only in a development build. Import it from `@uxfront/unframework` and write `if (isDev) { … }` at the top of the setup or in client code, to warn a component's author without shipping the warning: `if (isDev) { if (!label) console.warn("IconButton has no accessible name."); }`. Each target writes its framework's own check, which a production build drops: `process.env.NODE_ENV !== "production"` on React, Vue and Svelte, `isDev` from `solid-js/web`, `@solidjs/web` or `@qwik.dev/core/build` on Solid, Solid 2 and Qwik, `ngDevMode` on Angular and `import.meta.env.DEV` on Astro. Any other read of `isDev` is the new error UF2040. A React, Vue or Svelte server reads `process.env.NODE_ENV` as it runs, so start a production server with `NODE_ENV=production`. - -`ToolchainContext` takes an optional `mode`, `"production"` or `"development"`, which Qwik's `frameworkEmit` reads. diff --git a/.changeset/docs-shared-helpers-uxf-983.md b/.changeset/docs-shared-helpers-uxf-983.md deleted file mode 100644 index e165603ef..000000000 --- a/.changeset/docs-shared-helpers-uxf-983.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@unframework.dev/target-angular": minor -"@unframework.dev/diagnostics": minor ---- - -Name the shared helpers in two messages. Angular's `child-root-scope` reason, which UF4003 prints, now says each root node binds the shared `ScopeAttributes` directive (`[ufScope]`), where it said "an inline attribute directive". UF4001's description now says a target emulates a feature "with a helper", since most helpers live in the tree's `_unframework/` directory rather than inline. diff --git a/.changeset/dynamic-root-passthrough-uxf-913.md b/.changeset/dynamic-root-passthrough-uxf-913.md deleted file mode 100644 index 5a9be0b6e..000000000 --- a/.changeset/dynamic-root-passthrough-uxf-913.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"@uxfront/unframework": minor -"@unframework.dev/ir": minor -"@unframework.dev/diagnostics": minor -"@unframework.dev/analyzer": minor -"@unframework.dev/target-react": minor -"@unframework.dev/target-vue": minor -"@unframework.dev/target-svelte": minor -"@unframework.dev/target-solid": minor -"@unframework.dev/target-solid2": minor -"@unframework.dev/target-angular": minor -"@unframework.dev/target-qwik": minor -"@unframework.dev/target-astro": minor ---- - -Pass a consumer's attributes, listeners and ref through to a component whose root is a `` over tags, on whichever tag renders. An attribute that every tag takes, like `id`, `title`, `aria-*` or `data-*`, and a DOM listener now land on the element that renders, where they used to be UF1002: `