Skip to content

Commit

Permalink
Merge branch 'main' into feat/create-suspending-cell
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 authored Aug 30, 2023
2 parents 9553de1 + b5fdb47 commit 5177391
Show file tree
Hide file tree
Showing 31 changed files with 5,780 additions and 5,815 deletions.
9,793 changes: 4,904 additions & 4,889 deletions __fixtures__/example-todo-main/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
"jest-runner-tsd": "5.0.0",
"jscodeshift": "0.15.0",
"lerna": "7.1.4",
"listr2": "6.6.0",
"listr2": "6.6.1",
"make-dir-cli": "3.0.0",
"msw": "1.2.3",
"msw": "1.2.5",
"ncp": "2.0.0",
"nodemon": "2.0.22",
"npm-packlist": "7.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"core-js": "3.32.0",
"fast-glob": "3.3.1",
"fast-json-parse": "1.0.3",
"fastify": "4.21.0",
"fastify": "4.22.0",
"fastify-raw-body": "4.2.1",
"lodash": "4.17.21",
"pretty-bytes": "5.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@babel/runtime-corejs3": "7.22.10",
"@prisma/client": "5.1.1",
"@prisma/client": "5.2.0",
"@whatwg-node/fetch": "0.9.9",
"core-js": "3.32.0",
"humanize-string": "2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/auth-providers/firebase/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"@babel/cli": "7.22.10",
"@babel/core": "7.22.10",
"@types/react": "18.2.14",
"firebase": "10.1.0",
"firebase": "10.3.0",
"jest": "29.6.2",
"react": "18.3.0-canary-035a41c4e-20230704",
"typescript": "5.1.6"
},
"peerDependencies": {
"firebase": "10.1.0"
"firebase": "10.3.0"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
}
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "14.0.0",
"jest": "29.6.2",
"msw": "1.2.3",
"msw": "1.2.5",
"typescript": "5.1.6"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"chalk": "4.1.2",
"core-js": "3.32.0",
"execa": "5.1.1",
"listr2": "6.6.0",
"listr2": "6.6.1",
"lodash": "4.17.21",
"pascalcase": "1.0.0",
"prettier": "2.8.8",
Expand Down
4 changes: 1 addition & 3 deletions packages/cli-packages/dataMigrate/e2eTest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ await execa.command('yarn rw g data-migration test', {
stdio: 'inherit',
})

await execa.command('yarn rw data-migrate up', {
stdio: 'inherit',
})
await execa.command(command)

// check that up worked...
6 changes: 4 additions & 2 deletions packages/cli-packages/dataMigrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@
},
"dependencies": {
"@redwoodjs/babel-config": "6.0.7",
"@redwoodjs/cli-helpers": "6.0.7",
"@redwoodjs/project-config": "6.0.7",
"@redwoodjs/telemetry": "6.0.7",
"chalk": "4.1.2",
"dotenv-defaults": "5.0.2",
"execa": "5.1.1",
"fs-extra": "11.1.1",
"listr2": "6.6.0",
"listr2": "6.6.1",
"terminal-link": "2.1.1",
"yargs": "17.7.2"
},
"devDependencies": {
"@prisma/client": "5.1.1",
"@prisma/client": "5.2.0",
"@types/fs-extra": "11.0.1",
"@types/yargs": "17.0.24",
"esbuild": "0.18.19",
Expand Down
14 changes: 13 additions & 1 deletion packages/cli-packages/dataMigrate/src/bin.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
import path from 'path'

// @ts-expect-error not sure; other packages use this and don't provide the types
import { config } from 'dotenv-defaults'
import { hideBin } from 'yargs/helpers'
import yargs from 'yargs/yargs'

import { getPaths } from '@redwoodjs/project-config'

import { description, builder } from './commands/up'
import { handler } from './commands/upHandler'

config({
path: path.join(getPaths().base, '.env'),
defaults: path.join(getPaths().base, '.env.defaults'),
multiline: true,
})

yargs(hideBin(process.argv))
.scriptName('data-migrate')
// @ts-expect-error not sure why
// @ts-expect-error not sure; this is a valid signature
.command('$0', description, builder, handler)
.parse()
34 changes: 24 additions & 10 deletions packages/cli-packages/dataMigrate/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import terminalLink from 'terminal-link'
import type { Argv } from 'yargs'

import {
command as installCommand,
description as installDescription,
Expand All @@ -11,17 +14,28 @@ import {
handler as upHandler,
} from './commands/up'

const command = 'data-migrate <command>'
const aliases = ['dataMigrate', 'dm']
const description = 'Migrate the data in your database'

function builder(yargs: Argv) {
yargs
.command(installCommand, installDescription, installBuilder, installHandler)
// @ts-expect-error not sure; this is a valid signature
.command(upCommand, upDescription, upBuilder, upHandler)
.epilogue(
`Also see the ${terminalLink(
'Redwood CLI Reference',
'https://redwoodjs.com/docs/cli-commands#datamigrate'
)}`
)
}

export const commands = [
{
command: installCommand,
description: installDescription,
builder: installBuilder,
handler: installHandler,
},
{
command: upCommand,
description: upDescription,
builder: upBuilder,
handler: upHandler,
command,
aliases,
description,
builder,
},
]
10 changes: 5 additions & 5 deletions packages/cli-packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"@redwoodjs/cli-helpers": "6.0.7",
"@redwoodjs/project-config": "6.0.7",
"@redwoodjs/telemetry": "6.0.7",
"@storybook/addon-a11y": "7.3.2",
"@storybook/addon-docs": "7.3.2",
"@storybook/addon-essentials": "7.3.2",
"@storybook/react-webpack5": "7.3.2",
"@storybook/addon-a11y": "7.4.0",
"@storybook/addon-docs": "7.4.0",
"@storybook/addon-essentials": "7.4.0",
"@storybook/react-webpack5": "7.4.0",
"chalk": "4.1.2",
"execa": "5.1.1",
"storybook": "7.3.2",
"storybook": "7.4.0",
"terminal-link": "2.1.1",
"yargs": "17.7.2"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@opentelemetry/resources": "1.15.0",
"@opentelemetry/sdk-trace-node": "1.15.0",
"@opentelemetry/semantic-conventions": "1.15.0",
"@prisma/internals": "5.1.1",
"@prisma/internals": "5.2.0",
"@redwoodjs/api-server": "6.0.7",
"@redwoodjs/cli-helpers": "6.0.7",
"@redwoodjs/fastify": "6.0.7",
Expand All @@ -57,21 +57,21 @@
"crypto-js": "4.1.1",
"decamelize": "5.0.1",
"dotenv-defaults": "5.0.2",
"enquirer": "2.3.6",
"enquirer": "2.4.1",
"envinfo": "7.9.0",
"execa": "5.1.1",
"fast-glob": "3.3.1",
"fs-extra": "11.1.1",
"humanize-string": "2.1.0",
"latest-version": "5.1.0",
"listr2": "6.6.0",
"listr2": "6.6.1",
"lodash": "4.17.21",
"param-case": "3.0.4",
"pascalcase": "1.0.0",
"pluralize": "8.0.0",
"portfinder": "1.0.32",
"prettier": "2.8.8",
"prisma": "5.1.1",
"prisma": "5.2.0",
"prompts": "2.4.2",
"rimraf": "5.0.1",
"secure-random-password": "0.2.3",
Expand Down
9 changes: 6 additions & 3 deletions packages/cli/src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ const PLUGIN_CACHE_DEFAULT = {
'Launch Storybook: a tool for building UI components and pages in isolation',
},
},
'@redwoodjs/cli-data-migrate': {
'data-migrate': {
aliases: ['dataMigrate', 'dm'],
description: 'Migrate the data in your database',
},
},
}

const PLUGIN_CACHE_BUILTIN = [
Expand All @@ -27,9 +33,6 @@ const PLUGIN_CACHE_BUILTIN = [
'diagnostics',
'console',
'c',
'data-migrate',
'dm',
'dataMigrate',
'deploy',
'destroy',
'd',
Expand Down
2 changes: 1 addition & 1 deletion packages/codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"deepmerge": "4.3.1",
"execa": "5.1.1",
"fast-glob": "3.3.1",
"graphql": "16.7.1",
"graphql": "16.8.0",
"jest": "29.6.2",
"jscodeshift": "0.15.0",
"pascalcase": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@redwoodjs/project-config": "6.0.7",
"ansi-colors": "4.1.3",
"fast-glob": "3.3.1",
"fastify": "4.21.0",
"fastify": "4.22.0",
"fastify-raw-body": "4.2.1",
"lodash": "4.17.21",
"qs": "6.11.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"@types/testing-library__jest-dom": "5.14.8",
"graphql": "16.7.1",
"graphql": "16.8.0",
"jest": "29.6.2",
"nodemon": "2.0.22",
"react": "18.3.0-canary-035a41c4e-20230704",
"react-dom": "18.3.0-canary-035a41c4e-20230704",
"typescript": "5.1.6"
},
"peerDependencies": {
"graphql": "16.7.1",
"graphql": "16.8.0",
"react": "18.3.0-canary-035a41c4e-20230704"
},
"gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@opentelemetry/api": "1.4.1",
"@redwoodjs/api": "6.0.7",
"core-js": "3.32.0",
"graphql": "16.7.1",
"graphql": "16.8.0",
"graphql-scalars": "1.22.2",
"graphql-tag": "2.12.6",
"graphql-yoga": "4.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"esbuild": "0.18.19",
"fast-glob": "3.3.1",
"fs-extra": "11.1.1",
"graphql": "16.7.1",
"graphql": "16.8.0",
"kill-port": "1.6.1",
"prettier": "2.8.8",
"rimraf": "5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/prerender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"babel-plugin-ignore-html-and-css-imports": "0.1.0",
"cheerio": "1.0.0-rc.12",
"core-js": "3.32.0",
"graphql": "16.7.1",
"graphql": "16.8.0",
"mime-types": "2.1.35"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/realtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@graphql-yoga/subscription": "4.0.0",
"@n1ru4l/graphql-live-query": "0.10.0",
"@n1ru4l/in-memory-live-query-store": "0.10.0",
"graphql": "16.7.1",
"graphql": "16.8.0",
"ioredis": "5.3.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
},
"dependencies": {
"@babel/runtime-corejs3": "7.22.10",
"@prisma/client": "5.1.1",
"@prisma/client": "5.2.0",
"@redwoodjs/project-config": "6.0.7",
"core-js": "3.32.0"
},
"devDependencies": {
"@babel/cli": "7.22.10",
"@babel/core": "7.22.10",
"@prisma/internals": "5.1.1",
"@prisma/internals": "5.2.0",
"esbuild": "0.18.19",
"jest": "29.6.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
"dependencies": {
"@babel/runtime-corejs3": "7.22.10",
"@iarna/toml": "2.2.5",
"@prisma/internals": "5.1.1",
"@prisma/internals": "5.2.0",
"@redwoodjs/project-config": "6.0.7",
"@types/line-column": "1.0.0",
"camelcase": "6.3.0",
"core-js": "3.32.0",
"deepmerge": "4.3.1",
"dotenv-defaults": "5.0.2",
"enquirer": "2.3.6",
"enquirer": "2.4.1",
"fast-glob": "3.3.1",
"graphql": "16.7.1",
"graphql": "16.8.0",
"lazy-get-decorator": "2.2.1",
"line-column": "1.0.2",
"lodash": "4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/studio/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@tailwindcss/forms": "0.5.3",
"@tremor/react": "3.4.1",
"graphiql": "2.4.7",
"graphql": "16.7.1",
"graphql": "16.8.0",
"graphql-scalars": "1.22.2",
"json-bigint-patch": "0.0.8",
"pretty-ms": "7.0.1",
Expand Down
Loading

0 comments on commit 5177391

Please sign in to comment.