From 7e7e3cc45cbdb474cffece50812bba8bdd7f7d54 Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Mon, 11 Nov 2024 15:50:47 +0000 Subject: [PATCH] 9ecfa4c Merge pull request #6940 from QwikDev/changeset-release/main https://github.com/QwikDev/qwik/commit/9ecfa4c93ca1c93da7ec62d7f9d4854d8d734b4b --- .npmignore | 1 + CHANGELOG.md | 119 + bindings/qwik.darwin-arm64.node | Bin 0 -> 7695648 bytes bindings/qwik.darwin-x64.node | Bin 0 -> 8013440 bytes bindings/qwik.linux-x64-gnu.node | Bin 0 -> 11081056 bytes bindings/qwik.wasm.cjs | 484 ++++ bindings/qwik.wasm.mjs | 477 ++++ bindings/qwik.win32-x64-msvc.node | Bin 0 -> 10704896 bytes bindings/qwik_wasm_bg.wasm | Bin 0 -> 2544509 bytes build.d.ts | 2 + build/index.dev.cjs.map | 7 - core.cjs.map | 1 - core.min.mjs | 1 - core.mjs.map | 1 - {build => dist/build}/index.cjs | 0 {build => dist/build}/index.cjs.map | 0 {build => dist/build}/index.d.ts | 0 {build => dist/build}/index.dev.cjs | 0 dist/build/index.dev.cjs.map | 7 + {build => dist/build}/index.dev.mjs | 0 {build => dist/build}/index.dev.mjs.map | 2 +- {build => dist/build}/index.mjs | 0 {build => dist/build}/index.mjs.map | 0 {build => dist/build}/index.prod.cjs | 0 {build => dist/build}/index.prod.cjs.map | 0 {build => dist/build}/index.prod.mjs | 0 {build => dist/build}/index.prod.mjs.map | 0 {build => dist/build}/package.json | 2 +- cli.cjs => dist/cli.cjs | 42 +- core.cjs => dist/core.cjs | 545 +++-- dist/core.cjs.map | 1 + core.d.ts => dist/core.d.ts | 28 +- dist/core.min.mjs | 1 + core.mjs => dist/core.mjs | 546 +++-- dist/core.mjs.map | 1 + core.prod.cjs => dist/core.prod.cjs | 259 ++- core.prod.mjs => dist/core.prod.mjs | 327 +-- index.d.ts => dist/index.d.ts | 0 dist/jsx-runtime.d.ts | 3 + {jsx-runtime => dist/jsx-runtime}/index.d.ts | 0 {loader => dist/loader}/index.cjs | 0 {loader => dist/loader}/index.d.ts | 0 {loader => dist/loader}/index.mjs | 0 {loader => dist/loader}/package.json | 2 +- optimizer.cjs => dist/optimizer.cjs | 1819 ++++++++------- dist/optimizer.d.ts | 714 ++++++ optimizer.mjs => dist/optimizer.mjs | 1970 ++++++++--------- {prefetch => dist/prefetch}/index.cjs | 0 {prefetch => dist/prefetch}/index.d.ts | 0 {prefetch => dist/prefetch}/index.mjs | 0 {prefetch => dist/prefetch}/package.json | 2 +- .../qwik-prefetch.debug.js | 0 qwik-prefetch.js => dist/qwik-prefetch.js | 0 .../qwikloader.debug.js | 0 qwikloader.js => dist/qwikloader.js | 0 .../server-modules.d.ts | 0 server.cjs => dist/server.cjs | 23 +- dist/server.d.ts | 340 +++ server.mjs => dist/server.mjs | 23 +- .../adapters/aws-lambda/.eslintignore | 0 .../adapters/aws-lambda/.prettierignore | 0 .../adapters/aws-lambda/vite.config.ts | 0 .../starters}/adapters/aws-lambda/gitignore | 0 .../adapters/aws-lambda/package.json | 0 .../adapters/aws-lambda/serverless.yml | 0 .../aws-lambda/src/entry_aws-lambda.tsx | 0 .../starters}/adapters/azure-swa/README.md | 0 .../adapters/azure-swa/vite.config.ts | 0 .../azure-swa/azure-functions/host.json | 0 .../starters}/adapters/azure-swa/gitignore | 0 .../starters}/adapters/azure-swa/package.json | 0 .../azure-swa/public/staticwebapp.config.json | 0 .../azure-swa/src/entry.azure-swa.tsx | 0 .../adapters/azure-swa/swa-cli.config.json | 0 .../starters}/adapters/bun/README.md | 0 .../adapters/bun/adapters/bun/vite.config.ts | 0 .../starters}/adapters/bun/package.json | 0 .../starters}/adapters/bun/src/entry.bun.ts | 0 .../starters}/adapters/cloud-run/Dockerfile | 0 .../starters}/adapters/cloud-run/README.md | 0 .../adapters/cloud-run/vite.config.ts | 0 .../starters}/adapters/cloud-run/package.json | 0 .../cloud-run/src/entry.cloud-run.tsx | 0 .../adapters/cloudflare-pages/README.md | 0 .../adapters/cloudflare-pages/vite.config.ts | 0 .../adapters/cloudflare-pages/gitignore | 0 .../adapters/cloudflare-pages/package.json | 0 .../adapters/cloudflare-pages/public/_headers | 0 .../cloudflare-pages/public/_redirects | 0 .../src/entry.cloudflare-pages.tsx | 0 .../starters}/adapters/deno/README.md | 0 .../deno/adapters/deno/vite.config.ts | 0 .../starters}/adapters/deno/package.json | 0 .../starters}/adapters/deno/src/entry.deno.ts | 0 .../starters}/adapters/express/README.md | 0 .../express/adapters/express/vite.config.ts | 0 .../starters}/adapters/express/package.json | 0 .../adapters/express/src/entry.express.tsx | 0 .../starters}/adapters/fastify/README.md | 0 .../fastify/adapters/fastify/vite.config.ts | 0 .../starters}/adapters/fastify/package.json | 0 .../adapters/fastify/src/entry.fastify.tsx | 0 .../fastify/src/plugins/fastify-qwik.ts | 2 +- .../starters}/adapters/firebase/.eslintignore | 0 .../adapters/firebase/.prettierignore | 0 .../firebase/adapters/firebase/vite.config.ts | 0 .../starters}/adapters/firebase/firebase.json | 0 .../adapters/firebase/functions/.gitkeep | 0 .../adapters/firebase/functions/index.js | 0 .../adapters/firebase/functions/package.json | 0 .../starters}/adapters/firebase/gitignore | 0 .../starters}/adapters/firebase/package.json | 0 .../adapters/firebase/src/entry-firebase.tsx | 0 .../starters}/adapters/netlify-edge/README.md | 0 .../adapters/netlify-edge/vite.config.ts | 0 .../starters}/adapters/netlify-edge/gitignore | 0 .../adapters/netlify-edge/netlify.toml | 0 .../adapters/netlify-edge/package.json | 0 .../adapters/netlify-edge/public/_headers | 0 .../netlify-edge/src/entry.netlify-edge.tsx | 0 .../starters}/adapters/node-server/README.md | 0 .../adapters/node-server/vite.config.ts | 0 .../adapters/node-server/package.json | 0 .../node-server/src/entry.node-server.tsx | 0 .../starters}/adapters/static/README.md | 0 .../static/adapters/static/vite.config.ts | 0 .../starters}/adapters/static/package.json | 0 .../starters}/adapters/vercel-edge/README.md | 0 .../adapters/vercel-edge/vite.config.ts | 0 .../starters}/adapters/vercel-edge/gitignore | 0 .../adapters/vercel-edge/package.json | 0 .../vercel-edge/src/entry.vercel-edge.tsx | 0 .../adapters/vercel-edge/vercel.json | 0 .../starters}/features/auth/package.json | 0 .../features/auth/src/routes/plugin@auth.ts | 0 .../starters}/features/bootstrap/package.json | 0 .../src/components/bootstrap/alert.tsx | 0 .../src/components/bootstrap/button.tsx | 0 .../src/components/bootstrap/index.ts | 0 .../src/components/bootstrap/navbar.tsx | 0 .../src/components/bootstrap/spinner.tsx | 0 .../features/bootstrap/src/constants/data.ts | 0 .../bootstrap/src/models/bootstrap.ts | 0 .../src/routes/bootstrap/alerts/index.tsx | 0 .../src/routes/bootstrap/buttons/index.tsx | 0 .../bootstrap/src/routes/bootstrap/index.tsx | 0 .../bootstrap/src/routes/bootstrap/layout.tsx | 0 .../src/routes/bootstrap/spinners/index.tsx | 0 .../starters}/features/builder.io/README.md | 0 .../features/builder.io/package.json | 0 .../src/components/builder-registry.ts | 0 .../src/components/counter/counter.module.css | 0 .../src/components/counter/counter.tsx | 0 .../src/components/gauge/gauge.module.css | 0 .../builder.io/src/components/gauge/index.tsx | 0 .../src/routes/[...index]/index.tsx | 0 .../features/cypress/cypress.config.ts | 0 .../starters}/features/cypress/cypress.d.ts | 0 .../cypress/cypress/fixtures/example.json | 0 .../cypress/cypress/support/commands.ts | 0 .../cypress/support/component-index.html | 0 .../cypress/cypress/support/component.ts | 0 .../features/cypress/cypress/tsconfig.cy.json | 0 .../starters}/features/cypress/package.json | 0 .../src/components/example/example.cy.tsx | 0 .../src/components/example/example.tsx | 0 .../features/drizzle/drizzle.config.ts | 0 .../features/drizzle/drizzle/db/.gitkeep | 0 .../drizzle/drizzle/migrations/.gitkeep | 0 .../features/drizzle/drizzle/schema.ts | 0 .../starters}/features/drizzle/package.json | 0 .../drizzle/src/routes/create/index.tsx | 0 .../src/routes/users/[userId]/index.tsx | 0 .../drizzle/src/routes/users/index.tsx | 0 .../features/leaflet-map/package.json | 0 .../src/components/leaflet-map/index.tsx | 0 .../leaflet-map/src/helpers/boundary-box.tsx | 0 .../leaflet-map/src/models/location.ts | 0 .../features/leaflet-map/src/models/map.ts | 0 .../src/routes/basic-map/index.tsx | 0 .../starters}/features/localize/package.json | 0 .../features/localize/src/entry.ssr.tsx | 0 .../localize/src/locales/message.en.json | 0 .../localize/src/locales/message.it.json | 0 .../src/routes/[locale]/i18n-utils.ts | 0 .../localize/src/routes/[locale]/index.tsx | 0 .../localize/src/routes/[locale]/layout.tsx | 0 .../starters}/features/orama/package.json | 0 .../features/orama/src/orama/index.ts | 0 .../features/orama/src/routes/orama/index.tsx | 0 .../starters}/features/pandacss/.eslintignore | 0 .../features/pandacss/.prettierignore | 0 .../starters}/features/pandacss/gitignore | 0 .../starters}/features/pandacss/package.json | 0 .../features/pandacss/panda.config.ts | 0 .../features/pandacss/postcss.config.js | 0 .../features/pandacss/src/global.css | 0 .../pandacss/src/routes/pandacss/index.tsx | 0 .../starters}/features/partytown/package.json | 0 .../src/components/partytown/partytown.tsx | 0 .../features/playwright/package.json | 0 .../features/playwright/playwright.config.ts | 0 .../features/playwright/tests/example.spec.ts | 0 .../features/postcss/.vscode/settings.json | 0 .../starters}/features/postcss/package.json | 0 .../features/postcss/postcss.config.js | 0 .../starters}/features/prisma/package.json | 0 .../features/prisma/prisma/schema.prisma | 0 .../prisma/src/routes/create/index.tsx | 0 .../src/routes/users/[userId]/index.tsx | 0 .../prisma/src/routes/users/index.tsx | 0 .../starters}/features/react/package.json | 0 .../react/src/integrations/react/mui.tsx | 0 .../features/react/src/routes/react/index.tsx | 0 .../features/storybook/.storybook/main.ts | 0 .../storybook/.storybook/preview-head.html | 0 .../features/storybook/.storybook/preview.tsx | 0 .../storybook/.storybook/tsconfig.json | 0 .../starters}/features/storybook/package.json | 0 .../src/components/button/button.stories.tsx | 0 .../src/components/button/button.tsx | 0 .../styled-vanilla-extract/package.json | 0 .../src/routes/styled-flower/flower.css.ts | 0 .../src/routes/styled-flower/index.tsx | 0 .../features/tailwind/.prettierrc.js | 0 .../features/tailwind/.vscode/settings.json | 0 .../starters}/features/tailwind/package.json | 0 .../features/tailwind/postcss.config.cjs | 0 .../features/tailwind/src/global.css | 0 .../features/tailwind/tailwind.config.js | 0 .../starters}/features/turso/.env.local | 0 .../starters}/features/turso/package.json | 0 .../features/turso/src/utils/turso.ts | 0 .../starters}/features/vitest/package.json | 0 .../src/components/example/example.spec.tsx | 0 .../vitest/src/components/example/example.tsx | 0 .../barrel/component/index.tsx.template | 0 .../barrel/markdown/index.md.template | 0 .../templates}/barrel/mdx/index.mdx.template | 0 .../barrel/route/index.tsx.template | 0 .../qwik/component/[slug].tsx.template | 0 .../qwik/markdown/index.md.template | 0 .../templates}/qwik/mdx/index.mdx.template | 0 .../templates}/qwik/route/index.tsx.template | 0 {testing => dist/testing}/index.cjs | 309 +-- {testing => dist/testing}/index.d.ts | 0 {testing => dist/testing}/index.mjs | 270 ++- {testing => dist/testing}/package.json | 2 +- global.d.ts | 8 + jsx-dev-runtime.d.ts | 2 + jsx-runtime.d.ts | 5 +- loader.d.ts | 2 + optimizer.d.ts | 715 +----- package.json | 169 ++ qwik-cli.cjs | 3 +- server.d.ts | 337 +-- testing.d.ts | 2 + tsconfig.json | 16 + tsdoc.json | 17 + 259 files changed, 5649 insertions(+), 3960 deletions(-) create mode 100644 .npmignore create mode 100644 CHANGELOG.md create mode 100644 bindings/qwik.darwin-arm64.node create mode 100644 bindings/qwik.darwin-x64.node create mode 100644 bindings/qwik.linux-x64-gnu.node create mode 100644 bindings/qwik.wasm.cjs create mode 100644 bindings/qwik.wasm.mjs create mode 100644 bindings/qwik.win32-x64-msvc.node create mode 100644 bindings/qwik_wasm_bg.wasm create mode 100644 build.d.ts delete mode 100644 build/index.dev.cjs.map delete mode 100644 core.cjs.map delete mode 100644 core.min.mjs delete mode 100644 core.mjs.map rename {build => dist/build}/index.cjs (100%) rename {build => dist/build}/index.cjs.map (100%) rename {build => dist/build}/index.d.ts (100%) rename {build => dist/build}/index.dev.cjs (100%) create mode 100644 dist/build/index.dev.cjs.map rename {build => dist/build}/index.dev.mjs (100%) rename {build => dist/build}/index.dev.mjs.map (87%) rename {build => dist/build}/index.mjs (100%) rename {build => dist/build}/index.mjs.map (100%) rename {build => dist/build}/index.prod.cjs (100%) rename {build => dist/build}/index.prod.cjs.map (100%) rename {build => dist/build}/index.prod.mjs (100%) rename {build => dist/build}/index.prod.mjs.map (100%) rename {build => dist/build}/package.json (84%) rename cli.cjs => dist/cli.cjs (99%) rename core.cjs => dist/core.cjs (98%) create mode 100644 dist/core.cjs.map rename core.d.ts => dist/core.d.ts (96%) create mode 100644 dist/core.min.mjs rename core.mjs => dist/core.mjs (98%) create mode 100644 dist/core.mjs.map rename core.prod.cjs => dist/core.prod.cjs (98%) rename core.prod.mjs => dist/core.prod.mjs (98%) rename index.d.ts => dist/index.d.ts (100%) create mode 100644 dist/jsx-runtime.d.ts rename {jsx-runtime => dist/jsx-runtime}/index.d.ts (100%) rename {loader => dist/loader}/index.cjs (100%) rename {loader => dist/loader}/index.d.ts (100%) rename {loader => dist/loader}/index.mjs (100%) rename {loader => dist/loader}/package.json (84%) rename optimizer.cjs => dist/optimizer.cjs (95%) create mode 100644 dist/optimizer.d.ts rename optimizer.mjs => dist/optimizer.mjs (96%) rename {prefetch => dist/prefetch}/index.cjs (100%) rename {prefetch => dist/prefetch}/index.d.ts (100%) rename {prefetch => dist/prefetch}/index.mjs (100%) rename {prefetch => dist/prefetch}/package.json (84%) rename qwik-prefetch.debug.js => dist/qwik-prefetch.debug.js (100%) rename qwik-prefetch.js => dist/qwik-prefetch.js (100%) rename qwikloader.debug.js => dist/qwikloader.debug.js (100%) rename qwikloader.js => dist/qwikloader.js (100%) rename server-modules.d.ts => dist/server-modules.d.ts (100%) rename server.cjs => dist/server.cjs (98%) create mode 100644 dist/server.d.ts rename server.mjs => dist/server.mjs (98%) rename {starters => dist/starters}/adapters/aws-lambda/.eslintignore (100%) rename {starters => dist/starters}/adapters/aws-lambda/.prettierignore (100%) rename {starters => dist/starters}/adapters/aws-lambda/adapters/aws-lambda/vite.config.ts (100%) rename {starters => dist/starters}/adapters/aws-lambda/gitignore (100%) rename {starters => dist/starters}/adapters/aws-lambda/package.json (100%) rename {starters => dist/starters}/adapters/aws-lambda/serverless.yml (100%) rename {starters => dist/starters}/adapters/aws-lambda/src/entry_aws-lambda.tsx (100%) rename {starters => dist/starters}/adapters/azure-swa/README.md (100%) rename {starters => dist/starters}/adapters/azure-swa/adapters/azure-swa/vite.config.ts (100%) rename {starters => dist/starters}/adapters/azure-swa/azure-functions/host.json (100%) rename {starters => dist/starters}/adapters/azure-swa/gitignore (100%) rename {starters => dist/starters}/adapters/azure-swa/package.json (100%) rename {starters => dist/starters}/adapters/azure-swa/public/staticwebapp.config.json (100%) rename {starters => dist/starters}/adapters/azure-swa/src/entry.azure-swa.tsx (100%) rename {starters => dist/starters}/adapters/azure-swa/swa-cli.config.json (100%) rename {starters => dist/starters}/adapters/bun/README.md (100%) rename {starters => dist/starters}/adapters/bun/adapters/bun/vite.config.ts (100%) rename {starters => dist/starters}/adapters/bun/package.json (100%) rename {starters => dist/starters}/adapters/bun/src/entry.bun.ts (100%) rename {starters => dist/starters}/adapters/cloud-run/Dockerfile (100%) rename {starters => dist/starters}/adapters/cloud-run/README.md (100%) rename {starters => dist/starters}/adapters/cloud-run/adapters/cloud-run/vite.config.ts (100%) rename {starters => dist/starters}/adapters/cloud-run/package.json (100%) rename {starters => dist/starters}/adapters/cloud-run/src/entry.cloud-run.tsx (100%) rename {starters => dist/starters}/adapters/cloudflare-pages/README.md (100%) rename {starters => dist/starters}/adapters/cloudflare-pages/adapters/cloudflare-pages/vite.config.ts (100%) rename {starters => dist/starters}/adapters/cloudflare-pages/gitignore (100%) rename {starters => dist/starters}/adapters/cloudflare-pages/package.json (100%) rename {starters => dist/starters}/adapters/cloudflare-pages/public/_headers (100%) rename {starters => dist/starters}/adapters/cloudflare-pages/public/_redirects (100%) rename {starters => dist/starters}/adapters/cloudflare-pages/src/entry.cloudflare-pages.tsx (100%) rename {starters => dist/starters}/adapters/deno/README.md (100%) rename {starters => dist/starters}/adapters/deno/adapters/deno/vite.config.ts (100%) rename {starters => dist/starters}/adapters/deno/package.json (100%) rename {starters => dist/starters}/adapters/deno/src/entry.deno.ts (100%) rename {starters => dist/starters}/adapters/express/README.md (100%) rename {starters => dist/starters}/adapters/express/adapters/express/vite.config.ts (100%) rename {starters => dist/starters}/adapters/express/package.json (100%) rename {starters => dist/starters}/adapters/express/src/entry.express.tsx (100%) rename {starters => dist/starters}/adapters/fastify/README.md (100%) rename {starters => dist/starters}/adapters/fastify/adapters/fastify/vite.config.ts (100%) rename {starters => dist/starters}/adapters/fastify/package.json (100%) rename {starters => dist/starters}/adapters/fastify/src/entry.fastify.tsx (100%) rename {starters => dist/starters}/adapters/fastify/src/plugins/fastify-qwik.ts (93%) rename {starters => dist/starters}/adapters/firebase/.eslintignore (100%) rename {starters => dist/starters}/adapters/firebase/.prettierignore (100%) rename {starters => dist/starters}/adapters/firebase/adapters/firebase/vite.config.ts (100%) rename {starters => dist/starters}/adapters/firebase/firebase.json (100%) rename {starters => dist/starters}/adapters/firebase/functions/.gitkeep (100%) rename {starters => dist/starters}/adapters/firebase/functions/index.js (100%) rename {starters => dist/starters}/adapters/firebase/functions/package.json (100%) rename {starters => dist/starters}/adapters/firebase/gitignore (100%) rename {starters => dist/starters}/adapters/firebase/package.json (100%) rename {starters => dist/starters}/adapters/firebase/src/entry-firebase.tsx (100%) rename {starters => dist/starters}/adapters/netlify-edge/README.md (100%) rename {starters => dist/starters}/adapters/netlify-edge/adapters/netlify-edge/vite.config.ts (100%) rename {starters => dist/starters}/adapters/netlify-edge/gitignore (100%) rename {starters => dist/starters}/adapters/netlify-edge/netlify.toml (100%) rename {starters => dist/starters}/adapters/netlify-edge/package.json (100%) rename {starters => dist/starters}/adapters/netlify-edge/public/_headers (100%) rename {starters => dist/starters}/adapters/netlify-edge/src/entry.netlify-edge.tsx (100%) rename {starters => dist/starters}/adapters/node-server/README.md (100%) rename {starters => dist/starters}/adapters/node-server/adapters/node-server/vite.config.ts (100%) rename {starters => dist/starters}/adapters/node-server/package.json (100%) rename {starters => dist/starters}/adapters/node-server/src/entry.node-server.tsx (100%) rename {starters => dist/starters}/adapters/static/README.md (100%) rename {starters => dist/starters}/adapters/static/adapters/static/vite.config.ts (100%) rename {starters => dist/starters}/adapters/static/package.json (100%) rename {starters => dist/starters}/adapters/vercel-edge/README.md (100%) rename {starters => dist/starters}/adapters/vercel-edge/adapters/vercel-edge/vite.config.ts (100%) rename {starters => dist/starters}/adapters/vercel-edge/gitignore (100%) rename {starters => dist/starters}/adapters/vercel-edge/package.json (100%) rename {starters => dist/starters}/adapters/vercel-edge/src/entry.vercel-edge.tsx (100%) rename {starters => dist/starters}/adapters/vercel-edge/vercel.json (100%) rename {starters => dist/starters}/features/auth/package.json (100%) rename {starters => dist/starters}/features/auth/src/routes/plugin@auth.ts (100%) rename {starters => dist/starters}/features/bootstrap/package.json (100%) rename {starters => dist/starters}/features/bootstrap/src/components/bootstrap/alert.tsx (100%) rename {starters => dist/starters}/features/bootstrap/src/components/bootstrap/button.tsx (100%) rename {starters => dist/starters}/features/bootstrap/src/components/bootstrap/index.ts (100%) rename {starters => dist/starters}/features/bootstrap/src/components/bootstrap/navbar.tsx (100%) rename {starters => dist/starters}/features/bootstrap/src/components/bootstrap/spinner.tsx (100%) rename {starters => dist/starters}/features/bootstrap/src/constants/data.ts (100%) rename {starters => dist/starters}/features/bootstrap/src/models/bootstrap.ts (100%) rename {starters => dist/starters}/features/bootstrap/src/routes/bootstrap/alerts/index.tsx (100%) rename {starters => dist/starters}/features/bootstrap/src/routes/bootstrap/buttons/index.tsx (100%) rename {starters => dist/starters}/features/bootstrap/src/routes/bootstrap/index.tsx (100%) rename {starters => dist/starters}/features/bootstrap/src/routes/bootstrap/layout.tsx (100%) rename {starters => dist/starters}/features/bootstrap/src/routes/bootstrap/spinners/index.tsx (100%) rename {starters => dist/starters}/features/builder.io/README.md (100%) rename {starters => dist/starters}/features/builder.io/package.json (100%) rename {starters => dist/starters}/features/builder.io/src/components/builder-registry.ts (100%) rename {starters => dist/starters}/features/builder.io/src/components/counter/counter.module.css (100%) rename {starters => dist/starters}/features/builder.io/src/components/counter/counter.tsx (100%) rename {starters => dist/starters}/features/builder.io/src/components/gauge/gauge.module.css (100%) rename {starters => dist/starters}/features/builder.io/src/components/gauge/index.tsx (100%) rename {starters => dist/starters}/features/builder.io/src/routes/[...index]/index.tsx (100%) rename {starters => dist/starters}/features/cypress/cypress.config.ts (100%) rename {starters => dist/starters}/features/cypress/cypress.d.ts (100%) rename {starters => dist/starters}/features/cypress/cypress/fixtures/example.json (100%) rename {starters => dist/starters}/features/cypress/cypress/support/commands.ts (100%) rename {starters => dist/starters}/features/cypress/cypress/support/component-index.html (100%) rename {starters => dist/starters}/features/cypress/cypress/support/component.ts (100%) rename {starters => dist/starters}/features/cypress/cypress/tsconfig.cy.json (100%) rename {starters => dist/starters}/features/cypress/package.json (100%) rename {starters => dist/starters}/features/cypress/src/components/example/example.cy.tsx (100%) rename {starters => dist/starters}/features/cypress/src/components/example/example.tsx (100%) rename {starters => dist/starters}/features/drizzle/drizzle.config.ts (100%) rename {starters => dist/starters}/features/drizzle/drizzle/db/.gitkeep (100%) rename {starters => dist/starters}/features/drizzle/drizzle/migrations/.gitkeep (100%) rename {starters => dist/starters}/features/drizzle/drizzle/schema.ts (100%) rename {starters => dist/starters}/features/drizzle/package.json (100%) rename {starters => dist/starters}/features/drizzle/src/routes/create/index.tsx (100%) rename {starters => dist/starters}/features/drizzle/src/routes/users/[userId]/index.tsx (100%) rename {starters => dist/starters}/features/drizzle/src/routes/users/index.tsx (100%) rename {starters => dist/starters}/features/leaflet-map/package.json (100%) rename {starters => dist/starters}/features/leaflet-map/src/components/leaflet-map/index.tsx (100%) rename {starters => dist/starters}/features/leaflet-map/src/helpers/boundary-box.tsx (100%) rename {starters => dist/starters}/features/leaflet-map/src/models/location.ts (100%) rename {starters => dist/starters}/features/leaflet-map/src/models/map.ts (100%) rename {starters => dist/starters}/features/leaflet-map/src/routes/basic-map/index.tsx (100%) rename {starters => dist/starters}/features/localize/package.json (100%) rename {starters => dist/starters}/features/localize/src/entry.ssr.tsx (100%) rename {starters => dist/starters}/features/localize/src/locales/message.en.json (100%) rename {starters => dist/starters}/features/localize/src/locales/message.it.json (100%) rename {starters => dist/starters}/features/localize/src/routes/[locale]/i18n-utils.ts (100%) rename {starters => dist/starters}/features/localize/src/routes/[locale]/index.tsx (100%) rename {starters => dist/starters}/features/localize/src/routes/[locale]/layout.tsx (100%) rename {starters => dist/starters}/features/orama/package.json (100%) rename {starters => dist/starters}/features/orama/src/orama/index.ts (100%) rename {starters => dist/starters}/features/orama/src/routes/orama/index.tsx (100%) rename {starters => dist/starters}/features/pandacss/.eslintignore (100%) rename {starters => dist/starters}/features/pandacss/.prettierignore (100%) rename {starters => dist/starters}/features/pandacss/gitignore (100%) rename {starters => dist/starters}/features/pandacss/package.json (100%) rename {starters => dist/starters}/features/pandacss/panda.config.ts (100%) rename {starters => dist/starters}/features/pandacss/postcss.config.js (100%) rename {starters => dist/starters}/features/pandacss/src/global.css (100%) rename {starters => dist/starters}/features/pandacss/src/routes/pandacss/index.tsx (100%) rename {starters => dist/starters}/features/partytown/package.json (100%) rename {starters => dist/starters}/features/partytown/src/components/partytown/partytown.tsx (100%) rename {starters => dist/starters}/features/playwright/package.json (100%) rename {starters => dist/starters}/features/playwright/playwright.config.ts (100%) rename {starters => dist/starters}/features/playwright/tests/example.spec.ts (100%) rename {starters => dist/starters}/features/postcss/.vscode/settings.json (100%) rename {starters => dist/starters}/features/postcss/package.json (100%) rename {starters => dist/starters}/features/postcss/postcss.config.js (100%) rename {starters => dist/starters}/features/prisma/package.json (100%) rename {starters => dist/starters}/features/prisma/prisma/schema.prisma (100%) rename {starters => dist/starters}/features/prisma/src/routes/create/index.tsx (100%) rename {starters => dist/starters}/features/prisma/src/routes/users/[userId]/index.tsx (100%) rename {starters => dist/starters}/features/prisma/src/routes/users/index.tsx (100%) rename {starters => dist/starters}/features/react/package.json (100%) rename {starters => dist/starters}/features/react/src/integrations/react/mui.tsx (100%) rename {starters => dist/starters}/features/react/src/routes/react/index.tsx (100%) rename {starters => dist/starters}/features/storybook/.storybook/main.ts (100%) rename {starters => dist/starters}/features/storybook/.storybook/preview-head.html (100%) rename {starters => dist/starters}/features/storybook/.storybook/preview.tsx (100%) rename {starters => dist/starters}/features/storybook/.storybook/tsconfig.json (100%) rename {starters => dist/starters}/features/storybook/package.json (100%) rename {starters => dist/starters}/features/storybook/src/components/button/button.stories.tsx (100%) rename {starters => dist/starters}/features/storybook/src/components/button/button.tsx (100%) rename {starters => dist/starters}/features/styled-vanilla-extract/package.json (100%) rename {starters => dist/starters}/features/styled-vanilla-extract/src/routes/styled-flower/flower.css.ts (100%) rename {starters => dist/starters}/features/styled-vanilla-extract/src/routes/styled-flower/index.tsx (100%) rename {starters => dist/starters}/features/tailwind/.prettierrc.js (100%) rename {starters => dist/starters}/features/tailwind/.vscode/settings.json (100%) rename {starters => dist/starters}/features/tailwind/package.json (100%) rename {starters => dist/starters}/features/tailwind/postcss.config.cjs (100%) rename {starters => dist/starters}/features/tailwind/src/global.css (100%) rename {starters => dist/starters}/features/tailwind/tailwind.config.js (100%) rename {starters => dist/starters}/features/turso/.env.local (100%) rename {starters => dist/starters}/features/turso/package.json (100%) rename {starters => dist/starters}/features/turso/src/utils/turso.ts (100%) rename {starters => dist/starters}/features/vitest/package.json (100%) rename {starters => dist/starters}/features/vitest/src/components/example/example.spec.tsx (100%) rename {starters => dist/starters}/features/vitest/src/components/example/example.tsx (100%) rename {templates => dist/templates}/barrel/component/index.tsx.template (100%) rename {templates => dist/templates}/barrel/markdown/index.md.template (100%) rename {templates => dist/templates}/barrel/mdx/index.mdx.template (100%) rename {templates => dist/templates}/barrel/route/index.tsx.template (100%) rename {templates => dist/templates}/qwik/component/[slug].tsx.template (100%) rename {templates => dist/templates}/qwik/markdown/index.md.template (100%) rename {templates => dist/templates}/qwik/mdx/index.mdx.template (100%) rename {templates => dist/templates}/qwik/route/index.tsx.template (100%) rename {testing => dist/testing}/index.cjs (99%) rename {testing => dist/testing}/index.d.ts (100%) rename {testing => dist/testing}/index.mjs (99%) rename {testing => dist/testing}/package.json (86%) create mode 100644 global.d.ts create mode 100644 jsx-dev-runtime.d.ts create mode 100644 loader.d.ts create mode 100644 package.json create mode 100644 testing.d.ts create mode 100644 tsconfig.json create mode 100644 tsdoc.json diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..85de9cf9 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +src diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..0b98884c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,119 @@ +# @builder.io/qwik + +## 1.10.0 + +### Minor Changes + +- Async functions in `useComputed` are deprecated. (by [@wmertens](https://github.com/wmertens) in [#7013](https://github.com/QwikDev/qwik/pull/7013)) + + **Why?** + + - Qwik can't track used signals after the first await, which leads to subtle bugs. + - When calculating the first time, it will see it's a promise and it will restart the render function. + - Both `useTask` and `useResource` are available, without these problems. + + In v2, async functions won't work. + + Again, to get the same functionality use `useTask` or `useResource` instead, or this function: + + ```tsx + export const useAsyncComputed$ = (qrlFn: QRL<() => Promise>) => { + const sig = useSignal(); + useTask(({ track }) => { + const result = track(qrlFn); + if (result && 'then' in result) { + result.then( + (val) => (sig.value = val), + (err) => { + console.error('async computed function threw!', err); + throw error; + } + ); + } else { + sig.value = result; + } + }); + return sig; + }; + ``` + +- โœจ Expose `unwrapStore` as a low level AP (by [@GrandSchtroumpf](https://github.com/GrandSchtroumpf) in [#6960](https://github.com/QwikDev/qwik/pull/6960)) + + This enables developers to clone the content of a `useStore()` using `structureClone` or IndexedDB + +### Patch Changes + +- ๐Ÿ“ƒ fix useResource docs example & remove unused demo (by [@ianlet](https://github.com/ianlet) in [#6893](https://github.com/QwikDev/qwik/pull/6893)) + +- ๐Ÿž๐Ÿฉน QRL segment filenames are no longer lowercased. This was giving trouble with parent lookups in dev mode and there was no good reason for it. (by [@wmertens](https://github.com/wmertens) in [#7003](https://github.com/QwikDev/qwik/pull/7003)) + +- ๐Ÿž๐Ÿฉน the type for `