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

Bump bun and deps #146

Merged
merged 18 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
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 .env.github
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
BUN_VERSION=1.1.29
BUN_VERSION=1.1.42
MONGOMS_PREFER_GLOBAL_PATH=true
12 changes: 6 additions & 6 deletions apps/cms-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"jwt-decode": "^4.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.1",
"react-hook-form": "^7.54.2",
"react-native": "~0.72.4",
"react-native-gesture-handler": "^2.14.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
Expand All @@ -45,14 +45,14 @@
"react-native-vector-icons": "^10.0.3",
"react-native-web": "^0.19.8",
"recursive": "^0.0.2",
"typescript": "^5.5.3",
"urql": "4.1"
"typescript": "^5.7.2",
"urql": "4.2"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/client-preset": "^4.3.2"
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/client-preset": "^4.5.1"
},
"private": true
}
2 changes: 1 addition & 1 deletion apps/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"typescript": "^5.5.3"
"typescript": "^5.7.2"
}
}
8 changes: 4 additions & 4 deletions apps/supplement-stack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"@zemble/graphql": "workspace:*",
"@zemble/todo": "workspace:*",
"@zemble/utils": "workspace:*",
"graphql": "^16.9.0",
"graphql-scalars": "^1.23.0",
"mongodb": "^6.8.0",
"graphql": "^16.10.0",
"graphql-scalars": "^1.24.0",
"mongodb": "^6.12.0",
"papr": "^15.2.2"
},
"devDependencies": {
"typescript": "^5.5.3"
"typescript": "^5.7.2"
}
}
2 changes: 1 addition & 1 deletion apps/todo-app-with-auth-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"@zemble/bun": "workspace:*"
},
"devDependencies": {
"typescript": "^5.5.3"
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions apps/todo-app-with-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@urql/storage-rn": "^1.1.0",
"expo": "^49.0.21",
"expo-status-bar": "^1.7.1",
"graphql": "^16.9.0",
"graphql": "^16.10.0",
"react": "^18.3.1",
"react-native": "~0.72.4",
"react-native-web": "^0.19.8",
Expand All @@ -24,9 +24,9 @@
"@zemble/todo-ui": "workspace:*"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@types/react": "^18.3.3",
"typescript": "^5.5.3"
"typescript": "^5.7.2"
},
"private": true
}
Binary file modified bun.lockb
Binary file not shown.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"typecheck": "bunx turbo run typecheck --concurrency=100% --continue",
"codegen": "bunx turbo run codegen",
"build": "bunx turbo run build",
"prepare": "husky install",
"prepare": "husky",
"postinstall": "cp manual-patches/sofa-api/package.json node_modules/sofa-api/",
"prepush": "bunx turbo run lint test typecheck --continue",
"generate-cms-json-schema": "typescript-json-schema ./packages/cms/tsconfig.json CmsConfigFile --include ./packages/cms/types.ts --out ./packages/cms/entities-json-schema.json --required --strictNullChecks --rejectDateType",
"fix-workspace-dependencies": "find . -type f -name 'package.json' -not -path './package.json' -not -path '*/node_modules/*' -exec perl -pi -e 's/\"workspace:.*\"/\"*\"/g' {} \\;",
"changeset-release": "bun run fix-workspace-dependencies && bunx changeset publish",
"create-changeset": "bunx changeset",
"reinstall": "rm -rf node_modules/ && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + && bun install --force",
"reinstall-with-nuked-lockfile": "rm -rf node_modules/ && rm bun.lockb && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + && bun install --force",
"reinstall-with-nuked-lockfile": "rm -rf node_modules/ && rm bun.lock && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + && bun install --save-text-lockfile",
"git-nuke": "git clean -Xdf",
"clean": "find . -type f \\( -name \"*.mjs\" -o -name \"*.d.mts\" -o -name \"*.d.ts\" \\) -not -path \"./node_modules/*\" -delete",
"upgrade-interactive": "bunx npm-check-updates -ws --root --format group -i -x @expo/*,expo,expo-*,react-native,*react-native,*react-native*,react-native*,*-native*,@react-navigation/*",
Expand All @@ -32,7 +32,7 @@
"zemble",
"@zemble"
],
"packageManager": "[email protected].29",
"packageManager": "[email protected].42",
"repository": {
"type": "git",
"url": "https://github.com/kingstinct/zemble"
Expand All @@ -59,7 +59,7 @@
"@types/debug": "^4.1.12",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"bun-types": "1.1.18",
"bun-types": "1.1.42",
"check-dependency-version-consistency": "^4.1.0",
"eslint": "8",
"eslint-config-airbnb": "^19.0.4",
Expand All @@ -77,20 +77,20 @@
"eslint-plugin-react-native-a11y": "^3.3.0",
"eslint-plugin-unicorn": "^54.0.0",
"eslint-plugin-yml": "^1.14.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"pino-pretty": "^11.2.1",
"turbo": "^2.0.6",
"turbo": "^2.3.3",
"typescript-json-schema": "^0.64.0"
},
"workspaces": [
"packages/*",
"apps/*"
],
"dependencies": {
"@changesets/cli": "^2.27.7",
"debug": "^4.3.5",
"graphql": "^16.9.0",
"@changesets/cli": "^2.27.11",
"debug": "^4.4.0",
"graphql": "^16.10.0",
"madge": "^7.0.0"
}
}
12 changes: 6 additions & 6 deletions packages/anonymous-auth-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
},
"dependencies": {
"expo": "^49.0.21",
"graphql": "^16.9.0",
"graphql": "^16.10.0",
"react": "^18.3.1",
"react-native": "~0.72.4",
"@zemble/auth-expo": "workspace:*",
"@zemble/urql-expo": "workspace:*",
"urql": "4.1"
"urql": "4.2"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/client-preset": "^4.3.2",
"@babel/core": "^7.26.0",
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/client-preset": "^4.5.1",
"@types/react": "^18.3.3",
"typescript": "^5.5.3"
"typescript": "^5.7.2"
},
"private": true
}
6 changes: 3 additions & 3 deletions packages/auth-anonymous/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
},
"license": "ISC",
"dependencies": {
"@envelop/core": "^5.0.1",
"@envelop/core": "^5.0.2",
"@envelop/generic-auth": "^7.0.0",
"@whatwg-node/server-plugin-cookies": "^1.0.2",
"@whatwg-node/server-plugin-cookies": "^1.0.3",
"@zemble/auth": "workspace:*",
"@zemble/core": "workspace:*",
"@zemble/graphql": "workspace:*",
"@zemble/utils": "workspace:*",
"graphql": "^16.9.0"
"graphql": "^16.10.0"
}
}
8 changes: 4 additions & 4 deletions packages/auth-api-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"dependencies": {
"@zemble/core": "workspace:*",
"@zemble/graphql": "workspace:*",
"graphql": "^16.9.0",
"graphql-scalars": "^1.23.0",
"hono": "^4.4.12",
"jose": "^5.6.3",
"graphql": "^16.10.0",
"graphql-scalars": "^1.24.0",
"hono": "^4.6.14",
"jose": "^5.9.6",
"@zemble/auth": "workspace:*"
}
}
8 changes: 4 additions & 4 deletions packages/auth-apple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
},
"license": "ISC",
"dependencies": {
"@envelop/core": "^5.0.1",
"@envelop/core": "^5.0.2",
"@envelop/generic-auth": "^7.0.0",
"@whatwg-node/server-plugin-cookies": "^1.0.2",
"@whatwg-node/server-plugin-cookies": "^1.0.3",
"@zemble/core": "workspace:*",
"@zemble/graphql": "workspace:*",
"graphql": "^16.9.0",
"jose": "^5.6.3",
"graphql": "^16.10.0",
"jose": "^5.9.6",
"@zemble/auth": "workspace:*"
}
}
3 changes: 2 additions & 1 deletion packages/auth-expo/components/ShowForAuthenticated.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useContext } from 'react'
import { View } from 'react-native'

import AuthContext from '../contexts/Auth'

Expand All @@ -7,5 +8,5 @@ import type { PropsWithChildren } from 'react'
export const ShowForAuthenticated: React.FC<PropsWithChildren> = ({ children }) => {
const { token } = useContext(AuthContext)
// eslint-disable-next-line react/jsx-no-useless-fragment
return token ? <>{children}</> : null
return token ? <View>{children}</View> : null
}
3 changes: 2 additions & 1 deletion packages/auth-expo/components/ShowForUnauthenticated.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useContext } from 'react'
import { View } from 'react-native'

import AuthContext from '../contexts/Auth'

Expand All @@ -7,7 +8,7 @@ import type { PropsWithChildren } from 'react'
export const ShowForUnauthenticated: React.FC<PropsWithChildren> = ({ children }) => {
const { token } = useContext(AuthContext)
// eslint-disable-next-line react/jsx-no-useless-fragment
return !token ? <>{children}</> : null
return !token ? <View>{children}</View> : null
}

export default ShowForUnauthenticated
4 changes: 2 additions & 2 deletions packages/auth-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"react-native": "~0.72.4"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/core": "^7.26.0",
"@types/react": "^18.3.3",
"typescript": "^5.5.3"
"typescript": "^5.7.2"
},
"private": true
}
3 changes: 2 additions & 1 deletion packages/auth-expo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true,
"noUncheckedIndexedAccess": true
"noUncheckedIndexedAccess": true,
"allowJs": true
}
}
8 changes: 4 additions & 4 deletions packages/auth-otp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
},
"license": "ISC",
"dependencies": {
"@envelop/core": "^5.0.1",
"@envelop/core": "^5.0.2",
"@envelop/generic-auth": "^7.0.0",
"@whatwg-node/server-plugin-cookies": "^1.0.2",
"@whatwg-node/server-plugin-cookies": "^1.0.3",
"@zemble/auth": "workspace:*",
"@zemble/core": "workspace:*",
"@zemble/graphql": "workspace:*",
"@zemble/kv": "workspace:*",
"@zemble/utils": "workspace:*",
"graphql": "^16.9.0",
"libphonenumber-js": "^1.11.4"
"graphql": "^16.10.0",
"libphonenumber-js": "^1.11.17"
}
}
12 changes: 6 additions & 6 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@
},
"license": "ISC",
"dependencies": {
"@envelop/core": "^5.0.1",
"@envelop/core": "^5.0.2",
"@envelop/generic-auth": "^7.0.0",
"@graphql-tools/wrap": "^10.0.5",
"@graphql-tools/wrap": "^10.0.26",
"@zemble/core": "workspace:*",
"@zemble/bun": "workspace:*",
"@zemble/graphql": "workspace:*",
"graphql": "^16.9.0",
"graphql-scalars": "^1.23.0",
"hono": "^4.4.12",
"jose": "^5.6.3",
"graphql": "^16.10.0",
"graphql-scalars": "^1.24.0",
"hono": "^4.6.14",
"jose": "^5.9.6",
"@zemble/kv": "workspace:*"
}
}
14 changes: 7 additions & 7 deletions packages/bull/ZembleQueueBull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ export class ZembleQueueBull<DataType = unknown, ReturnType = unknown> {
}

// eslint-disable-next-line functional/prefer-readonly-type
#queueInternal: Queue<DataType, ReturnType> | undefined
#queueInternal: Queue<DataType, ReturnType, string, DataType, ReturnType, string> | undefined

get #queue() {
if (!this.#queueInternal) throw new Error('Queue not initialized, something is wrong!')
return this.#queueInternal
}

async _initQueue(queueName: string, connection: QueueOptions['connection']) {
const queue = new Queue(queueName, {
const queue = new Queue<DataType, ReturnType, string, DataType, ReturnType, string>(queueName, {
connection,
defaultJobOptions: this.#config?.defaultJobOptions,
prefix: plugin.config.redisOptions?.keyPrefix,
Expand All @@ -78,23 +78,23 @@ export class ZembleQueueBull<DataType = unknown, ReturnType = unknown> {
return { queue, worker }
}

async add(...args: Parameters<Queue<DataType, ReturnType>['add']>) {
async add(...args: Parameters<Queue<DataType, ReturnType, string, DataType, ReturnType, string>['add']>) {
return this.#queue.add(...args)
}

async addBulk(...args: Parameters<Queue<DataType, ReturnType>['addBulk']>) {
async addBulk(...args: Parameters<Queue<DataType, ReturnType, string, DataType, ReturnType, string>['addBulk']>) {
return this.#queue.addBulk(...args)
}

async remove(...args: Parameters<Queue<DataType, ReturnType>['remove']>) {
async remove(...args: Parameters<Queue<DataType, ReturnType, string, DataType, ReturnType, string>['remove']>) {
return this.#queue.remove(...args)
}

async getJob(...args: Parameters<Queue<DataType, ReturnType>['getJob']>) {
async getJob(...args: Parameters<Queue<DataType, ReturnType, string, DataType, ReturnType, string>['getJob']>) {
return this.#queue.getJob(...args)
}

async getDelayed(...args: Parameters<Queue<DataType, ReturnType>['getDelayed']>) {
async getDelayed(...args: Parameters<Queue<DataType, ReturnType, string, DataType, ReturnType, string>['getDelayed']>) {
return this.#queue.getDelayed(...args)
}

Expand Down
Loading
Loading