upgrade non-(apparently)-breaking major versions
This commit is contained in:
parent
ff3ad7676d
commit
f9ed1ee6f5
|
@ -1,6 +1,6 @@
|
||||||
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react'
|
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import cookie from 'cookie'
|
import * as cookie from 'cookie'
|
||||||
import { useMe } from '@/components/me'
|
import { useMe } from '@/components/me'
|
||||||
import { USER_ID, SSR } from '@/lib/constants'
|
import { USER_ID, SSR } from '@/lib/constants'
|
||||||
import { USER } from '@/fragments/users'
|
import { USER } from '@/fragments/users'
|
||||||
|
|
|
@ -151,7 +151,7 @@ export const ServiceWorkerProvider = ({ children }) => {
|
||||||
const channel = new MessageChannel()
|
const channel = new MessageChannel()
|
||||||
navigator?.serviceWorker?.controller?.postMessage({ action: ACTION_PORT }, [channel.port2])
|
navigator?.serviceWorker?.controller?.postMessage({ action: ACTION_PORT }, [channel.port2])
|
||||||
channel.port1.onmessage = (event) => {
|
channel.port1.onmessage = (event) => {
|
||||||
if (event.data.action === RESUBSCRIBE) {
|
if (event.data.action === RESUBSCRIBE && permission.notification === 'granted') {
|
||||||
return subscribeToPushNotifications()
|
return subscribeToPushNotifications()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ export const ServiceWorkerProvider = ({ children }) => {
|
||||||
navigator?.serviceWorker?.controller?.postMessage?.({ action: SYNC_SUBSCRIPTION })
|
navigator?.serviceWorker?.controller?.postMessage?.({ action: SYNC_SUBSCRIPTION })
|
||||||
logger.info('sent SYNC_SUBSCRIPTION to service worker')
|
logger.info('sent SYNC_SUBSCRIPTION to service worker')
|
||||||
navigator?.serviceWorker?.controller?.postMessage?.({ action: STORE_OS, os: detectOS() })
|
navigator?.serviceWorker?.controller?.postMessage?.({ action: STORE_OS, os: detectOS() })
|
||||||
}, [registration])
|
}, [registration, permission.notification])
|
||||||
|
|
||||||
const contextValue = useMemo(() => ({
|
const contextValue = useMemo(() => ({
|
||||||
registration,
|
registration,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
22
package.json
22
package.json
|
@ -16,13 +16,13 @@
|
||||||
"@apollo/client": "^3.11.8",
|
"@apollo/client": "^3.11.8",
|
||||||
"@apollo/server": "^4.11.0",
|
"@apollo/server": "^4.11.0",
|
||||||
"@as-integrations/next": "^3.1.0",
|
"@as-integrations/next": "^3.1.0",
|
||||||
"@auth/prisma-adapter": "^1.6.0",
|
"@auth/prisma-adapter": "^2.7.0",
|
||||||
"@graphql-tools/schema": "^10.0.6",
|
"@graphql-tools/schema": "^10.0.6",
|
||||||
"@lightninglabs/lnc-web": "^0.3.2-alpha",
|
"@lightninglabs/lnc-web": "^0.3.2-alpha",
|
||||||
"@noble/curves": "^1.6.0",
|
"@noble/curves": "^1.6.0",
|
||||||
"@opensearch-project/opensearch": "^2.12.0",
|
"@opensearch-project/opensearch": "^2.12.0",
|
||||||
"@prisma/client": "^5.20.0",
|
"@prisma/client": "^5.20.0",
|
||||||
"@slack/web-api": "^6.13.0",
|
"@slack/web-api": "^7.6.0",
|
||||||
"@svgr/webpack": "^8.1.0",
|
"@svgr/webpack": "^8.1.0",
|
||||||
"@yudiel/react-qr-scanner": "^1.2.10",
|
"@yudiel/react-qr-scanner": "^1.2.10",
|
||||||
"acorn": "^8.12.1",
|
"acorn": "^8.12.1",
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
"canonical-json": "0.0.4",
|
"canonical-json": "0.0.4",
|
||||||
"classnames": "^2.5.1",
|
"classnames": "^2.5.1",
|
||||||
"clipboard-copy": "^4.0.1",
|
"clipboard-copy": "^4.0.1",
|
||||||
"cookie": "^0.7.2",
|
"cookie": "^1.0.1",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
"csv-parser": "^3.0.0",
|
"csv-parser": "^3.0.0",
|
||||||
"domino": "^2.1.6",
|
"domino": "^2.1.6",
|
||||||
|
@ -50,13 +50,13 @@
|
||||||
"isomorphic-ws": "^5.0.0",
|
"isomorphic-ws": "^5.0.0",
|
||||||
"ln-service": "^57.22.0",
|
"ln-service": "^57.22.0",
|
||||||
"macaroon": "^3.0.4",
|
"macaroon": "^3.0.4",
|
||||||
"mathjs": "^11.12.0",
|
"mathjs": "^13.2.0",
|
||||||
"mdast-util-find-and-replace": "^3.0.1",
|
"mdast-util-find-and-replace": "^3.0.1",
|
||||||
"mdast-util-from-markdown": "^2.0.1",
|
"mdast-util-from-markdown": "^2.0.1",
|
||||||
"mdast-util-gfm": "^3.0.0",
|
"mdast-util-gfm": "^3.0.0",
|
||||||
"mdast-util-to-string": "^4.0.0",
|
"mdast-util-to-string": "^4.0.0",
|
||||||
"micromark-extension-gfm": "^3.0.0",
|
"micromark-extension-gfm": "^3.0.0",
|
||||||
"next": "^13.5.7",
|
"next": "^14.2.15",
|
||||||
"next-auth": "^4.24.8",
|
"next-auth": "^4.24.8",
|
||||||
"next-plausible": "^3.12.2",
|
"next-plausible": "^3.12.2",
|
||||||
"next-seo": "^6.6.0",
|
"next-seo": "^6.6.0",
|
||||||
|
@ -70,12 +70,12 @@
|
||||||
"pg-boss": "^9.0.3",
|
"pg-boss": "^9.0.3",
|
||||||
"piexifjs": "^1.0.6",
|
"piexifjs": "^1.0.6",
|
||||||
"prisma": "^5.20.0",
|
"prisma": "^5.20.0",
|
||||||
"qrcode.react": "^3.2.0",
|
"qrcode.react": "^4.0.1",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-avatar-editor": "^13.0.2",
|
"react-avatar-editor": "^13.0.2",
|
||||||
"react-bootstrap": "^2.10.5",
|
"react-bootstrap": "^2.10.5",
|
||||||
"react-countdown": "^2.3.6",
|
"react-countdown": "^2.3.6",
|
||||||
"react-datepicker": "^4.25.0",
|
"react-datepicker": "^7.4.0",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
"react-ios-pwa-prompt": "^1.8.4",
|
"react-ios-pwa-prompt": "^1.8.4",
|
||||||
"react-markdown": "^9.0.1",
|
"react-markdown": "^9.0.1",
|
||||||
|
@ -92,8 +92,8 @@
|
||||||
"sass": "^1.79.5",
|
"sass": "^1.79.5",
|
||||||
"serviceworker-storage": "^0.1.0",
|
"serviceworker-storage": "^0.1.0",
|
||||||
"textarea-caret": "^3.1.0",
|
"textarea-caret": "^3.1.0",
|
||||||
"tldts": "^6.1.50",
|
"tldts": "^6.1.51",
|
||||||
"tsx": "^3.14.0",
|
"tsx": "^4.19.1",
|
||||||
"unist-util-visit": "^5.0.0",
|
"unist-util-visit": "^5.0.0",
|
||||||
"unzipper": "^0.12.3",
|
"unzipper": "^0.12.3",
|
||||||
"url-unshort": "^6.1.0",
|
"url-unshort": "^6.1.0",
|
||||||
|
@ -121,8 +121,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@next/eslint-plugin-next": "^13.5.7",
|
"@next/eslint-plugin-next": "^14.2.15",
|
||||||
"eslint": "^8.57.1",
|
"eslint": "^9.12.0",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"standard": "^17.1.2"
|
"standard": "^17.1.2"
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { datePivot } from '@/lib/time'
|
||||||
import { schnorr } from '@noble/curves/secp256k1'
|
import { schnorr } from '@noble/curves/secp256k1'
|
||||||
import { notifyReferral } from '@/lib/webPush'
|
import { notifyReferral } from '@/lib/webPush'
|
||||||
import { hashEmail } from '@/lib/crypto'
|
import { hashEmail } from '@/lib/crypto'
|
||||||
import cookie from 'cookie'
|
import * as cookie from 'cookie'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores userIds in user table
|
* Stores userIds in user table
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import cookie from 'cookie'
|
import * as cookie from 'cookie'
|
||||||
import { datePivot } from '../../lib/time'
|
import { datePivot } from '../../lib/time'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue