Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version v0.10.3 #1701

Merged
merged 48 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
88fea08
chore(deps): update dependency tailwind-merge to v2
renovate[bot] Oct 29, 2023
6e8469c
Merge pull request #1643 from undb-xyz/main
nichenqin Oct 30, 2023
491c4b1
Merge pull request #1644 from undb-xyz/renovate/tailwind-merge-2.x
nichenqin Oct 30, 2023
ff9e274
chore(deps): update dependency bits-ui to ^0.9.0
renovate[bot] Oct 30, 2023
5dede36
Merge pull request #1646 from undb-xyz/renovate/bits-ui-0.x
nichenqin Oct 31, 2023
a30c52f
chore(deps): update dependency lucide-svelte to ^0.291.0
renovate[bot] Oct 31, 2023
db283c9
fix(deps): update dependency mongoose to v8
renovate[bot] Oct 31, 2023
c771db6
Merge pull request #1648 from undb-xyz/renovate/mongoose-8.x
nichenqin Nov 1, 2023
e2e606e
Merge pull request #1647 from undb-xyz/renovate/lucide-svelte-0.x
nichenqin Nov 1, 2023
6c4bfbd
fix(deps): update dependency p-limit to v5
renovate[bot] Nov 1, 2023
ab036d5
Merge pull request #1649 from undb-xyz/renovate/p-limit-5.x
nichenqin Nov 2, 2023
9ac31ae
fix: more specific error message for invalid api token
nichenqin Nov 2, 2023
caafd1f
Merge pull request #1650 from undb-xyz/fix/invalid-api-token
nichenqin Nov 2, 2023
4cb6a48
chore(deps): update dependency lucide-svelte to ^0.292.0
renovate[bot] Nov 3, 2023
6418ffa
Merge pull request #1651 from undb-xyz/renovate/lucide-svelte-0.x
nichenqin Nov 3, 2023
fcc4e93
chore(deps): update dependency @swc/core to v1.3.96
renovate[bot] Nov 5, 2023
1620248
Merge pull request #1652 from undb-xyz/renovate/swc-monorepo
nichenqin Nov 6, 2023
5f9b6a0
chore(deps): update dependency vite-plugin-electron to ^0.15.0
renovate[bot] Nov 6, 2023
c4d1789
Merge pull request #1654 from undb-xyz/renovate/vite-plugin-electron-0.x
nichenqin Nov 7, 2023
60c7b4d
fix(deps): update opentelemetry-js monorepo
renovate[bot] Nov 7, 2023
3efffe1
Merge pull request #1655 from undb-xyz/renovate/opentelemetry-js-mono…
nichenqin Nov 8, 2023
6fbd5b5
fix(deps): update dependency @opentelemetry/auto-instrumentations-nod…
renovate[bot] Nov 13, 2023
30bd794
Merge pull request #1658 from undb-xyz/renovate/opentelemetry-auto-in…
nichenqin Nov 14, 2023
914cc3e
chore: up
nichenqin Nov 14, 2023
c62c978
feat: support sqlite memory mode
nichenqin Nov 14, 2023
03e5f47
chore(deps): update dependency svelvet to v9
renovate[bot] Nov 16, 2023
4f178a4
fix(deps): update dependency openapi-typescript to v7.0.0-next.3
renovate[bot] Nov 19, 2023
f8a9b3d
chore(deps): update dependency svelte-jsoneditor to ^0.19.0
renovate[bot] Nov 21, 2023
62781ff
chore(deps): update swc monorepo
renovate[bot] Nov 21, 2023
8413eba
chore: upgrade dependencies
nichenqin Nov 22, 2023
81b3aa6
fix: fix test
nichenqin Nov 22, 2023
a45c421
fix(deps): update dependency openapi-typescript to v7.0.0-next.4
renovate[bot] Nov 22, 2023
9593614
chore(deps): update dependency lucide-svelte to ^0.293.0
renovate[bot] Nov 24, 2023
a8d6187
fix(deps): update dependency passport to ^0.7.0
renovate[bot] Nov 28, 2023
f35c949
chore(deps): update dependency taze to ^0.13.0
renovate[bot] Nov 30, 2023
87b22bf
fix(deps): update dependency got to v14
renovate[bot] Nov 29, 2023
619935f
fix(deps): update dependency openapi-typescript to v7.0.0-next.5
renovate[bot] Nov 29, 2023
0523169
chore(deps): update dependency @swc/core to v1.3.100
renovate[bot] Nov 30, 2023
a59b481
chore(deps): update dependency postcss-load-config to v5
renovate[bot] Dec 1, 2023
3c5d72c
chore(deps): update dependency lucide-svelte to ^0.294.0
renovate[bot] Nov 29, 2023
3ae9814
chore(deps): update dependency bits-ui to ^0.10.0
renovate[bot] Dec 4, 2023
831115d
chore(deps): update dependency electron to v28
renovate[bot] Dec 4, 2023
d13b3f8
fix(deps): update dependency p-map to v7
renovate[bot] Dec 5, 2023
8a2e880
chore(deps): update dependency bits-ui to ^0.11.0
renovate[bot] Dec 6, 2023
2067d9d
fix: typo in english translation
B4rtware Dec 16, 2023
8b4e375
chore: upgrade dependencies
nichenqin Dec 18, 2023
d3afa97
chore(deps): update dependency @swc/core to v1.3.101
renovate[bot] Dec 18, 2023
0ed63ff
Prepare release v0.10.3
web-flow Dec 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- uses: pnpm/action-setup@v2.4.0
with:
version: 8.7.6
version: 8.12.1

- name: Install dependencies
run: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-new-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8.7.6
version: 8.12.1

- name: changelogen
run: |
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ RUN bash -c 'VERSION="20.6.1" \
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
&& nvm use $VERSION && nvm alias default $VERSION'

RUN npm install -g pnpm@8.7.6
RUN npm install -g pnpm@8.12.1

RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v0.10.3

## v0.10.2

## v0.10.1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN tar -C /usr/local/bin -xzf /tmp/litestream.tar.gz
# installer
FROM node:20.6.1 AS installer

RUN npm install -g pnpm@8.7.6
RUN npm install -g pnpm@8.12.1

WORKDIR /undb

Expand Down
126 changes: 63 additions & 63 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,39 @@
"version": "0.0.0",
"dependencies": {
"@anatine/zod-nestjs": "^2.0.3",
"@anatine/zod-openapi": "^2.2.0",
"@aws-sdk/client-s3": "^3.438.0",
"@json2csv/plainjs": "^7.0.3",
"@anatine/zod-openapi": "^2.2.2",
"@aws-sdk/client-s3": "^3.474.0",
"@json2csv/plainjs": "^7.0.4",
"@liaoliaots/nestjs-redis-health": "^9.0.4",
"@mikro-orm/better-sqlite": "^5.9.0",
"@mikro-orm/core": "^5.9.0",
"@mikro-orm/migrations": "^5.9.0",
"@mikro-orm/better-sqlite": "^5.9.5",
"@mikro-orm/core": "^5.9.5",
"@mikro-orm/migrations": "^5.9.5",
"@mikro-orm/nestjs": "^5.2.2",
"@nestjs-modules/mailer": "^1.9.1",
"@nestjs/axios": "^3.0.0",
"@nestjs/common": "^10.2.7",
"@nestjs/axios": "^3.0.1",
"@nestjs/common": "^10.2.10",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.2.7",
"@nestjs/core": "^10.2.10",
"@nestjs/cqrs": "^10.2.6",
"@nestjs/jwt": "^10.1.1",
"@nestjs/mongoose": "^10.0.1",
"@nestjs/passport": "^10.0.2",
"@nestjs/platform-express": "^10.2.7",
"@nestjs/jwt": "^10.2.0",
"@nestjs/mongoose": "^10.0.2",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-express": "^10.2.10",
"@nestjs/schedule": "^4.0.0",
"@nestjs/serve-static": "^4.0.0",
"@nestjs/swagger": "^7.1.14",
"@nestjs/terminus": "^10.1.1",
"@opentelemetry/auto-instrumentations-node": "^0.39.4",
"@opentelemetry/exporter-trace-otlp-http": "^0.44.0",
"@opentelemetry/resources": "^1.17.1",
"@opentelemetry/sdk-node": "^0.44.0",
"@opentelemetry/semantic-conventions": "^1.17.1",
"@nestjs/swagger": "^7.1.17",
"@nestjs/terminus": "^10.2.0",
"@opentelemetry/auto-instrumentations-node": "^0.40.2",
"@opentelemetry/exporter-trace-otlp-http": "^0.46.0",
"@opentelemetry/resources": "^1.19.0",
"@opentelemetry/sdk-node": "^0.46.0",
"@opentelemetry/semantic-conventions": "^1.19.0",
"@temporalio/activity": "^1.8.6",
"@temporalio/client": "^1.8.6",
"@temporalio/common": "^1.8.6",
"@temporalio/worker": "^1.8.6",
"@temporalio/workflow": "^1.8.6",
"@trpc/server": "^10.43.0",
"@trpc/server": "^10.44.1",
"@undb/authz": "workspace:^",
"@undb/cache": "^0.0.0",
"@undb/core": "^0.0.0",
Expand All @@ -48,82 +48,82 @@
"@undb/template": "workspace:^",
"@undb/trpc": "^0.0.0",
"aws-sdk-v3-nest": "^0.3.0",
"axios": "^1.6.0",
"axios": "^1.6.2",
"bcrypt": "^5.1.1",
"better-sqlite3": "^9.0.0",
"better-sqlite3": "^9.2.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"compression": "^1.7.4",
"cookie-parser": "^1.4.6",
"cron": "3.1.3",
"got": "^13.0.0",
"got": "^14.0.0",
"handlebars": "^4.7.8",
"helmet": "^7.0.0",
"helmet": "^7.1.0",
"i18next": "^23.0.0",
"i18next-http-middleware": "^3.4.1",
"i18next-http-middleware": "^3.5.0",
"ioredis": "^5.3.2",
"joi": "^17.11.0",
"mongodb": "^6.2.0",
"mongoose": "^7.6.3",
"mongodb": "^6.3.0",
"mongoose": "^8.0.3",
"nestjs-cls": "^3.6.0",
"nestjs-pino": "^3.5.0",
"nodemailer": "^6.9.7",
"openapi-typescript": "7.0.0-next.2",
"openapi-typescript": "7.0.0-next.5",
"oxide.ts": "^1.1.0",
"p-limit": "^4.0.0",
"passport": "^0.6.0",
"p-limit": "^5.0.0",
"passport": "^0.7.0",
"passport-custom": "^1.1.1",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"pino-http": "^8.5.1",
"pino-pretty": "^10.2.3",
"reflect-metadata": "^0.1.13",
"pino-http": "^8.6.0",
"pino-pretty": "^10.3.0",
"reflect-metadata": "^0.2.1",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1",
"ts-pattern": "^5.0.5",
"ufo": "^1.3.1",
"unstorage": "^1.9.0",
"ts-pattern": "^5.0.6",
"ufo": "^1.3.2",
"unstorage": "^1.10.1",
"uuid": "^9.0.1",
"xlsx": "^0.18.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@nestjs/cli": "^10.2.0",
"@nestjs/schematics": "^10.0.2",
"@nestjs/testing": "^10.2.7",
"@swc/cli": "^0.1.62",
"@swc/core": "1.3.95",
"@types/bcrypt": "^5.0.1",
"@types/compression": "^1.7.4",
"@types/cookie-parser": "^1.4.5",
"@nestjs/cli": "^10.2.1",
"@nestjs/schematics": "^10.0.3",
"@nestjs/testing": "^10.2.10",
"@swc/cli": "^0.1.63",
"@swc/core": "1.3.101",
"@types/bcrypt": "^5.0.2",
"@types/compression": "^1.7.5",
"@types/cookie-parser": "^1.4.6",
"@types/cron": "^2.4.0",
"@types/express": "^4.17.20",
"@types/multer": "^1.4.9",
"@types/node": "^20.8.9",
"@types/nodemailer": "^6.4.13",
"@types/passport": "^1.0.14",
"@types/passport-jwt": "^3.0.12",
"@types/passport-local": "^1.0.37",
"@types/supertest": "^2.0.15",
"@types/uuid": "^9.0.6",
"@types/express": "^4.17.21",
"@types/multer": "^1.4.11",
"@types/node": "^20.10.5",
"@types/nodemailer": "^6.4.14",
"@types/passport": "^1.0.16",
"@types/passport-jwt": "^3.0.13",
"@types/passport-local": "^1.0.38",
"@types/supertest": "^2.0.16",
"@types/uuid": "^9.0.7",
"@undb/eslint-config": "^0.0.0",
"@vitest/coverage-c8": "^0.33.0",
"eslint": "^8.52.0",
"eslint": "^8.56.0",
"esm": "^3.2.25",
"express": "^4.18.2",
"nodemon": "^3.0.1",
"nodemon": "^3.0.2",
"npm-run-all": "^4.1.5",
"openapi3-ts": "^4.1.2",
"supertest": "^6.3.3",
"ts-loader": "^9.5.0",
"ts-node": "^10.9.1",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig": "^0.0.0",
"tsconfig-paths": "^4.2.0",
"type-fest": "^4.6.0",
"typescript": "^5.2.2",
"unplugin-swc": "^1.4.3",
"vite": "^4.5.0",
"vitest": "^0.34.6"
"type-fest": "^4.8.3",
"typescript": "^5.3.3",
"unplugin-swc": "^1.4.4",
"vite": "^5.0.10",
"vitest": "^1.0.4"
},
"private": true,
"scripts": {
Expand Down
8 changes: 6 additions & 2 deletions apps/backend/src/auth/api-token/api-token.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ClsService } from 'nestjs-cls'
import { Strategy } from 'passport-custom'
import { InjectApiTokenRepository } from '../../openapi/api-token/adapters/api-token.sqlite-repository.js'
import { API_TOKEN_AUTH } from './api-token.constants.js'
import { InvalidApiToken } from '../errors/invalid-api-token.error.js'

@Injectable()
export class ApiTokenStrategy extends PassportStrategy(Strategy, API_TOKEN_AUTH) {
Expand All @@ -24,9 +25,12 @@ export class ApiTokenStrategy extends PassportStrategy(Strategy, API_TOKEN_AUTH)
if (typeof token !== 'string') return

const spec = WithApiTokenToken.fromString(token)
const apiToken = (await this.repo.findOne(spec)).unwrap()
const apiToken = await this.repo.findOne(spec)
if (apiToken.isNone()) {
throw new InvalidApiToken()
}

const userId = apiToken.userId.value
const userId = apiToken.unwrap().userId.value
this.cls.set('user.userId', userId)
this.cls.set('user.isApiToken', true)

Expand Down
9 changes: 9 additions & 0 deletions apps/backend/src/auth/errors/invalid-api-token.error.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { ExceptionBase } from '@undb/domain'

export class InvalidApiToken extends ExceptionBase {
code = 'AUTH.INVALID_API_TOKEN'

constructor() {
super('invalid api token')
}
}
14 changes: 7 additions & 7 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"package:win": "vite build && electron-builder --win"
},
"devDependencies": {
"@electron/rebuild": "^3.3.0",
"@types/detect-port": "^1.3.4",
"@electron/rebuild": "^3.4.1",
"@types/detect-port": "^1.3.5",
"@undb/eslint-config": "^0.0.0",
"detect-port": "^1.5.1",
"electron": "^27.0.2",
"electron-builder": "^24.6.4",
"electron": "^28.0.0",
"electron-builder": "^24.9.1",
"electron-is-dev": "^2.0.0",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite-plugin-electron": "^0.14.1",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vite-plugin-electron": "^0.15.5",
"vite-plugin-electron-renderer": "^0.14.5",
"wait-port": "^1.1.0"
},
Expand Down
Loading