Skip to content

Commit

Permalink
chore: package updates
Browse files Browse the repository at this point in the history
  • Loading branch information
theogravity committed Jan 21, 2025
1 parent 40a597a commit db4f0ac
Show file tree
Hide file tree
Showing 12 changed files with 487 additions and 345 deletions.
5 changes: 0 additions & 5 deletions .husky/commit-msg

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# fastify-starter-turbo-monorepo

## Jan-20-2025

- Package updates.

## Jan-1-2025

- Package updates.
Expand Down
30 changes: 15 additions & 15 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,46 @@
"verify-types": "tsc --project tsconfig.json --noEmit"
},
"dependencies": {
"@dotenvx/dotenvx": "1.32.0",
"@fastify/cors": "10.0.1",
"@fastify/jwt": "9.0.2",
"@fastify/swagger": "9.4.0",
"@fastify/swagger-ui": "5.2.0",
"@dotenvx/dotenvx": "1.33.0",
"@fastify/cors": "10.0.2",
"@fastify/jwt": "9.0.3",
"@fastify/swagger": "9.4.2",
"@fastify/swagger-ui": "5.2.1",
"@fastify/type-provider-typebox": "5.1.0",
"@internal/backend-errors": "workspace:*",
"@loglayer/transport-pino": "1.0.0",
"@sinclair/typebox": "0.33.22",
"@loglayer/transport-pino": "1.0.12",
"@sinclair/typebox": "0.34.14",
"ajv-formats": "3.0.1",
"asyncforge": "0.5.0",
"bcrypt": "5.1.1",
"chalk": "5.4.1",
"dotenv": "16.4.7",
"env-var": "7.5.0",
"fastify": "5.2.0",
"fastify": "5.2.1",
"fastify-cli": "7.3.0",
"fastify-plugin": "5.0.1",
"kysely": "0.27.5",
"loglayer": "5.0.0",
"loglayer": "5.3.0",
"nanoid": "5.0.9",
"pg": "8.13.1",
"pino": "9.6.0",
"pino-pretty": "13.0.0",
"serialize-error": "11.0.3",
"serialize-error": "12.0.0",
"tsc-module-loader": "0.0.1",
"uuid": "11.0.3",
"uuid": "11.0.5",
"yaml": "2.7.0"
},
"devDependencies": {
"@faker-js/faker": "9.3.0",
"@faker-js/faker": "9.4.0",
"@internal/tsconfig": "workspace:*",
"@testcontainers/postgresql": "10.16.0",
"@turbo/gen": "2.3.3",
"@types/node": "22.10.3",
"@types/node": "22.10.7",
"@types/pg": "8.11.10",
"kysely-ctl": "0.10.1",
"ts-node": "10.9.2",
"tsx": "4.19.2",
"typescript": "5.7.2",
"vitest": "2.1.8"
"typescript": "5.7.3",
"vitest": "3.0.2"
}
}
26 changes: 26 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pre-commit:
commands:
"lint and format files":
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: pnpm run biome:check {staged_files} && pnpm run biome:format {staged_files} && pnpm run biome:lint {staged_files}
stage_fixed: true
tags:
- lint
- staged-lint
exclude:
- "*.gen.ts"
"check and format package.json files":
glob: "**/package.json"
run: pnpm run syncpack:format && pnpm run syncpack:lint
stage_fixed: true
tags:
- package-lint
"verify typescript types":
glob: "*.{ts,mjs,d.cts,d.mts,tsx}"
run: pnpm run verify-types
tags:
- verify-types
"update lockfiles":
glob: "**/package.json"
run: pnpm install
stage_fixed: true
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"syncpack:lint": "syncpack lint",
"release": "changeset publish",
"version-packages": "changeset version",
"prepare": "husky",
"verify-types": "turbo run verify-types --continue --"
},
"devDependencies": {
Expand All @@ -35,11 +34,11 @@
"@commitlint/cli": "19.6.1",
"@commitlint/config-conventional": "19.6.0",
"@internal/tsconfig": "workspace:*",
"@types/node": "22.10.3",
"husky": "9.1.7",
"@types/node": "22.10.7",
"lefthook": "1.10.9",
"syncpack": "13.0.0",
"turbo": "2.3.3",
"typescript": "5.7.2"
"typescript": "5.7.3"
},
"engineStrict": true,
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/backend-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@hey-api/openapi-ts": "0.59.1",
"@hey-api/client-fetch": "0.5.2",
"@hey-api/openapi-ts": "0.62.2",
"@hey-api/client-fetch": "0.7.0",
"@internal/tsconfig": "workspace:*",
"@internal/backend": "workspace:*",
"hash-runner": "2.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/backend-client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts
export * from './sdk.gen';
export * from './types.gen';
export * from './types.gen';
export * from './sdk.gen';
14 changes: 9 additions & 5 deletions packages/backend-client/src/sdk.gen.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
// This file is auto-generated by @hey-api/openapi-ts

import { createClient, createConfig, type OptionsLegacyParser } from '@hey-api/client-fetch';
import type { CreateEMailUserData, CreateEMailUserError, CreateEMailUserResponse2 } from './types.gen';
import { createClient, createConfig, type Options } from '@hey-api/client-fetch';
import type { CreateEMailUserData, CreateEMailUserResponse2 } from './types.gen';

export const client = createClient(createConfig());

/**
* Create an e-mail-based account
*/
export const createEMailUser = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<CreateEMailUserData, ThrowOnError>) => {
return (options?.client ?? client).post<CreateEMailUserResponse2, CreateEMailUserError, ThrowOnError>({
export const createEMailUser = <ThrowOnError extends boolean = false>(options?: Options<CreateEMailUserData, ThrowOnError>) => {
return (options?.client ?? client).post<CreateEMailUserResponse2, unknown, ThrowOnError>({
url: '/users/email',
...options,
url: '/users/email'
headers: {
'Content-Type': 'application/json',
...options?.headers
}
});
};
45 changes: 24 additions & 21 deletions packages/backend-client/src/types.gen.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
// This file is auto-generated by @hey-api/openapi-ts

export type CreateEMailUserRequest = {
givenName: string;
familyName: string;
email: string;
password: string;
};

export type CreateEMailUserResponse = {
user: User;
provider: UserProvider;
};
/**
* The type of the auth provider
*/
export type UserProviderType = 'EMail';

export type User = {
/**
Expand Down Expand Up @@ -42,20 +35,30 @@ export type UserProvider = {
accountId: string;
};

/**
* The type of the auth provider
*/
export type providerType = 'EMail';
export type CreateEMailUserRequest = {
givenName: string;
familyName: string;
email: string;
password: string;
};

/**
* The type of the auth provider
*/
export type UserProviderType = 'EMail';
export type CreateEMailUserResponse = {
user: User;
provider: UserProvider;
};

export type CreateEMailUserData = {
body?: CreateEMailUserRequest;
path?: never;
query?: never;
url: '/users/email';
};

export type CreateEMailUserResponse2 = (CreateEMailUserResponse);
export type CreateEMailUserResponses = {
/**
* Default Response
*/
200: CreateEMailUserResponse;
};

export type CreateEMailUserError = unknown;
export type CreateEMailUserResponse2 = CreateEMailUserResponses[keyof CreateEMailUserResponses];
2 changes: 1 addition & 1 deletion packages/backend-errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"clean-stack": "5.2.0",
"nanoid": "5.0.9",
"serialize-error": "11.0.3",
"serialize-error": "12.0.0",
"sprintf-js": "1.1.3"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit db4f0ac

Please sign in to comment.