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 all 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
43 changes: 43 additions & 0 deletions .changeset/grumpy-bikes-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
"todo-app-with-auth-backend": patch
"@zemble/auth-anonymous-expo": patch
"todoappwithauth": patch
"@zemble/auth-anonymous": patch
"@zemble/auth-api-token": patch
"@zemble/email-sendgrid": patch
"@zemble/logger-graphql": patch
"@zemble/firebase-auth": patch
"supplement-stack": patch
"@zemble/email-resend": patch
"@zemble/auth-apple": patch
"@zemble/migrations": patch
"@zemble/push-apple": patch
"@zemble/sms-46elks": patch
"@zemble/sms-twilio": patch
"@zemble/auth-expo": patch
"@zemble/cms-users": patch
"@zemble/push-expo": patch
"@zemble/urql-expo": patch
"@zemble/auth-otp": patch
"@zemble/supabase": patch
"@zemble/graphql": patch
"@zemble/mongodb": patch
"@zemble/todo-ui": patch
"eslint-config-kingstinct": patch
"@zemble/routes": patch
"@zemble/debug": patch
"@zemble/react": patch
"@zemble/utils": patch
"@zemble/auth": patch
"@zemble/bull": patch
"@zemble/core": patch
"@zemble/node": patch
"@zemble/pino": patch
"@zemble/todo": patch
"minimal": patch
"@zemble/cms": patch
"cms-ui": patch
"@zemble/kv": patch
---

Package and eslint bumps
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"
}
}
10 changes: 5 additions & 5 deletions apps/supplement-stack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"license": "ISC",
"dependencies": {
"@envelop/generic-auth": "^7.0.0",
"@envelop/generic-auth": "7",
"@zemble/apple-app-site-association": "workspace:*",
"@zemble/auth-otp": "workspace:*",
"@zemble/bull": "workspace:*",
Expand All @@ -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"
}
}
4 changes: 2 additions & 2 deletions apps/todo-app-with-auth-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"license": "ISC",
"dependencies": {
"@envelop/generic-auth": "^7.0.0",
"@envelop/generic-auth": "7",
"@zemble/core": "workspace:*",
"@zemble/graphql": "workspace:*",
"@zemble/auth-anonymous": "workspace:*",
Expand All @@ -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.
55 changes: 28 additions & 27 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.lockb && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + && bun install",
"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 @@ -52,46 +52,47 @@
"license": "ISC",
"private": true,
"devDependencies": {
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@graphql-eslint/eslint-plugin": "^4.3.0",
"@graphql-typed-document-node/core": "^3.2.0",
"@stylistic/eslint-plugin-ts": "^2.12.1",
"@tsconfig/bun": "^1.0.7",
"@types/bun": "*",
"@types/debug": "^4.1.12",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"bun-types": "1.1.18",
"check-dependency-version-consistency": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"bun-types": "1.1.42",
"check-dependency-version-consistency": "^5.0.0",
"eslint": "8",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-kingstinct": "workspace:*",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-comment-length": "^1.7.3",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-comment-length": "^2.1.1",
"eslint-plugin-functional": "^6.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-react": "7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsonc": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-native": "^4.1.0",
"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",
"pino-pretty": "^11.2.1",
"pkg-pr-new": "^0.0.35",
"turbo": "^2.0.6",
"typescript-json-schema": "^0.64.0"
"eslint-plugin-unicorn": "^56.0.1",
"eslint-plugin-yml": "^1.16.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"pino-pretty": "^13.0.0",
"pkg-pr-new": "^0.0.39",
"turbo": "^2.3.3",
"typescript-json-schema": "^0.65.1"
},
"workspaces": [
"packages/*",
"apps/*"
],
"dependencies": {
"@changesets/cli": "^2.27.7",
"debug": "^4.3.5",
"graphql": "^16.9.0",
"madge": "^7.0.0"
"@changesets/cli": "^2.27.11",
"debug": "^4.4.0",
"graphql": "^16.10.0",
"madge": "^8.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
}
8 changes: 4 additions & 4 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/generic-auth": "^7.0.0",
"@whatwg-node/server-plugin-cookies": "^1.0.2",
"@envelop/core": "^5.0.2",
"@envelop/generic-auth": "7",
"@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:*"
}
}
10 changes: 5 additions & 5 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/generic-auth": "^7.0.0",
"@whatwg-node/server-plugin-cookies": "^1.0.2",
"@envelop/core": "^5.0.2",
"@envelop/generic-auth": "7",
"@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:*"
}
}
2 changes: 1 addition & 1 deletion packages/auth-apple/utils/validateIdToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const validateIdToken = async (idToken: string) => {
const { payload } = await jose
.jwtVerify<AppleJwtContents>(idToken, JWKS, {

})
})

if (!payload.email_verified && !plugin.config.skipEmailVerificationRequired) {
throw new GraphQLError('[@zemble/auth-apple] User email not verified, either set skipEmailVerificationRequired to true or verify the email with Apple.')
Expand Down
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
}
}
Loading
Loading