Skip to content

Commit

Permalink
release: 2024-03-18 (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Mar 18, 2024
2 parents 4c2c02b + 804c415 commit 2f66ecf
Show file tree
Hide file tree
Showing 28 changed files with 1,426 additions and 1,163 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: 🏗 Initialize CodeQL
uses: github/codeql-action/init@3ab4101902695724f9365a384f86c1074d94e18c # v3
uses: github/codeql-action/init@05963f47d870e2cb19a537396c1f668a348c7d8f # v3
- name: 🚀 Perform CodeQL Analysis
uses: github/codeql-action/analyze@3ab4101902695724f9365a384f86c1074d94e18c # v3
uses: github/codeql-action/analyze@05963f47d870e2cb19a537396c1f668a348c7d8f # v3
2 changes: 1 addition & 1 deletion .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
path: /home/runner/work/InReach/InReach/apps/app/.next/analyze/__bundle_analysis.json

- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@71072fbb1229e1317f1a8de6b04206afb461bd67 # v3.1.2
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3.1.4
if: success() && github.event.number
with:
workflow: nextjs_bundle_analysis.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/njsscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
with:
args: '. --sarif --output results.sarif || true'
- name: Upload njsscan report
uses: github/codeql-action/upload-sarif@3ab4101902695724f9365a384f86c1074d94e18c # v3
uses: github/codeql-action/upload-sarif@05963f47d870e2cb19a537396c1f668a348c7d8f # v3
with:
sarif_file: results.sarif
20 changes: 10 additions & 10 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
"@opentelemetry/sdk-trace-node": "1.22.0",
"@opentelemetry/semantic-conventions": "1.22.0",
"@prisma/instrumentation": "5.11.0",
"@sentry/browser": "7.106.1",
"@sentry/nextjs": "7.106.1",
"@sentry/node": "7.106.1",
"@sentry/opentelemetry": "7.106.1",
"@sentry/opentelemetry-node": "7.106.1",
"@sentry/profiling-node": "7.106.1",
"@sentry/browser": "7.107.0",
"@sentry/nextjs": "7.107.0",
"@sentry/node": "7.107.0",
"@sentry/opentelemetry": "7.107.0",
"@sentry/opentelemetry-node": "7.107.0",
"@sentry/profiling-node": "7.107.0",
"@tanstack/react-query": "4.36.1",
"@tanstack/react-table": "8.13.2",
"@trpc/client": "10.45.2",
Expand Down Expand Up @@ -99,7 +99,7 @@
"react-dom": "18.2.0",
"react-error-boundary": "4.0.13",
"react-hook-consent": "3.5.3",
"react-hook-form": "7.51.0",
"react-hook-form": "7.51.1",
"react-hook-form-mantine": "2.0.0",
"react-i18next": "14.1.0",
"zod": "3.22.4"
Expand All @@ -114,9 +114,9 @@
"@types/eslint": "8.56.5",
"@types/gtag.js": "0.0.19",
"@types/luxon": "3.4.2",
"@types/node": "20.11.26",
"@types/react": "18.2.65",
"@types/react-dom": "18.2.21",
"@types/node": "20.11.28",
"@types/react": "18.2.67",
"@types/react-dom": "18.2.22",
"@types/umami": "0.1.5",
"@typescript-eslint/eslint-plugin": "7.2.0",
"@typescript-eslint/parser": "7.2.0",
Expand Down
11 changes: 1 addition & 10 deletions apps/app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,7 @@ const MyApp = (appProps: AppPropsWithGridSwitch) => {
)
}

const i18NextSSRConfig: UserConfig = {
i18n: {
defaultLocale: nextI18nConfig.i18n.defaultLocale,
locales: nextI18nConfig.i18n.locales,
},
interpolation: nextI18nConfig.interpolation,
use: nextI18nConfig.use,
}

export default api.withTRPC(appWithTranslation(MyApp, i18NextSSRConfig))
export default api.withTRPC(appWithTranslation(MyApp, nextI18nConfig))

export type NextPageWithOptions<Props = unknown, InitialProps = Props> = NextPage<Props, InitialProps> & {
omitGrid?: boolean
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/pages/search/[...params]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export const getServerSideProps: GetServerSideProps<Record<string, unknown>, '/s
const ssg = await trpcServerClient({ req, res })

const [i18n] = await Promise.allSettled([
getServerSideTranslations(locale, ['services', 'common', 'attribute', 'country']),
getServerSideTranslations(locale, ['services', 'common', 'attribute']),
ssg.organization.searchDistance.prefetch({ lat, lon, dist, unit, skip, take }),
ssg.organization.getNatlCrisis.prefetch({ cca2: country }),
ssg.service.getFilterOptions.prefetch(),
Expand Down
6 changes: 3 additions & 3 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"devDependencies": {
"@next/bundle-analyzer": "14.1.3",
"@types/eslint": "8.56.5",
"@types/node": "20.11.26",
"@types/react": "18.2.65",
"@types/react-dom": "18.2.21",
"@types/node": "20.11.28",
"@types/react": "18.2.67",
"@types/react-dom": "18.2.22",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "0.100.0",
"eslint": "8.57.0",
Expand Down
2 changes: 1 addition & 1 deletion lambdas/cognito-messaging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"devDependencies": {
"@types/aws-lambda": "8.10.136",
"@types/eslint": "8.56.5",
"@types/node": "20.11.26",
"@types/node": "20.11.28",
"@vercel/ncc": "0.38.1",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "0.100.0",
Expand Down
2 changes: 1 addition & 1 deletion lambdas/cognito-user-migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@types/aws-lambda": "8.10.136",
"@types/eslint": "8.56.5",
"@types/node": "20.11.26",
"@types/node": "20.11.28",
"@vercel/ncc": "0.38.1",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "0.100.0",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@
"@changesets/cli": "2.27.1",
"@turbo/gen": "1.12.5",
"@types/lint-staged": "13.3.0",
"@types/node": "20.11.26",
"@types/node": "20.11.28",
"@types/yargs": "17.0.32",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "0.100.0",
"boxen": "7.1.1",
"docker-compose": "0.24.6",
"docker-compose": "0.24.7",
"dotenv": "16.4.5",
"dotenv-expand": "11.0.6",
"husky": "9.0.11",
"knip": "5.0.4",
"knip": "5.1.2",
"lint-staged": "15.2.2",
"prettier": "3.2.5",
"prettier-plugin-jsdoc": "1.3.0",
Expand All @@ -63,7 +63,7 @@
"typesync": "0.12.1",
"yargs": "17.7.2"
},
"packageManager": "[email protected].4",
"packageManager": "[email protected].5",
"engines": {
"node": "^20.0.0",
"pnpm": "^8.10.5"
Expand Down
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@googlemaps/google-maps-services-js": "3.3.42",
"@opentelemetry/api": "1.8.0",
"@sentry/nextjs": "7.106.1",
"@sentry/nextjs": "7.107.0",
"@tanstack/react-query": "4.36.1",
"@terraformer/wkt": "2.2.0",
"@trpc/client": "10.45.2",
Expand All @@ -33,7 +33,7 @@
"@weareinreach/util": "workspace:*",
"alex": "11.0.1",
"crud-object-diff": "2.3.6",
"geo-tz": "8.0.1",
"geo-tz": "8.0.2",
"geolib": "3.3.4",
"just-compact": "3.2.0",
"just-filter-object": "3.2.0",
Expand All @@ -54,7 +54,7 @@
"@types/eslint": "8.56.5",
"@types/google.maps": "3.55.4",
"@types/luxon": "3.4.2",
"@types/node": "20.11.26",
"@types/node": "20.11.28",
"@types/terraformer__wkt": "2.0.3",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "0.100.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"with-env": "dotenv -e ../../.env --"
},
"dependencies": {
"@aws-sdk/client-cognito-identity-provider": "3.530.0",
"@aws-sdk/client-cognito-identity-provider": "3.535.0",
"@next-auth/prisma-adapter": "1.0.7",
"@weareinreach/db": "workspace:*",
"@weareinreach/env": "workspace:*",
Expand All @@ -67,9 +67,9 @@
},
"devDependencies": {
"@types/eslint": "8.56.5",
"@types/node": "20.11.26",
"@types/react": "18.2.65",
"@types/react-dom": "18.2.21",
"@types/node": "20.11.28",
"@types/react": "18.2.67",
"@types/react-dom": "18.2.22",
"@weareinreach/config": "workspace:*",
"@weareinreach/eslint-config": "0.100.0",
"eslint": "8.57.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"preinstall": "npx only-allow pnpm"
},
"devDependencies": {
"@types/node": "20.11.26",
"@types/node": "20.11.28",
"@weareinreach/eslint-config": "0.100.0",
"alex": "11.0.1",
"next-i18next": "15.2.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@types/inquirer": "9.0.7",
"@types/inquirer-autocomplete-prompt": "3.0.3",
"@types/luxon": "3.4.2",
"@types/node": "20.11.26",
"@types/node": "20.11.28",
"@types/papaparse": "5.3.14",
"@types/pg": "8.11.2",
"@types/terraformer__wkt": "2.0.3",
Expand All @@ -80,13 +80,13 @@
"dotenv": "16.4.5",
"dotenv-cli": "7.4.1",
"eslint": "8.57.0",
"google-auth-library": "9.6.3",
"google-auth-library": "9.7.0",
"google-spreadsheet": "4.1.1",
"googleapis": "133.0.0",
"inquirer": "9.2.15",
"inquirer": "9.2.16",
"inquirer-autocomplete-prompt": "3.0.1",
"just-compact": "3.2.0",
"kysely-codegen": "0.13.1",
"kysely-codegen": "0.14.0",
"libphonenumber-js": "1.10.58",
"listr2": "8.0.2",
"luxon": "3.4.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { z } from 'zod'

export const AccessLinksSchema = z.object({
addNew: z
.object({ id: z.string(), serviceId: z.string(), slug: z.string(), url: z.string().url() })
.array(),
updates: z
.object({
supplementId: z.string(),
newUrl: z.string().url(),
})
.array(),
})

export const OrgUpdatesSchema = z
.object({
orgDesc: z.string().optional(),
orgName: z.string().optional(),
orgUrl: z.string().url().optional(),
slug: z.string(),
})
.array()

export const ServiceNameSchema = z
.object({
serviceName: z.string(),
serviceId: z.string(),
})
.array()
export const UnpublishSchema = z.object({
orgs: z.string().array(),
services: z.string().array(),
locations: z.string().array(),
attributeSupplements: z.string().array(),
})

export const NewAlertsSchema = z
.object({
slug: z.string(),
alertText: z.string(),
supplementId: z.string(),
freeTextId: z.string(),
})
.array()
Loading

1 comment on commit 2f66ecf

@vercel
Copy link

@vercel vercel bot commented on 2f66ecf Mar 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.