Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Hrdtr/nuxt-appwrite
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10b99ffa67f3fd272dd5d546db97a5ba2e33501f
Choose a base ref
..
head repository: Hrdtr/nuxt-appwrite
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0bce6b98b471cb20303c4a958cce7901c244198e
Choose a head ref
Showing with 3,872 additions and 3,770 deletions.
  1. +2 −4 .github/workflows/ci.yml
  2. +0 −28 CHANGELOG.md
  3. +1 −9 README.md
  4. +0 −1 eslint.config.mjs
  5. +15 −15 package.json
  6. +0 −1 playground/nuxt.config.ts
  7. +3,851 −3,700 pnpm-lock.yaml
  8. +0 −3 src/module.ts
  9. +1 −6 src/runtime/plugin.ts
  10. +0 −1 test/fixtures/basic/nuxt.config.ts
  11. +2 −2 tsconfig.json
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -13,13 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 20
cache: "pnpm"
# See: [actions/setup-node/issues/1222](https://github.com/actions/setup-node/issues/1222)
- run: npm i -g --force corepack && corepack enable
- run: pnpm install && pnpm dev:prepare
- run: pnpm lint
- run: pnpm typecheck
28 changes: 0 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,34 +2,6 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## v1.2.0

[compare changes](https://github.com/Hrdtr/nuxt-appwrite/compare/v1.1.1...v1.2.0)

### 🚀 Enhancements

- Add locale configuration support for Appwrite client ([902d2db](https://github.com/Hrdtr/nuxt-appwrite/commit/902d2db))

### 📖 Documentation

- Add locale configuration option to README ([384de25](https://github.com/Hrdtr/nuxt-appwrite/commit/384de25))

### 🏡 Chore

- **release:** V1.1.1 ([e156dd7](https://github.com/Hrdtr/nuxt-appwrite/commit/e156dd7))
- Deps update ([a96302d](https://github.com/Hrdtr/nuxt-appwrite/commit/a96302d))

### 🤖 CI

- Force reinstall corepack on action workflows ([17a23f1](https://github.com/Hrdtr/nuxt-appwrite/commit/17a23f1))
- Use pnpm setup action ([dd09633](https://github.com/Hrdtr/nuxt-appwrite/commit/dd09633))

### ❤️ Contributors

- Herdi Tr ([@Hrdtr](https://github.com/Hrdtr))
- Rtrap95 ([@rtrap95](https://github.com/rtrap95))
- Herdi Tr. ([@Hrdtr](https://github.com/Hrdtr))

## v1.1.1

[compare changes](https://github.com/Hrdtr/nuxt-appwrite/compare/v1.1.0...v1.1.1)
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -50,13 +50,6 @@ Appwrite API endpoint (Console -> Project -> Setting -> API Endpoint)

Appwrite project ID (Console -> Project -> Setting -> Project ID)

### Locale - `locale` - optional

- type: `String`
- default: `en`

Appwrite locale

### Full Example

```js
@@ -67,7 +60,6 @@ export default {
appwrite: {
endpoint: 'https://cloud.appwrite.io/v1',
project: 'nuxt-playground',
locale: 'en'
}
}
```
@@ -116,4 +108,4 @@ Copyright (c) Herdi Tr. <iam@icm.hrdtr.dev>
[codecov-href]: https://codecov.io/gh/Hrdtr/nuxt-appwrite

[license-src]: https://img.shields.io/npm/l/nuxt-appwrite.svg
[license-href]: https://npmjs.com/package/nuxt-appwrite
[license-href]: https://npmjs.com/package/nuxt-appwrite
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -13,6 +13,5 @@ export default createConfigForNuxt({
}).append({
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
'nuxt/nuxt-config-keys-order': 'off',
},
})
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-appwrite",
"version": "1.2.0",
"version": "1.1.1",
"description": "Easily connect Appwrite to Nuxt",
"license": "MIT",
"author": {
@@ -37,23 +37,23 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@nuxt/kit": "^3.15.4",
"appwrite": "^17.0.0"
"@nuxt/kit": "^3.13.0",
"appwrite": "^15.0.0"
},
"devDependencies": {
"@nuxt/eslint": "^1.1.0",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.15.4",
"@nuxt/test-utils": "^3.17.0",
"changelogen": "^0.6.0",
"eslint": "^9.21.0",
"nuxt": "^3.15.4",
"release-it": "^18.1.2",
"typescript": "~5.8.0",
"vitest": "^3.0.7",
"vue-tsc": "^2.2.4"
"@nuxt/eslint": "^0.5.3",
"@nuxt/module-builder": "^0.8.3",
"@nuxt/schema": "^3.13.0",
"@nuxt/test-utils": "^3.14.1",
"changelogen": "^0.5.5",
"eslint": "^9.9.1",
"nuxt": "^3.13.0",
"release-it": "^17.6.0",
"typescript": "~5.7.0",
"vitest": "^2.0.5",
"vue-tsc": "^2.0.29"
},
"packageManager": "pnpm@9.15.6",
"packageManager": "pnpm@9.6.0",
"publishConfig": {
"access": "public"
}
1 change: 0 additions & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default defineNuxtConfig({
devtools: { enabled: true },
compatibilityDate: '2025-02-27',
modules: ['../src/module'],
appwrite: {
project: 'nuxt-playground',
7,551 changes: 3,851 additions & 3,700 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -45,9 +45,6 @@ export default defineNuxtModule<ModuleOptions>({
nuxt.hook('listen', () => {
console.info(`Appwrite Endpoint: ${options.endpoint}`)
console.info(`Appwrite Project: ${options.project}`)
if (options.locale) {
console.info(`Appwrite Locale: ${options.locale}`)
}
})
},
})
7 changes: 1 addition & 6 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@ import { defineNuxtPlugin } from '#app'
export type AppwriteConfig = {
endpoint: string
project: string
locale?: string
}

export type Appwrite = {
@@ -45,18 +44,14 @@ export type Appwrite = {
}

export default defineNuxtPlugin((nuxtApp) => {
const moduleOptions = nuxtApp.$config.public.appwrite as AppwriteConfig
const moduleOptions = nuxtApp.$config.public.appwrite
const config: AppwriteConfig = {
endpoint: moduleOptions.endpoint || 'https://cloud.appwrite.io/v1',
project: moduleOptions.project,
locale: moduleOptions.locale,
}
const client = new Client()
client.setEndpoint(config.endpoint)
client.setProject(config.project)
if (config.locale) {
client.setLocale(config.locale)
}

return {
provide: {
1 change: 0 additions & 1 deletion test/fixtures/basic/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@ import type { NuxtModule } from '@nuxt/schema'
import type { ModuleOptions } from '../../../src/module'
import nuxtAppwrite from '../../../src/module'

// @ts-expect-error auto-imported
export default defineNuxtConfig({
modules: [nuxtAppwrite as NuxtModule<Partial<ModuleOptions>>],
appwrite: {
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "./playground/.nuxt/tsconfig.json",
"extends": "./.nuxt/tsconfig.json",
"exclude": [
"dist",
"node_modules",
"playground",
]
}
}