diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 51feff26..d8cb5c9e 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -11,22 +11,16 @@ jobs: steps: - uses: actions/checkout@v4 - - run: corepack enable + - run: npm i -g --force corepack && corepack enable - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "pnpm" - name: Install dependencies run: pnpm install - - name: prepare - run: pnpm dev:prepare - - - name: Release PR version - run: pnpm dlx pkg-pr-new@0.0 publish - - name: Lint (code) run: pnpm lint --fix - - uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c + - uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ad2d911..6974542b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,16 +25,14 @@ concurrency: jobs: lint: - # autofix workflow will be triggered instead for PRs - if: github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: corepack enable + - run: npm i -g --force corepack && corepack enable - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "pnpm" - name: Install dependencies @@ -51,7 +49,7 @@ jobs: # os: [ubuntu-latest] steps: - uses: actions/checkout@v4 - - run: corepack enable + - run: npm i -g --force corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20 @@ -69,13 +67,15 @@ jobs: - name: Run test suite run: pnpm test - release: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + + # - name: Run types tests + # run: pnpm test:types + publish: needs: [lint, test] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: corepack enable + - run: npm i -g --force corepack && corepack enable - uses: actions/setup-node@v4 with: node-version: 20 @@ -85,8 +85,7 @@ jobs: run: pnpm install - name: Prepare environment run: pnpm dev:prepare - - name: Release Nightly - run: pnpm changelogen --bump --canary --publish --publishTag nightly - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - NPM_CONFIG_PROVENANCE: true + - name: Build package + run: pnpm prepack + - name: Publish + run: pnpx pkg-pr-new publish --compact --no-template --pnpm diff --git a/.nuxtrc b/.nuxtrc index 85a2d21c..f0334199 100644 --- a/.nuxtrc +++ b/.nuxtrc @@ -1,5 +1,2 @@ imports.autoImport=false typescript.includeWorkspace=true - -# enable TypeScript bundler module resolution - https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler -experimental.typescriptBundlerResolution=true diff --git a/CHANGELOG.md b/CHANGELOG.md index 7abb428e..f765c138 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,391 @@ # Changelog +## v0.9.0 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.27...v0.9.0) + +### 🚀 Enhancements + +- Environments + env sync API ([#579](https://github.com/nuxt-hub/core/pull/579)) + +### 📖 Documentation + +- Update nitro.unjs.io links to nitro.build ([#571](https://github.com/nuxt-hub/core/pull/571)) + +### ❤️ Contributors + +- Farnabaz +- Mr Kaashee + +## v0.8.27 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.26...v0.8.27) + +### 🚀 Enhancements + +- Enable worker logs with default settings ([#566](https://github.com/nuxt-hub/core/pull/566)) + +### 📖 Documentation + +- Update example ([e770eac](https://github.com/nuxt-hub/core/commit/e770eac)) + +### ❤️ Contributors + +- Farnabaz +- Sébastien Chopin + +## v0.8.26 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.25...v0.8.26) + +### 🚀 Enhancements + +- Autorag ([#541](https://github.com/nuxt-hub/core/pull/541)) + +### 📖 Documentation + +- Update version ([6e99aa0](https://github.com/nuxt-hub/core/commit/6e99aa0)) +- Add autorag changelog image ([#558](https://github.com/nuxt-hub/core/pull/558)) + +### 🏡 Chore + +- **release:** V0.8.25 ([988a38b](https://github.com/nuxt-hub/core/commit/988a38b)) +- Update to latest nuxt ui version ([#556](https://github.com/nuxt-hub/core/pull/556)) + +### ❤️ Contributors + +- Rihan ([@RihanArfan](https://github.com/RihanArfan)) +- Hugo Richard ([@HugoRCD](https://github.com/HugoRCD)) +- Rihan Arfan ([@RihanArfan](https://github.com/RihanArfan)) +- Sébastien Chopin ([@atinux](https://github.com/atinux)) + +## v0.8.25 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.24...v0.8.25) + +### 🚀 Enhancements + +- Support observability and additional bindings ([#549](https://github.com/nuxt-hub/core/pull/549)) + +### 📖 Documentation + +- Browser rendering is now free ([bd54215](https://github.com/nuxt-hub/core/commit/bd54215)) +- Fix hero image responsive ([#540](https://github.com/nuxt-hub/core/pull/540)) +- Add workers changelog ([#542](https://github.com/nuxt-hub/core/pull/542)) +- Update link ([8c8aa8c](https://github.com/nuxt-hub/core/commit/8c8aa8c)) +- Fix nitro typo ([#544](https://github.com/nuxt-hub/core/pull/544)) +- Update workers changelog image ([#547](https://github.com/nuxt-hub/core/pull/547)) +- Fix mobile menu styling ([344855d](https://github.com/nuxt-hub/core/commit/344855d)) +- Add observability changelog image ([#550](https://github.com/nuxt-hub/core/pull/550)) +- Only link to feature if docs exist ([#543](https://github.com/nuxt-hub/core/pull/543)) + +### ❤️ Contributors + +- Rihan ([@RihanArfan](https://github.com/RihanArfan)) +- Hugo Richard ([@HugoRCD](https://github.com/HugoRCD)) +- Sébastien Chopin ([@atinux](https://github.com/atinux)) +- Leonardo Matos + +## v0.8.24 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.23...v0.8.24) + +### 🚀 Enhancements + +- Support hub.workers option ([#535](https://github.com/nuxt-hub/core/pull/535)) + +### 📖 Documentation + +- LLMS Full generation ([#530](https://github.com/nuxt-hub/core/pull/530)) +- Update deps ([866080d](https://github.com/nuxt-hub/core/commit/866080d)) +- Use img tag ([6cfa14c](https://github.com/nuxt-hub/core/commit/6cfa14c)) + +### 🏡 Chore + +- Small update ([147f1d5](https://github.com/nuxt-hub/core/commit/147f1d5)) +- Update deps ([2a0f013](https://github.com/nuxt-hub/core/commit/2a0f013)) +- Upgrade nuxt module builder to v1 ([#536](https://github.com/nuxt-hub/core/pull/536)) +- Update deps ([6d0711f](https://github.com/nuxt-hub/core/commit/6d0711f)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](https://github.com/atinux)) +- Rihan ([@RihanArfan](https://github.com/RihanArfan)) +- Farnabaz + +## v0.8.23 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.21...v0.8.23) + +### 🚀 Enhancements + +- **ai:** Support AI gateway in development too ([#522](https://github.com/nuxt-hub/core/pull/522)) +- Improve error logging in setup remote ([#492](https://github.com/nuxt-hub/core/pull/492)) + +### 🩹 Fixes + +- **types:** Add exports in package.json ([#527](https://github.com/nuxt-hub/core/pull/527)) + +### 📖 Documentation + +- Disable llms-full.txt for now ([30a521e](https://github.com/nuxt-hub/core/commit/30a521e)) + +### 🏡 Chore + +- Update deps ([9bff98d](https://github.com/nuxt-hub/core/commit/9bff98d)) +- Add postinstall script on playground ([3622d09](https://github.com/nuxt-hub/core/commit/3622d09)) +- **release:** V0.8.22 ([3217c05](https://github.com/nuxt-hub/core/commit/3217c05)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](https://github.com/atinux)) +- Rihan ([@RihanArfan](https://github.com/RihanArfan)) + +## v0.8.22 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.21...v0.8.22) + +### 🚀 Enhancements + +- **ai:** Support AI gateway in development too ([#522](https://github.com/nuxt-hub/core/pull/522)) + +### 📖 Documentation + +- Disable llms-full.txt for now ([30a521e](https://github.com/nuxt-hub/core/commit/30a521e)) + +### 🏡 Chore + +- Update deps ([9bff98d](https://github.com/nuxt-hub/core/commit/9bff98d)) +- Add postinstall script on playground ([3622d09](https://github.com/nuxt-hub/core/commit/3622d09)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](https://github.com/atinux)) + +## v0.8.21 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.20...v0.8.21) + +### 🩹 Fixes + +- Typo `safe-buffer` -> `safer-buffer` ([e09663b](https://github.com/nuxt-hub/core/commit/e09663b)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](https://github.com/atinux)) + +## v0.8.20 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.19...v0.8.20) + +### 🚀 Enhancements + +- Send file mime to multi-part upload ([#518](https://github.com/nuxt-hub/core/pull/518)) + +### 🏡 Chore + +- Add alias for safe-buffer to node:buffer ([39bc7ec](https://github.com/nuxt-hub/core/commit/39bc7ec)) + +### ❤️ Contributors + +- Farnabaz +- Sébastien Chopin ([@atinux](https://github.com/atinux)) + +## v0.8.19 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.18...v0.8.19) + +### 🩹 Fixes + +- **blob:** Missing content type on complete for multipart upload ([#517](https://github.com/nuxt-hub/core/pull/517)) +- **ai:** Properly handle error data on streams ([e97ee16](https://github.com/nuxt-hub/core/commit/e97ee16)) + +### 📖 Documentation + +- Update `@nuxt/content` and remove custom content components ([#490](https://github.com/nuxt-hub/core/pull/490)) +- Fix syntax highlight ([c966784](https://github.com/nuxt-hub/core/commit/c966784)) +- Add missing extension ([c666b9c](https://github.com/nuxt-hub/core/commit/c666b9c)) + +### 🏡 Chore + +- Set `cloudflare.deployConfig` to false in nitro ([617f23d](https://github.com/nuxt-hub/core/commit/617f23d)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](https://github.com/atinux)) +- Farnabaz +- Hugo Richard ([@HugoRCD](https://github.com/HugoRCD)) + +## v0.8.18 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.17...v0.8.18) + +### 📖 Documentation + +- Update ai docs ([#461](https://github.com/nuxt-hub/core/pull/461)) +- Update vectorize docs ([#458](https://github.com/nuxt-hub/core/pull/458)) +- Add section for nuxthub deploy in ci/cd ([67fb252](https://github.com/nuxt-hub/core/commit/67fb252)) +- Fix command palette navigation ([#476](https://github.com/nuxt-hub/core/pull/476)) +- Tidy up content collections ([099c91b](https://github.com/nuxt-hub/core/commit/099c91b)) +- Enable studio editing ([f056e7b](https://github.com/nuxt-hub/core/commit/f056e7b)) +- Add LLMS routes ([f59c078](https://github.com/nuxt-hub/core/commit/f59c078)) +- Add support for Nuxt Studio form customisation ([b5b1e54](https://github.com/nuxt-hub/core/commit/b5b1e54)) +- Add blog & changelog on search ([ac962a9](https://github.com/nuxt-hub/core/commit/ac962a9)) +- Improve environment variables part ([#478](https://github.com/nuxt-hub/core/pull/478)) +- **gitlab-ci:** Adding gitlab-ci documentation ([#479](https://github.com/nuxt-hub/core/pull/479)) +- Improvements on blog & changelog ([24e0efb](https://github.com/nuxt-hub/core/commit/24e0efb)) +- Fix header gradient shows above all the content ([#483](https://github.com/nuxt-hub/core/pull/483), [#484](https://github.com/nuxt-hub/core/pull/484)) +- 9K ([5fab003](https://github.com/nuxt-hub/core/commit/5fab003)) + +### 🏡 Chore + +- Migrate to Nuxt UI v3 & Content v3 ([#471](https://github.com/nuxt-hub/core/pull/471)) +- Add support for Nitro `nodeCompat` ([0c9eb8b](https://github.com/nuxt-hub/core/commit/0c9eb8b)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](http://github.com/atinux)) +- Mohamed +- Skoenfaelt ([@skoenfaelt](http://github.com/skoenfaelt)) +- Olivier Belaud ([@OlivierBelaud](http://github.com/OlivierBelaud)) +- Hugo Richard ([@HugoRCD](http://github.com/HugoRCD)) +- Matt Maribojoc + +## v0.8.17 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.16...v0.8.17) + +### 🩹 Fixes + +- Support upcoming nitro version ([c672f33](https://github.com/nuxt-hub/core/commit/c672f33)) +- Add back cloudflare: as externals ([3f2aabe](https://github.com/nuxt-hub/core/commit/3f2aabe)) + +### 🏡 Chore + +- Update deps ([0314365](https://github.com/nuxt-hub/core/commit/0314365)) +- Move to pnpm 9 ([dff5b81](https://github.com/nuxt-hub/core/commit/dff5b81)) +- Use pnpm 10 ([ed18f15](https://github.com/nuxt-hub/core/commit/ed18f15)) + +### ❤️ Contributors + +- Sébastien Chopin + +## v0.8.16 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.15...v0.8.16) + +### 🚀 Enhancements + +- **db:** Support Nitro `useDatabase()` ([#15](https://github.com/nuxt-hub/core/pull/15)) + +### 🩹 Fixes + +- Split sql trigger statements as a single query ([#451](https://github.com/nuxt-hub/core/pull/451)) +- **blob:** Return null for get() with remote enabled ([#455](https://github.com/nuxt-hub/core/pull/455)) + +### 📖 Documentation + +- 10 browser sessions now! ([cba9099](https://github.com/nuxt-hub/core/commit/cba9099)) +- Kv, db, and cache updates ([#454](https://github.com/nuxt-hub/core/pull/454)) + +### 🏡 Chore + +- **playground:** Add back basic auth ([915a180](https://github.com/nuxt-hub/core/commit/915a180)) +- Disable durable preset for now ([b566b53](https://github.com/nuxt-hub/core/commit/b566b53)) +- **playground:** Add websocket experimental flag ([1d5a8e0](https://github.com/nuxt-hub/core/commit/1d5a8e0)) +- **playground:** Remove basic auth ([08239d7](https://github.com/nuxt-hub/core/commit/08239d7)) +- **playground:** Use uncrypto instead ([03b6218](https://github.com/nuxt-hub/core/commit/03b6218)) +- Fix ci for corepack ([dcef1c8](https://github.com/nuxt-hub/core/commit/dcef1c8)) +- Add support for localhost on hub api routes ([824c998](https://github.com/nuxt-hub/core/commit/824c998)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](http://github.com/atinux)) +- Rihan ([@RihanArfan](http://github.com/RihanArfan)) +- Matt Maribojoc + +## v0.8.15 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.14...v0.8.15) + +### 🚀 Enhancements + +- Prepare to CF Workers ([601034b](https://github.com/nuxt-hub/core/commit/601034b)) + +### 🏡 Chore + +- Add nitroPreset in hub.config.json ([c2e29b3](https://github.com/nuxt-hub/core/commit/c2e29b3)) + +### ❤️ Contributors + +- Sébastien Chopin + +## v0.8.14 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.13...v0.8.14) + +### 🚀 Enhancements + +- Add hub `test` env as well as supporting nuxt test option ([#429](https://github.com/nuxt-hub/core/pull/429)) + +### 🩹 Fixes + +- Log relative path for hub dir ([c1cd2c3](https://github.com/nuxt-hub/core/commit/c1cd2c3)) + +### 📖 Documentation + +- Update database migrations foreign keys constraints ([983e9c9](https://github.com/nuxt-hub/core/commit/983e9c9)) +- Fix typo in debug ([#431](https://github.com/nuxt-hub/core/pull/431)) + +### 🏡 Chore + +- Update deps ([965a9fa](https://github.com/nuxt-hub/core/commit/965a9fa)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](http://github.com/atinux)) +- Yizack Rangel ([@Yizack](http://github.com/Yizack)) + +## v0.8.13 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.12...v0.8.13) + +### 🩹 Fixes + +- **migrations:** Respect for loop for remote db migrations ([#426](https://github.com/nuxt-hub/core/pull/426)) + +### 🏡 Chore + +- Update vitest ([3941629](https://github.com/nuxt-hub/core/commit/3941629)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](http://github.com/atinux)) + +## v0.8.12 + +[compare changes](https://github.com/nuxt-hub/core/compare/v0.8.11...v0.8.12) + +### 🚀 Enhancements + +- **database:** Add support for multiple database migrations directories ([#423](https://github.com/nuxt-hub/core/pull/423)) + +### 🩹 Fixes + +- **docs:** Migrations fragment identifier ([#417](https://github.com/nuxt-hub/core/pull/417)) + +### 📖 Documentation + +- Remove using path as async data key ([0b15938](https://github.com/nuxt-hub/core/commit/0b15938)) +- Remove using path as async data key" ([355a8ff](https://github.com/nuxt-hub/core/commit/355a8ff)) +- Fix async data keys ([859a5f8](https://github.com/nuxt-hub/core/commit/859a5f8)) + +### ❤️ Contributors + +- Sébastien Chopin ([@atinux](http://github.com/atinux)) +- Yali ([@yusufalitangoz](http://github.com/yusufalitangoz)) + ## v0.8.11 [compare changes](https://github.com/nuxt-hub/core/compare/v0.8.10...v0.8.11) diff --git a/docs/app.config.ts b/docs/app.config.ts deleted file mode 100644 index 1e539f4d..00000000 --- a/docs/app.config.ts +++ /dev/null @@ -1,35 +0,0 @@ -export default defineAppConfig({ - ui: { - primary: 'green', - gray: 'slate', - variables: { - dark: { - background: 'var(--color-gray-950)' - } - }, - header: { - wrapper: 'lg:mb-0 border-0' - }, - icons: { - dark: 'i-lucide-moon', - light: 'i-lucide-sun', - system: 'i-lucide-laptop', - search: 'i-lucide-search', - external: 'i-lucide-arrow-up-right', - chevron: 'i-lucide-chevron-down', - hash: 'i-lucide-hash', - menu: 'i-lucide-menu', - close: 'i-lucide-x', - check: 'i-lucide-circle-check' - } - }, - seo: { - siteName: 'NuxtHub' - }, - toc: { - title: 'On this page', - bottom: { - edit: 'https://github.com/nuxt-hub/core/edit/main/docs/content' - } - } -}) diff --git a/docs/app/app.config.ts b/docs/app/app.config.ts new file mode 100644 index 00000000..d76c324f --- /dev/null +++ b/docs/app/app.config.ts @@ -0,0 +1,37 @@ +export default defineAppConfig({ + ui: { + colors: { + primary: 'green', + neutral: 'slate', + warning: 'amber', + important: 'violet' + }, + commandPalette: { + slots: { + itemLeadingIcon: 'size-4' + } + }, + tabs: { + slots: { + list: 'overflow-x-auto' + } + } + }, + uiPro: { + contentNavigation: { + slots: { + linkLeadingIcon: 'size-4', + listWithChildren: 'ms-4.5' + } + } + }, + seo: { + siteName: 'NuxtHub' + }, + toc: { + title: 'On this page', + bottom: { + edit: 'https://github.com/nuxt-hub/core/edit/main/docs/content' + } + } +}) diff --git a/docs/app.vue b/docs/app/app.vue similarity index 67% rename from docs/app.vue rename to docs/app/app.vue index 3903d221..f28e5086 100644 --- a/docs/app.vue +++ b/docs/app/app.vue @@ -1,28 +1,39 @@ diff --git a/docs/app/assets/main.css b/docs/app/assets/main.css new file mode 100644 index 00000000..78cb29ce --- /dev/null +++ b/docs/app/assets/main.css @@ -0,0 +1,27 @@ +@import "tailwindcss"; +@import "@nuxt/ui-pro"; + +@source "../../content/**/*"; + +.dark { + /* --ui-bg: var(--ui-color-neutral-950); */ + --ui-bg: rgb(2, 4, 32); +} + +@theme static { + --font-sans: 'Public Sans', sans-serif; + + --breakpoint-3xl: 1920px; + + --color-green-50: #EFFDF5; + --color-green-100: #D9FBE8; + --color-green-200: #B3F5D1; + --color-green-300: #75EDAE; + --color-green-400: #00DC82; + --color-green-500: #00C16A; + --color-green-600: #00A155; + --color-green-700: #007F45; + --color-green-800: #016538; + --color-green-900: #0A5331; + --color-green-950: #052E16; +} diff --git a/docs/components/AppFooter.vue b/docs/app/components/AppFooter.vue similarity index 78% rename from docs/components/AppFooter.vue rename to docs/app/components/AppFooter.vue index e6394522..bc9bf346 100644 --- a/docs/components/AppFooter.vue +++ b/docs/app/components/AppFooter.vue @@ -17,44 +17,50 @@ const links = [