Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feat/mpu
Browse files Browse the repository at this point in the history
  • Loading branch information
Teages committed Apr 26, 2024
2 parents 08a464a + 5b12091 commit 6609fac
Show file tree
Hide file tree
Showing 67 changed files with 2,122 additions and 879 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Dependencies
node_modules

# Logs
*.log*

# Temp directories
.temp
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.experimental.useFlatConfig": true,
}
162 changes: 162 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,168 @@
# Changelog


## v0.5.13

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.12...v0.5.13)

### 🚀 Enhancements

- Add local cache for auth with NuxtHub admin ([27174a8](https://github.com/nuxt-hub/core/commit/27174a8))

### 🏡 Chore

- Lint fix ([da07786](https://github.com/nuxt-hub/core/commit/da07786))

### ❤️ Contributors

- Sébastien Chopin ([@Atinux](http://github.com/Atinux))

## v0.5.12

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.11...v0.5.12)

### 🚀 Enhancements

- Send pagesUrl in build done hook api ([#85](https://github.com/nuxt-hub/core/pull/85))

### 📖 Documentation

- Add link to Wrangler documentation ([#83](https://github.com/nuxt-hub/core/pull/83))

### 🏡 Chore

- Update dependencies ([2f40568](https://github.com/nuxt-hub/core/commit/2f40568))

### ❤️ Contributors

- Sébastien Chopin ([@Atinux](http://github.com/Atinux))
- Arash ([@arashsheyda](http://github.com/arashsheyda))
- Farnabaz ([@farnabaz](http://github.com/farnabaz))

## v0.5.11

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.10...v0.5.11)

### 🩹 Fixes

- **cache:** Avoid destructuring if null ([7565284](https://github.com/nuxt-hub/core/commit/7565284))

### ❤️ Contributors

- Sébastien Chopin ([@Atinux](http://github.com/Atinux))

## v0.5.10

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.9...v0.5.10)

### 🚀 Enhancements

- New api route to clear all entries of specific base ([#80](https://github.com/nuxt-hub/core/pull/80))

### 📖 Documentation

- Fix broken link in remote section ([#78](https://github.com/nuxt-hub/core/pull/78))

### ❤️ Contributors

- Zac Webb ([@zacwebb](http://github.com/zacwebb))
- Farnabaz ([@farnabaz](http://github.com/farnabaz))

## v0.5.9

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.8...v0.5.9)

### 🩹 Fixes

- Add missing import ([ada8e5b](https://github.com/nuxt-hub/core/commit/ada8e5b))

### ❤️ Contributors

- Sébastien Chopin ([@Atinux](http://github.com/Atinux))

## v0.5.8

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.7...v0.5.8)

### 🚀 Enhancements

- Add batchDel for cache proxy ([e85719f](https://github.com/nuxt-hub/core/commit/e85719f))

### ❤️ Contributors

- Sébastien Chopin ([@Atinux](http://github.com/Atinux))

## v0.5.7

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.6...v0.5.7)

### 🩹 Fixes

- Return correct group keys in cache api index ([#75](https://github.com/nuxt-hub/core/pull/75))
- Add cache to manifest ([#77](https://github.com/nuxt-hub/core/pull/77))

### 🏡 Chore

- Move to eslint9 ([#76](https://github.com/nuxt-hub/core/pull/76))

### ❤️ Contributors

- Sébastien Chopin ([@Atinux](http://github.com/Atinux))
- Gerben Mulder <github.undergo381@passmail.net>
- Farnabaz ([@farnabaz](http://github.com/farnabaz))

## v0.5.6

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.5...v0.5.6)

### 🚀 Enhancements

- Cache management ([#73](https://github.com/nuxt-hub/core/pull/73))
- Add server cache tab to devtool ([#74](https://github.com/nuxt-hub/core/pull/74))

### 🩹 Fixes

- Disable remote storage within CF Pages CI ([02f65e5](https://github.com/nuxt-hub/core/commit/02f65e5))

### 📖 Documentation

- Update 2.drizzle.md, typo error : useDb instead of useDrizzle ([#72](https://github.com/nuxt-hub/core/pull/72))
- Escape special chars ([d94892d](https://github.com/nuxt-hub/core/commit/d94892d))

### 🏡 Chore

- Update pnpm-lock.yaml ([a194392](https://github.com/nuxt-hub/core/commit/a194392))
- Update lock ([2a7fab1](https://github.com/nuxt-hub/core/commit/2a7fab1))

### ❤️ Contributors

- Sébastien Chopin ([@Atinux](http://github.com/Atinux))
- Farnabaz ([@farnabaz](http://github.com/farnabaz))
- Samuel LEFEVRE ([@samulefevre](http://github.com/samulefevre))

## v0.5.5

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.4...v0.5.5)

### 🩹 Fixes

- **remote-storage:** Raise error if storage is not enabled in the deployment ([#68](https://github.com/nuxt-hub/core/pull/68))
- Fallback to custom placeholder when openAPI is disabled ([#70](https://github.com/nuxt-hub/core/pull/70))

### 📖 Documentation

- Simplify migrations using drizzle ([f8b3ff7](https://github.com/nuxt-hub/core/commit/f8b3ff7))
- Add Anthony Fu testimonial ([cb47380](https://github.com/nuxt-hub/core/commit/cb47380))

### 🏡 Chore

- Removed unused dependencies ([d7de233](https://github.com/nuxt-hub/core/commit/d7de233))

### ❤️ Contributors

- Sébastien Chopin ([@Atinux](http://github.com/Atinux))
- Farnabaz ([@farnabaz](http://github.com/farnabaz))

## v0.5.4

[compare changes](https://github.com/nuxt-hub/core/compare/v0.5.3...v0.5.4)
Expand Down
6 changes: 3 additions & 3 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineAppConfig({
}
},
seo: {
siteName: 'NuxtHub',
siteName: 'NuxtHub'
},
header: {
links: [{
Expand All @@ -34,12 +34,12 @@ export default defineAppConfig({
icon: 'i-heroicons-star',
label: 'Star on GitHub',
to: 'https://github.com/nuxt-hub/core',
target: '_blank',
target: '_blank'
}, {
icon: 'i-simple-icons-nuxtdotjs',
label: 'NuxtHub Admin',
to: 'https://admin.hub.nuxt.com',
target: '_blank',
target: '_blank'
}]
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/components/UInputCopy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
defineProps({
value: {
type: String,
required: true,
required: true
},
size: {
type: String,
Expand Down
5 changes: 2 additions & 3 deletions docs/components/content/Alert.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

<script setup lang="ts">
import type uiColors from '#ui-colors'
const props = defineProps({
title: { type: String, required: true},
title: { type: String, required: true },
icon: { type: String, default: '' },
color: { type: String as PropType<(typeof uiColors)[number]>, required: true },
to: { type: String, default: '' },
to: { type: String, default: '' }
})
const target = computed(() => (props.to?.startsWith('https://') ? '_blank' : ''))
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/1.getting-started/2.installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ npx nuxi@latest module add hub

This command will install `@nuxthub/core` as dependency and add it to your `modules` section of your `nuxt.config`.

2. Install `wrangler` development dependency to your project:
2. Install [wrangler](https://developers.cloudflare.com/workers/wrangler/) development dependency to your project:

::code-group

Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/1.getting-started/4.remote-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default defineNuxtConfig({
```

::important
You should not use the `remote` option in your `nuxt.config` file in production if you are deploying your project to NuxtHub or Cloudflare Pages. Use it in production only when you are [connecting from other Nuxt projects](#other-nuxt-projects).
You should not use the `remote` option in your `nuxt.config` file in production if you are deploying your project to NuxtHub or Cloudflare Pages. Use it in production only when you are [connecting from external Nuxt projects](#external-nuxt-projects).
::

::note
Expand Down
12 changes: 9 additions & 3 deletions docs/content/docs/2.storage/1.database.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
---
title: Database
description: How to create a database and store entries with NuxtHub.
description: Access a SQL database in your Nuxt application to store and retrieve relational data.
---

NuxtHub Database is a layer on top of [Cloudflare D1](https://developers.cloudflare.com/d1), a serverless SQLite databases.
::note
NuxtHub Database is a layer on top of [Cloudflare D1](https://developers.cloudflare.com/d1), a serverless SQL database.
::

## Getting Started

Enable the database in your NuxtHub project by adding the `database` property to the `hub` object in your `nuxt.config.ts` file.

```ts [nuxt.config.ts]
defineNuxtConfig({
export default defineNuxtConfig({
hub: {
database: true
}
})
```

::tip
Checkout our [Drizzle ORM recipe](/docs/recipes/drizzle) to get started with the database by providing a schema and migrations.
::

## `hubDatabase()`

Server composable that returns a [D1 database client](https://developers.cloudflare.com/d1/build-databases/query-databases/).
Expand Down
6 changes: 4 additions & 2 deletions docs/content/docs/2.storage/2.kv.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
---
title: KV
description: How to use key-value data storage with NuxtHub.
description: Add a key-value data storage to your Nuxt application.
---

::note
NuxtHub KV is a layer on top of [Cloudflare Workers KV](https://developers.cloudflare.com/kv), a global, low-latency, key-value data storage.
::

## Getting Started

Enable the key-value storage in your NuxtHub project by adding the `kv` property to the `hub` object in your `nuxt.config.ts` file.

```ts [nuxt.config.ts]
defineNuxtConfig({
export default defineNuxtConfig({
hub: {
kv: true
}
Expand Down
6 changes: 4 additions & 2 deletions docs/content/docs/2.storage/3.blob.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
---
title: Blob
description: How to store objects with NuxtHub.
description: Store and upload images, videos and other unstructured data in your Nuxt application.
---

::note
NuxtHub Blob is a layer on top of [Cloudflare R2](https://developers.cloudflare.com/r2), allowing to store large amounts of unstructured data (images, videos, etc.).
::

## Getting Started

Enable the blob storage in your NuxtHub project by adding the `blob` property to the `hub` object in your `nuxt.config.ts` file.

```ts [nuxt.config.ts]
defineNuxtConfig({
export default defineNuxtConfig({
hub: {
blob: true
}
Expand Down
34 changes: 34 additions & 0 deletions docs/content/docs/3.server/1.logs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: Server Logs
navigation.title: Logs
description: Access real-time logs of your deployed Nuxt application.
---

Access to live stream of your server logs from the deployed server. Useful to monitor or debug your Nuxt application.

## NuxtHub Admin

When you have a successful deployment, you can access to the logs of the deployment in the [NuxtHub Admin](https://admin.hub.nuxt.com/).

Logs are available under the `Server > Logs` section of your project page. You can also access to the logs of each successful deployment in the `Deployments` section.


## NuxtHub CLI

Using the NuxtHub CLI, you can access to the logs of both `production` and `preview` deployments.

### Production environment

NuxtHub will automatically detect the canonical deployment of your project and stream the logs of that deployment in the CLI.

```bash
nuxthub logs --production
```

### Preview environment

In preview environment, NuxtHub will stream the logs of the latest successful deployment in the CLI.

```bash
nuxthub logs --preview
```
Loading

0 comments on commit 6609fac

Please sign in to comment.