Skip to content

Commit

Permalink
refactor: rename to nitro-cloudflare-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 22, 2024
1 parent 1a16886 commit c389c42
Show file tree
Hide file tree
Showing 8 changed files with 5,218 additions and 2,229 deletions.
53 changes: 25 additions & 28 deletions CHANGELOG.md
@@ -1,106 +1,103 @@
# Changelog


## v0.0.6

[compare changes](https://github.com/pi0/nitro-cloudflare-bindings/compare/v0.0.5...v0.0.6)
[compare changes](https://github.com/pi0/nitro-cloudflare-dev/compare/v0.0.5...v0.0.6)

### 🩹 Fixes

- Make sure `runtime/` is transpiled ([77156bb](https://github.com/pi0/nitro-cloudflare-bindings/commit/77156bb))
- Make sure `runtime/` is transpiled ([77156bb](https://github.com/pi0/nitro-cloudflare-dev/commit/77156bb))

### 🏡 Chore

- **release:** V0.0.5 ([7277bdd](https://github.com/pi0/nitro-cloudflare-bindings/commit/7277bdd))
- Update lockfile ([e68432b](https://github.com/pi0/nitro-cloudflare-bindings/commit/e68432b))
- Update readme ([fe75b7f](https://github.com/pi0/nitro-cloudflare-bindings/commit/fe75b7f))
- Remove prepare script from examples ([35652b2](https://github.com/pi0/nitro-cloudflare-bindings/commit/35652b2))
- Update gitignore ([4b03f4b](https://github.com/pi0/nitro-cloudflare-bindings/commit/4b03f4b))
- **release:** V0.0.5 ([7277bdd](https://github.com/pi0/nitro-cloudflare-dev/commit/7277bdd))
- Update lockfile ([e68432b](https://github.com/pi0/nitro-cloudflare-dev/commit/e68432b))
- Update readme ([fe75b7f](https://github.com/pi0/nitro-cloudflare-dev/commit/fe75b7f))
- Remove prepare script from examples ([35652b2](https://github.com/pi0/nitro-cloudflare-dev/commit/35652b2))
- Update gitignore ([4b03f4b](https://github.com/pi0/nitro-cloudflare-dev/commit/4b03f4b))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))

## v0.0.5

[compare changes](https://github.com/pi0/nitro-cloudflare-bindings/compare/v0.0.4...v0.0.5)
[compare changes](https://github.com/pi0/nitro-cloudflare-dev/compare/v0.0.4...v0.0.5)

### 🏡 Chore

- Update package.json ([249d5a6](https://github.com/pi0/nitro-cloudflare-bindings/commit/249d5a6))
- Update package.json ([249d5a6](https://github.com/pi0/nitro-cloudflare-dev/commit/249d5a6))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))

## v0.0.4

[compare changes](https://github.com/pi0/nitro-cloudflare-bindings/compare/v0.0.3...v0.0.4)
[compare changes](https://github.com/pi0/nitro-cloudflare-dev/compare/v0.0.3...v0.0.4)

### 🩹 Fixes

- Explicit import from `#imports` ([dfcfb53](https://github.com/pi0/nitro-cloudflare-bindings/commit/dfcfb53))
- Explicit import from `#imports` ([dfcfb53](https://github.com/pi0/nitro-cloudflare-dev/commit/dfcfb53))

### 💅 Refactors

- Graceful error when cannot get bindings ([762f747](https://github.com/pi0/nitro-cloudflare-bindings/commit/762f747))
- Compact message for added to .gitignore ([67e1828](https://github.com/pi0/nitro-cloudflare-bindings/commit/67e1828))
- Graceful error when cannot get bindings ([762f747](https://github.com/pi0/nitro-cloudflare-dev/commit/762f747))
- Compact message for added to .gitignore ([67e1828](https://github.com/pi0/nitro-cloudflare-dev/commit/67e1828))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))

## v0.0.3

[compare changes](https://github.com/pi0/nitro-cloudflare-bindings/compare/v0.0.2...v0.0.3)
[compare changes](https://github.com/pi0/nitro-cloudflare-dev/compare/v0.0.2...v0.0.3)

### 📦 Build

- Remove `prepare` -_- ([3996e25](https://github.com/pi0/nitro-cloudflare-bindings/commit/3996e25))
- Remove `prepare` -\_- ([3996e25](https://github.com/pi0/nitro-cloudflare-dev/commit/3996e25))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))

## v0.0.2

[compare changes](https://github.com/pi0/nitro-cloudflare-bindings/compare/v0.0.1...v0.0.2)
[compare changes](https://github.com/pi0/nitro-cloudflare-dev/compare/v0.0.1...v0.0.2)

### 🚀 Enhancements

- Automatically add `.wrangler/state/v3` to `.gitignore` ([5bf2c5b](https://github.com/pi0/nitro-cloudflare-bindings/commit/5bf2c5b))
- Automatically add `.wrangler/state/v3` to `.gitignore` ([5bf2c5b](https://github.com/pi0/nitro-cloudflare-dev/commit/5bf2c5b))

### 🩹 Fixes

- Handle when `wrangler.toml` is not found ([0340c1d](https://github.com/pi0/nitro-cloudflare-bindings/commit/0340c1d))
- Handle when `wrangler.toml` is not found ([0340c1d](https://github.com/pi0/nitro-cloudflare-dev/commit/0340c1d))

### 💅 Refactors

- Default persist dir to `.wrangler/state/v3` ([88d91ff](https://github.com/pi0/nitro-cloudflare-bindings/commit/88d91ff))
- Default persist dir to `.wrangler/state/v3` ([88d91ff](https://github.com/pi0/nitro-cloudflare-dev/commit/88d91ff))

### 📦 Build

- Run `build` before release ([d3f32d2](https://github.com/pi0/nitro-cloudflare-bindings/commit/d3f32d2))
- Run `build` before release ([d3f32d2](https://github.com/pi0/nitro-cloudflare-dev/commit/d3f32d2))

### 🏡 Chore

- Add renovate config ([f18fc5c](https://github.com/pi0/nitro-cloudflare-bindings/commit/f18fc5c))
- Update readme ([e5cfcf4](https://github.com/pi0/nitro-cloudflare-bindings/commit/e5cfcf4))
- Add renovate config ([f18fc5c](https://github.com/pi0/nitro-cloudflare-dev/commit/f18fc5c))
- Update readme ([e5cfcf4](https://github.com/pi0/nitro-cloudflare-dev/commit/e5cfcf4))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))

## v0.0.1


### 🏡 Chore

- Update readme ([cf4f84d](https://github.com/pi0/nitro-cloudflare-bindings/commit/cf4f84d))
- Lint ([817bd6c](https://github.com/pi0/nitro-cloudflare-bindings/commit/817bd6c))
- Add ci scripts ([fc58696](https://github.com/pi0/nitro-cloudflare-bindings/commit/fc58696))
- Update readme ([cf4f84d](https://github.com/pi0/nitro-cloudflare-dev/commit/cf4f84d))
- Lint ([817bd6c](https://github.com/pi0/nitro-cloudflare-dev/commit/817bd6c))
- Add ci scripts ([fc58696](https://github.com/pi0/nitro-cloudflare-dev/commit/fc58696))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))

8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -7,24 +7,24 @@ This proof of concept module enables access to the Cloudflare runtime bindings i
## Usage

First, install `nitro-cloudflare-bindings` and `wrangler` packages as a dev dependency: ([unjs/nypm](https://nypm.unjs.io) will automatically detect your package manager!)
First, install `nitro-cloudflare-dev` and `wrangler` packages as a dev dependency: ([unjs/nypm](https://nypm.unjs.io) will automatically detect your package manager!)

```sh
npx nypm@latest add -D wrangler@beta nitro-cloudflare-bindings
npx nypm@latest add -D wrangler@beta nitro-cloudflare-dev
```

For **Nuxt** update `nuxt.config.ts`:

```js
export default defineNuxtConfig({
modules: ["nitro-cloudflare-bindings"],
modules: ["nitro-cloudflare-dev"],
});
```

For **Nitro** update `nitro.config.ts`:

```js
import nitroCloudflareBindings from "nitro-cloudflare-bindings";
import nitroCloudflareBindings from "nitro-cloudflare-dev";

export default defineNitroConfig({
modules: [nitroCloudflareBindings],
Expand Down
2 changes: 1 addition & 1 deletion examples/nitro/nitro.config.ts
@@ -1,4 +1,4 @@
import nitroCloudflareBindings from "nitro-cloudflare-bindings";
import nitroCloudflareBindings from "nitro-cloudflare-dev";

// https://nitro.unjs.io/config
export default defineNitroConfig({
Expand Down
2 changes: 1 addition & 1 deletion examples/nitro/package.json
Expand Up @@ -7,6 +7,6 @@
},
"devDependencies": {
"nitropack": "latest",
"nitro-cloudflare-bindings": "latest"
"nitro-cloudflare-dev": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/nuxt/nuxt.config.ts
@@ -1,4 +1,4 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ["nitro-cloudflare-bindings"],
modules: ["nitro-cloudflare-dev"],
});
2 changes: 1 addition & 1 deletion examples/nuxt/package.json
Expand Up @@ -12,6 +12,6 @@
"nuxt": "^3.9.3",
"vue": "^3.4.14",
"vue-router": "^4.2.5",
"nitro-cloudflare-bindings": "latest"
"nitro-cloudflare-dev": "latest"
}
}
8 changes: 4 additions & 4 deletions package.json
@@ -1,8 +1,8 @@
{
"name": "nitro-cloudflare-bindings",
"name": "nitro-cloudflare-dev",
"version": "0.0.6",
"description": "POC module to enable access to the Cloudflare runtime bindings in development server of Nitro and Nuxt",
"repository": "pi0/nitro-cloudflare-bindings",
"repository": "pi0/nitro-cloudflare-dev",
"license": "MIT",
"sideEffects": false,
"type": "module",
Expand Down Expand Up @@ -33,7 +33,7 @@
"test:types": "tsc --noEmit --skipLibCheck"
},
"resolutions": {
"nitro-cloudflare-bindings": "workspace:*"
"nitro-cloudflare-dev": "workspace:*"
},
"dependencies": {
"consola": "^3.2.3",
Expand All @@ -55,4 +55,4 @@
"wrangler": "0.0.0-fa09f4a2"
},
"packageManager": "pnpm@8.10.0"
}
}

0 comments on commit c389c42

Please sign in to comment.