1
0
mirror of synced 2026-02-04 03:01:17 -05:00

Compare commits

..

2006 Commits

Author SHA1 Message Date
Brandon Bayer
4068b4493e upgrade monorepo react to v18 alpha 2021-07-05 16:37:39 -04:00
Brandon Bayer
0448535ef0 Add test for Page.redirectAuthenticatedTo (#2531)
(meta)
2021-07-05 16:21:00 -04:00
Brandon Bayer
0df6aef3a3 fix broken api routes in canary release (#2545)
(patch)
2021-07-05 12:50:56 -04:00
Brandon Bayer
5ba2989592 fix cli npm build
(ignore)
2021-07-05 12:45:24 -04:00
Blitz.js Bot
9240d86ed6 (meta) added @esemeniuc as contributor 2021-07-05 12:09:51 -04:00
Eric Semeniuc
27e0dacdaf Route manifest replace nbsp with normal space (#2482)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-07-05 12:09:46 -04:00
Brandon Bayer
8dc1cd3ca8 Fix CSRF error when using session.$setPublicData (#2541)
(patch)
2021-07-05 11:03:16 -04:00
Brandon Bayer
413bc01676 bump recipe/example versions (ignore) 2021-06-24 21:11:02 -06:00
Brandon Bayer
7c025e9bd7 v0.38.3-canary.1 2021-06-24 21:09:13 -06:00
Brandon Bayer
24e51c7ae5 Next.js Fork Migration: Move blitz.config.(js|ts) support into nextjs core (patch) (#2532) 2021-06-24 23:06:55 -04:00
Brandon Bayer
b2f84f1224 bump recipe/example versions (ignore) 2021-06-24 11:40:33 -06:00
Brandon Bayer
8df18f24ad v0.38.3-canary.0 2021-06-24 11:39:25 -06:00
Brandon Bayer
d480d84e46 Move multiple pages folders support plus pages+api sibling into nextjs core (#2502)
(patch)
2021-06-24 13:37:34 -04:00
Brandon Bayer
f0a9fbeb14 bump recipe/example versions (ignore) 2021-06-24 10:00:19 -06:00
Brandon Bayer
fe8179b595 v0.38.2 2021-06-24 09:59:06 -06:00
Brandon Bayer
6eaed7a3b2 tweak internal tsconfig
(ignore)
2021-06-24 09:57:59 -06:00
Brandon Bayer
69e97017b1 Fix built in errors like RedirectError and AuthenticationError to not log as "uncaught" in browser console (#2522)
(patch)
2021-06-24 11:45:58 -04:00
Brandon Bayer
1aa2d79ef4 git subrepo push --force nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "4be32b7a5"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "4be32b7a5"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-06-23 18:54:24 -06:00
Brandon Bayer
194a3720ce build script (ignore) 2021-06-23 18:52:11 -06:00
Brandon Bayer
e21b22d672 git subrepo push nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "018261ad9"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "018261ad9"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-06-23 18:48:33 -06:00
Brandon Bayer
b634fe9587 Upgrade to Next.js 11.0.1 (#2526)
(patch)
2021-06-23 20:34:58 -04:00
t.kuriyama
9b35fcd018 Fix blitz db seed to print stack traces for any errors (#2528)
(patch)
2021-06-23 19:49:36 -04:00
Simon Knott
d16ed02a50 Fix prefetched dehydrated state to support Dates, Maps, etc (patch) (#2512)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-06-21 13:23:26 -04:00
Blitz.js Bot
bdec5cffbf (meta) updated @Cristy94 contributions 2021-06-21 13:17:37 -04:00
Buleandra Cristian
be430e093d Update userTrack logo (sponsor) (#2517)
(meta)
2021-06-21 13:17:32 -04:00
Brandon Bayer
3deb0045f4 bump recipe/example versions (ignore) 2021-06-19 17:28:04 -06:00
Brandon Bayer
c19e71624e v0.38.1 2021-06-19 17:25:42 -06:00
Blitz.js Bot
b6fcba1c01 (meta) added @benjakugler96 as contributor 2021-06-19 18:11:54 -04:00
Benja Kugler
dbdb6a4199 Fix browser error when using prisma.$use() (#2514)
Co-authored-by: benjamin.kugler <benjamin.kugler@elliemae.com> (patch)
2021-06-19 18:11:49 -04:00
Brandon Bayer
c151b3571e fix lint warning, unused path in generated api routes (patch) (#2513) 2021-06-19 15:20:55 -04:00
Blitz.js Bot
6198025ce5 (meta) added @prisis as contributor 2021-06-19 14:19:34 -04:00
Daniel Bannert
c9dba04f56 Fix so that npm scripts don't run on blitz install recipes (#2498)
Co-authored-by: danielb <daniel.bannert@limango.de> (patch)
2021-06-19 14:19:29 -04:00
Blitz.js Bot
a2c6c9ce23 (meta) updated @ntgussoni contributions 2021-06-19 14:01:48 -04:00
Nicolas Torres
b09c188113 Add support for custom messages and icons in recipes (#2510)
Adds ability to customize the success message icon in recipes (patch)

Co-authored-by: Nicolas <ntorres.dev@gmail.com>
2021-06-19 14:01:22 -04:00
Dustin Bachrach
cdd71af1cf Fix blitz generate to regenerate the Routes manifest (#2504)
(patch)
2021-06-19 13:58:55 -04:00
Brandon Bayer
54647d0054 fix validateZodSchema() to pass if schema undefined (#2511)
(patch)
2021-06-19 13:57:47 -04:00
Blitz.js Bot
1e39604ae1 (meta) added @igeligel as contributor 2021-06-18 12:22:31 -04:00
Dustin Bachrach
2f890b72ca Fix blitz generate /new page does not use Routes (#2501)
(patch)
2021-06-18 12:03:42 -04:00
Brandon Bayer
2a9125def5 bump recipe/example versions (ignore) 2021-06-17 09:32:09 -04:00
Brandon Bayer
2111ca6fae v0.38.0 2021-06-17 09:30:01 -04:00
Brandon Bayer
a640b1112f fix build
(ignore)
2021-06-16 19:33:31 -04:00
Brandon Bayer
0243df5b6a fix formatZodError to work with arrays
(fix)
2021-06-16 19:29:58 -04:00
Brandon Bayer
4256f48fa6 add formatZodError() utility (#2494)
(minor)
2021-06-16 18:30:12 -04:00
Brandon Bayer
1c256c9c11 (newapp) Upgrade react@alpha react-dom@alpha 2021-06-16 18:02:02 -04:00
Brandon Bayer
e392a37985 fix a couple next.config.js string
(ignore)
2021-06-16 16:53:50 -04:00
Brandon Bayer
e2b6dd2779 git subrepo push --force nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "8d1a527b8"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "8d1a527b8"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-06-16 16:19:29 -04:00
Brandon Bayer
e4e3e757bc remove all nextjs/examples (meta) 2021-06-16 16:17:23 -04:00
Brandon Bayer
18438fb45c Upgrade to Next.js 11 (#2489)
(minor)
2021-06-16 16:11:23 -04:00
Blitz.js Bot
b80cf675b6 (meta) added @deini as contributor 2021-06-15 21:41:38 -04:00
Brandon Bayer
4db0f32156 improve sync script (ignore) 2021-06-15 11:57:25 -04:00
Brandon Bayer
a63e234ca4 git subrepo push nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "3fafd4eeb"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "3fafd4eeb"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-06-15 11:55:42 -04:00
Blitz.js Bot
5f2bf3ae55 (meta) added @ashikka as contributor 2021-06-15 11:53:58 -04:00
Ashikka Gupta
da39eca564 Change all user facing references of next.js to blitz.js (#2438)
* fix: Change all user facing references of next.js to blitz.js

* fix: fixed instances of next.js in unit test files

* fix: fixed instances of next.js in integration test files

* fix: next.js regex in test integration 9

* fixes

* fix

* fix a test

* fix dynamicrouting test

* more test fix

* bump

Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-06-15 11:53:53 -04:00
Mina Abadir
9fc358b0df Fix bug with <Image> and SSR for configured domains (#2474)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-06-15 11:09:20 -04:00
Blitz.js Bot
6e7111397f (meta) updated @dbachrach contributions 2021-06-15 07:04:08 -04:00
Blitz.js Bot
fc66d61f0c (meta) added @dbachrach as contributor 2021-06-14 22:09:28 -04:00
Dustin Bachrach
026d3d84a1 Fix edit page generated by blitz generate to not have buggy behavior (#2487)
(patch)
2021-06-14 22:09:24 -04:00
Brandon Bayer
bd43af1ba5 more fix CI
(ignore)
2021-06-14 21:33:21 -04:00
Brandon Bayer
86be2c122e fix CI by upgrading browserslist (#2488)
* fix CI by upgrading browserslist

* fix (ignore)
2021-06-14 20:07:46 -04:00
Brandon Bayer
e2a54b5904 fix Page.authenticate = {redirect: '/login'} not working correctly on logout AND add RedirectError (patch) (#2483) 2021-06-14 12:08:56 -04:00
Blitz.js Bot
2c3afcf407 (meta) updated @lksnmnn contributions 2021-06-14 11:41:05 -04:00
Lukas Neumann
f478f83e9d Add setPublicDataForUser() — useful for updating the role of another user (#2473)
Co-authored-by: Lukas Neumann <l.neumann@layer9.berlin>
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2021-06-14 11:41:00 -04:00
Brandon Bayer
4e9968a2db Add <ErrorBoundary> component (major) (#2480) 2021-06-11 17:20:50 -04:00
Blitz.js Bot
5d0998ab84 (meta) added @lksnmnn as contributor 2021-06-11 15:00:20 -04:00
Blitz.js Bot
b3f1598212 (meta) updated @swinner2 contributions 2021-06-11 14:49:31 -04:00
Brandon Bayer
503ec19c66 fix broken vercel deployments (patch) (#2479) 2021-06-11 14:35:49 -04:00
Blitz.js Bot
f20d7cf8ec (meta) updated @swinner2 contributions 2021-06-11 14:31:31 -04:00
Sean Winner
81118cd6a0 Add validateZodSchema() API for better form errors (#2441)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2021-06-11 14:31:26 -04:00
Brandon Bayer
768562945e Rename DISABLE_CSRF_PROTECTION to DANGEROUSLY_DISABLE_CSRF_PROTECTION (patch) 2021-06-11 11:24:40 -04:00
Brandon Bayer
cac31cd1e6 fix pages to never render if Page.authenticate=true and logged out (patch) (#2476) 2021-06-10 17:35:57 -04:00
Brandon Bayer
3138fc5f6e fix GH actions to cancel existing actions on new push (meta) 2021-06-10 16:14:02 -04:00
Blitz.js Bot
2fa862ebf8 (meta) added @dangreaves as contributor 2021-06-10 12:32:36 -04:00
Dan Greaves
218bc15bd3 fix BlitzConfig type to allow extra fields (patch) (#2471) 2021-06-10 12:32:32 -04:00
Blitz.js Bot
be9f70850c (meta) added @kivi as contributor 2021-06-10 12:25:17 -04:00
kivi
ef6a6dbcc7 (newapp) move dev dependencies to devDependencies in package.json (better for Docker) (#2475) 2021-06-10 12:25:12 -04:00
Brandon Bayer
afa6792b66 bump recipe/example versions (ignore) 2021-06-08 14:32:26 -04:00
Brandon Bayer
7d5f437c7b v0.37.0 2021-06-08 14:31:05 -04:00
Brandon Bayer
a81f4518ae fix postinstall
(ignore)
2021-06-08 14:25:36 -04:00
Brandon Bayer
1407ddd7ad Fix one part of pnp issues (patch) (#2464) 2021-06-08 14:22:36 -04:00
Brandon Bayer
a510bd079b Fix webpack 5 support (Webpack 5 now used by default) (patch) (#2453)
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-08 13:31:52 -04:00
Blitz.js Bot
ff85cf1c17 (meta) updated @mabadir contributions 2021-06-08 13:03:39 -04:00
Mina Abadir
1ef378bff0 Fix to not build custom server during blitz start (#2408)
(patch)
2021-06-08 13:03:34 -04:00
Blitz.js Bot
22a845e13a (meta) added @garnerp as contributor 2021-06-08 11:57:50 -04:00
Brandon Bayer
8eb1509b9a Fix auth & middleware not working on Vercel (No longer need the path.resolve workaround) (patch) (#2463) 2021-06-07 20:26:59 -04:00
Brandon Bayer
c46decbbe7 (newapp) Update Prisma and React dependencies (#2462) 2021-06-07 15:59:09 -04:00
Blitz.js Bot
577206a404 (meta) updated @frankiesardo contributions 2021-06-07 15:12:15 -04:00
Francesco Sardo
8b245bef9a Fix Routes manifest for pages with parent & child relationships (patch) (#2424)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-06-07 15:12:09 -04:00
Blitz.js Bot
f2d41eff35 (meta) updated @markhughes contributions 2021-06-04 15:49:08 -04:00
Blitz.js Bot
f8ce548f4a (meta) added @sebastianhoitz as contributor 2021-06-04 14:11:52 -04:00
Sebastian Hoitz
d8aeb6b18f Fix CSRF 401 errors for HEAD requests (patch) (#2443) 2021-06-04 14:11:48 -04:00
Mark Hughes
f1de531124 Add ability to disable custom server hot reloading (#2447)
(minor)
2021-06-04 14:11:23 -04:00
Blitz.js Bot
9c54361cd6 (meta) added @max-programming as contributor 2021-06-04 14:08:53 -04:00
Max Programming
ee939ac7b8 Remove unneeded cd message during blitz install in some cases (#2451)
(patch)
2021-06-04 14:08:50 -04:00
Jeremy Liberman
3cf7d399cd Fix Prisma @@map in Enums break the model generator (#2445)
(patch)
2021-06-04 14:07:04 -04:00
Brandon Bayer
e4b788321b bump recipe/example versions (ignore) 2021-06-02 13:22:30 -04:00
Brandon Bayer
59272f7334 v0.36.4 2021-06-02 13:21:09 -04:00
Brandon Bayer
3416e097d8 Add helpful error when trying blitz export with blitz auth (patch) (#2435) 2021-06-02 13:11:22 -04:00
Brandon Bayer
49e7abbdfe add couple missing dependencies to @blitzjs/cli package (patch) (#2439) 2021-06-02 13:09:51 -04:00
Blitz.js Bot
a00f162bca (meta) added @swinner2 as contributor 2021-06-01 17:25:53 -04:00
Sean Winner
31498e2d46 Fix so blitz new always generates valid cookiePrefix (#2427)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> (patch)
2021-06-01 17:25:49 -04:00
Blitz.js Bot
6b463fcdd1 (meta) added @AntoineGuestin as contributor 2021-06-01 16:05:35 -04:00
Antoine G
e1785f97a9 add debug to blitz package (#2426)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-01 20:05:30 +00:00
Brandon Bayer
d4dc932bc3 remove CI from canary branch
(meta)
2021-06-01 15:33:03 -04:00
Brandon Bayer
750ba2e429 add to nextjs fork instructions
(ignore)
2021-06-01 14:43:00 -04:00
Brandon Bayer
a4e4cb2f64 git subrepo push --force nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "9d5938e8f"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "9d5938e8f"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-06-01 14:41:43 -04:00
Brandon Bayer
c5b461c641 fix nextjs subrepo
(ignore)
2021-06-01 10:26:46 -04:00
Brandon Bayer
174bf32c84 remove nextjs experimental react github action
(ignore)
2021-06-01 10:22:24 -04:00
Blitz.js Bot
cb432b6276 (meta) added @ormarek as contributor 2021-05-29 20:17:25 -04:00
Brandon Bayer
1ff0f00715 bump recipe/example versions (ignore) 2021-05-29 18:48:21 -04:00
Brandon Bayer
a3cf482e8f v0.36.3 2021-05-29 18:47:06 -04:00
Brandon Bayer
684b3f34c8 Fix broken Vercel deployments from version 0.35+ (patch) (#2419) 2021-05-29 18:45:14 -04:00
Brandon Bayer
f547f311f7 Fix third-party recipes not working (patch) (#2418) 2021-05-29 18:44:51 -04:00
Brandon Bayer
e7dc1b8352 Fix caught authentication errors showing as uncaught in Firefox (patch) (#2417) 2021-05-29 18:18:18 -04:00
Brandon Bayer
8fb8608e49 (newapp) Fix zod bug on /reset-password page
closes: #2414
2021-05-29 17:23:05 -04:00
Brandon Bayer
63e200e173 bump recipe/example versions (ignore) 2021-05-28 17:16:00 -04:00
Brandon Bayer
53bb153df8 v0.36.2 2021-05-28 17:14:14 -04:00
Brandon Bayer
3727385cd6 yet another fix
(ignore)
2021-05-28 17:11:44 -04:00
Brandon Bayer
1de36fd8dd v0.36.1 2021-05-28 17:10:05 -04:00
Brandon Bayer
5e2dafe519 another build fix
(ignore)
2021-05-28 17:07:12 -04:00
Brandon Bayer
8f08f38d80 fix build (ignore) 2021-05-28 17:06:02 -04:00
Brandon Bayer
61b8c95be8 v0.36.0 2021-05-28 17:03:39 -04:00
Brandon Bayer
a429013360 fix inability to install recipes for npm users (patch) (#2404) 2021-05-28 17:01:38 -04:00
Brandon Bayer
01c609be9e Add BlitzConfig type and add it to newapp template (#2411)
(minor)
2021-05-28 17:01:04 -04:00
Brandon Bayer
7e333955aa Upgrade nextjs to 10.2.3 (#2409)
(patch)
2021-05-28 16:18:58 -04:00
Brandon Bayer
0bfa5fdb7a add cross-spawn to blitz package (#2410)
(ignore)
2021-05-28 16:18:41 -04:00
JuanM04
27336d423a Upgrade templates to work with Zod v3 (#2375)
(minor)
2021-05-28 16:16:47 -04:00
Brandon Bayer
fa82ac913f git subrepo push nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "17f3f0f88"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "17f3f0f88"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-05-28 15:08:01 -04:00
Blitz.js Bot
65405b6f43 (meta) added @timbooker as contributor 2021-05-28 12:35:36 -04:00
Tim
ada67b5aed Fix queries & mutations to work with trailing slash config (patch) (#2392)
* Added trailingslash support for API endpoints.

* Accidentally RM'd actual condition it was meant to be based upon.

* simplify integration test

Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-05-28 16:35:31 +00:00
Blitz.js Bot
3dcc885186 (meta) added @guoqqqi as contributor 2021-05-28 11:12:22 -04:00
guoqqqi
0ce552c90e add contributor over time graph to CONTRIBUTOR_STATS (#2397)
(meta)
2021-05-28 11:12:17 -04:00
Mark Hughes
ec3930ca46 add support for nonce and crossOrigin in BlitzScript (#2377)
(minor)
2021-05-28 11:11:25 -04:00
Brandon Bayer
e3a5420cea Upgrade react-query and Fix CancelledError when clicking Logout (patch) (#2406) 2021-05-27 18:41:55 -04:00
Brandon Bayer
4156368b75 fix bug: cannot find module next/constants (patch) (#2402)
* fix bug of cannot find module `next/constants` (patch)

* fix

* fix

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-27 20:45:47 +00:00
Brandon Bayer
632df97342 bump recipe/example versions (ignore) 2021-05-26 17:39:24 -04:00
Brandon Bayer
eae332b0c7 v0.35.2 2021-05-26 17:38:14 -04:00
Brandon Bayer
7fdd07e598 (newapp) Fix typescript issue in forgotPassword.test.ts
closes: #2378
2021-05-26 17:34:50 -04:00
Blitz.js Bot
a328b6c19c (meta) updated @mabadir contributions 2021-05-26 17:30:25 -04:00
Mina Abadir
7e22f61079 Add Mina as L1 maintainer (#2391)
(meta)
2021-05-26 17:30:20 -04:00
Brandon Bayer
719d867eea remove debug log from cli (patch) 2021-05-26 17:29:23 -04:00
Brandon Bayer
3501f29521 bump recipe/example versions (ignore) 2021-05-26 17:15:57 -04:00
Brandon Bayer
d86b885897 v0.35.1 2021-05-26 16:14:40 -05:00
Blitz.js Bot
2302786e60 (meta) added @chronark as contributor 2021-05-26 06:50:25 -04:00
Brandon Bayer
0f4c2fb226 Only build blitz config when needed and Fix blitz.config.js not found error (patch) (#2389)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-25 16:00:21 -04:00
Blitz.js Bot
1e29525ef0 (meta) added @nimashoghi as contributor 2021-05-25 14:01:35 -04:00
Nima Shoghi
4a9776c94e Fixed blitz compile bug when noPropertyAccessFromIndexSignature is true (#2385)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-25 18:01:30 +00:00
Blitz.js Bot
ac67dc05e4 (meta) added @benbender as contributor 2021-05-25 11:57:49 -04:00
Benjamin Bender
662065380b Fix Regression on Tailwind Recipe purging in production (#2383)
Fix Regression on Tailwind Recipe for css-purging in production (originally fixed in #930, broken since #2304)
2021-05-25 11:57:45 -04:00
Blitz.js Bot
059e75ae08 (meta) added @Dipeshwagle as contributor 2021-05-25 11:41:03 -04:00
Dipesh Wagle
684f74bf6f Fix HEAD requests 'Cannot read property '$authorize' of undefined' (#2364)
(patch)
2021-05-25 11:40:58 -04:00
Brandon Bayer
573ffa7d34 disable the react@next cron workflow
(ignore)
2021-05-24 09:59:52 -05:00
Blitz.js Bot
e22a44ba77 (meta) added @enemycnt as contributor 2021-05-21 18:37:51 -04:00
Simon Knott
cea66f9f1b Allow passing Route Manifest result to Page.authenticate.redirectTo (#2359)
(patch)
2021-05-19 10:56:34 -04:00
Blitz.js Bot
2e05dec219 (meta) added @frankiesardo as contributor 2021-05-19 10:45:35 -04:00
Brandon Bayer
df2f83092a bump recipe/example versions (ignore) 2021-05-17 18:46:59 -04:00
Brandon Bayer
782a71026e v0.35.0 2021-05-17 18:45:44 -04:00
Blitz.js Bot
62fb61fa56 (meta) added @mabadir as contributor 2021-05-17 18:41:01 -04:00
Mina Abadir
af9df4cda4 Use cookie prefix from config.blitz.js instead of package.json name field (#2311)
Co-authored-by: Brandon Bayer <b@bayer.ws> (major)
2021-05-17 18:40:55 -04:00
Simon Knott
a535b7f458 Allow using Route Manifest for Page.redirectAuthenticatedTo (#2243)
(minor)
2021-05-17 18:29:36 -04:00
Simon Knott
79ca87ef71 Fix Routes.X is not a function when inside a monorepo
(patch)
2021-05-17 17:57:10 -04:00
Blitz.js Bot
1034b0189a (meta) added @Patil2099 as contributor 2021-05-17 17:18:32 -04:00
Blitz.js Bot
3ca262d5e3 (meta) added @swiftgaruda as contributor 2021-05-16 18:43:52 -04:00
Blitz.js Bot
b5d7095408 (meta) added @fernvilla as contributor 2021-05-14 11:21:52 -04:00
Fernando Villasenor
8ff005f9e6 Default dependencies parameter to empty object when undefined - fixes #2339 (#2340) 2021-05-14 15:21:47 +00:00
JuanM04
830e92e956 Added userTrack image to assets 2021-05-12 08:27:43 -03:00
Blitz.js Bot
f6ee4b4753 (meta) added @craigglennie as contributor 2021-05-11 06:28:17 -04:00
Brandon Bayer
6e9e787500 bump recipe/example versions (ignore) 2021-05-10 18:42:47 -04:00
Brandon Bayer
37f3c951d8 v0.35.0-canary.6 2021-05-10 18:41:39 -04:00
Brandon Bayer
c9be82c5f8 add ability to increase bodyParser size for queries & mutations (#2328)
(minor)
2021-05-10 18:40:13 -04:00
Brandon Bayer
e67291fa11 fix flaky cypress test
(ignore)
2021-05-10 18:39:05 -04:00
Brandon Bayer
93f7b8f981 fix incorrect csrf warning log
(ignore)
2021-05-10 18:39:05 -04:00
Brandon Bayer
0595a951b3 fix to not compile blitz.config.js if it is using tsconfig-paths/register (#2327)
(patch)
2021-05-10 18:14:11 -04:00
Brandon Bayer
0ec39efc3b fix custom server not being detected (#2326)
(patch)
2021-05-10 17:56:24 -04:00
Brandon Bayer
971013ae32 (newapp) move all devDependencies to regular dependencies (#2325) 2021-05-10 17:27:50 -04:00
Joe Edelman
d0a7e23231 allow useQuery to run during SSR or SSG (#1940)
Co-authored-by: Jeremy Liberman <jeremy@jeremyliberman.com>
Co-authored-by: Jeremy Liberman <mrleebo@msn.com> (minor)
2021-05-10 16:38:09 -04:00
Simon Knott
cf428bb563 Deserialize SuperJSON-ed pageProps before passing to dehydratedState (#2281)
Co-authored-by: Jeremy Liberman <mrleebo@msn.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-05-10 16:31:11 -04:00
Blitz.js Bot
2ff44aa3e5 (meta) added @acornellier as contributor 2021-05-10 15:50:00 -04:00
acornellier
d3fcd285ff fix useInfiniteQuery return type when suspense is disabled (#2312)
(patch)
2021-05-10 15:49:56 -04:00
Blitz.js Bot
b6d173acc3 (meta) added @Hardik3296 as contributor 2021-05-10 15:43:15 -04:00
Blitz.js Bot
630b04f932 (meta) added @meepdeew as contributor 2021-05-09 08:42:37 -04:00
Blitz.js Bot
1c023dc85d (meta) updated @abuuzayr contributions 2021-05-06 11:16:00 -04:00
Brandon Bayer
2df4323df7 fix tailwind recipe
(ignore)
2021-05-06 10:58:51 -04:00
Blitz.js Bot
57ea77ea05 (meta) added @adblanc as contributor 2021-05-05 17:39:21 -04:00
Blanc Adrien
4201cdd3c8 Add helpful message when request is missing the anti-csrf header (patch) (#2113)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: Mina Abadir <mina@abadir.email>
2021-05-05 17:39:16 -04:00
Brandon Bayer
2d487820ae improve recipe install log message
(patch)
2021-05-05 15:49:15 -04:00
Brandon Bayer
ba1643f3b0 bump recipe/example versions (ignore) 2021-05-05 15:47:21 -04:00
Brandon Bayer
162a0a48d2 v0.35.0-canary.5 2021-05-05 15:46:09 -04:00
Blitz.js Bot
4e20f06099 (meta) added @Anjianto as contributor 2021-05-05 15:44:49 -04:00
Anjianto
ce2c092b51 Adding JIT mode for Tailwind recipe (#2304)
(recipe)
2021-05-05 15:44:45 -04:00
Brandon Bayer
e44bafb101 fix can't install recipes (#2307)
(patch)
2021-05-05 15:17:55 -04:00
Brandon Bayer
16d04901d4 bump recipe/example versions (ignore) 2021-05-04 16:43:09 -04:00
Brandon Bayer
6b995be962 v0.35.0-canary.4 2021-05-04 16:41:45 -04:00
Brandon Bayer
72b9b09aba Fix inability to create new app from canary AND fix Cannot find module 'react-dom' error (#2296)
(patch)
2021-05-04 15:18:53 -04:00
Brandon Bayer
95ef4d0cdb fix recipe
(patch)
2021-05-04 13:22:37 -04:00
Blitz.js Bot
faa6add473 (meta) added @agustif as contributor 2021-05-04 12:48:28 -04:00
Agusti Fernandez
55ab9ac6fc Adds bumbag recipe (#2298) 2021-05-04 12:48:23 -04:00
Brandon Bayer
aa121eb818 Fix inability to install recipe (#2297)
* remove react dep from installer

* fix flake (patch)
2021-05-03 20:33:29 -04:00
Blitz.js Bot
92b1d72c88 (meta) added @kirakik as contributor 2021-05-03 18:38:21 -04:00
Kenza Iraki
09194d1b89 Fix optional catch-all handling in routes codegen (#2290)
Co-authored-by: Kenza Iraki <kirakik@gmail.com> (patch)
2021-05-03 18:38:17 -04:00
Blitz.js Bot
0e479e4e21 (meta) updated @ericvicenti contributions 2021-05-03 17:37:54 -04:00
Eric Vicenti
3bc114949b (newapp) Update TypeScript Default Config: Safety for indexAccess (#2291) 2021-05-03 17:37:50 -04:00
Vytenis
ada8e2d425 (newapp) Update global.d.ts to reference types from nextjs (#1995)
* Update types.d.ts

Just use reference to nextjs typings. It is already includes such things as `module.scss` and more

* Update packages/generator/templates/app/types.d.ts

Co-authored-by: Brandon Bayer <b@bayer.ws>

Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-04-30 17:30:09 -04:00
Blitz.js Bot
0a37ea4de8 (meta) added @dawnofmidnight as contributor 2021-04-30 11:17:10 -04:00
Brandon Bayer
bd803f7c24 bump recipe/example versions (ignore) 2021-04-29 18:40:08 -04:00
Brandon Bayer
ea2137b928 v0.35.0-canary.3 2021-04-29 18:39:02 -04:00
Brandon Bayer
fe483be831 git subrepo push nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "f485e5670"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "f485e5670"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-04-29 18:36:20 -04:00
Brandon Bayer
9e96eaf6e7 Update next.js to 10.2.0 (#2285)
(minor)
2021-04-29 18:35:45 -04:00
Brandon Bayer
b08084cf9c git subrepo push --force nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "fc094e6cb"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "fc094e6cb"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-04-29 16:05:17 -04:00
Brandon Bayer
0086a1f2fc Add support for blitz.config.ts (#2283)
(minor)
2021-04-29 15:32:42 -04:00
Jeremy Liberman
4bb6ded00c Fix generators not support string ids (#2267)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-04-28 17:43:21 -04:00
Roshan Manuel
1d8f69df7e (newapp) Add a <Suspense> boundary to _app.tsx (#2277)
Co-authored-by: Roshan Manuel <Roshan,manuel@angelic-group.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-04-27 17:24:06 -04:00
Jeremy Liberman
bece1d51b5 For building Recipes: New schema.prisma transform utilities (#2169)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2021-04-27 17:08:19 -04:00
Blitz.js Bot
de70e1af00 (meta) updated @MrLeebo contributions 2021-04-27 16:59:53 -04:00
Blitz.js Bot
7cf85e2ec6 (meta) updated @mubaidr contributions 2021-04-27 16:59:01 -04:00
Brandon Bayer
aa26279fff bump recipe/example versions (ignore) 2021-04-27 15:50:49 -04:00
Brandon Bayer
b6b27166fb v0.35.0-canary.2 2021-04-27 15:49:25 -04:00
Brandon Bayer
6eb96a3190 bump recipe/example versions (ignore) 2021-04-27 15:46:50 -04:00
Brandon Bayer
03d3bef907 v0.35.0-canary.1 2021-04-26 15:11:45 -04:00
Blitz.js Bot
afd4e596d2 (meta) added @lumaxis as contributor 2021-04-26 15:08:34 -04:00
Lukas Spieß
de7361233e Fix formatting inconsistency in sponsors tables (#2275)
(meta)
2021-04-26 15:08:29 -04:00
Blitz.js Bot
a4b9005df3 (meta) added @mlabate as contributor 2021-04-25 14:00:24 -04:00
Blitz.js Bot
fa264b8d8c (meta) added @silicontwin as contributor 2021-04-24 18:00:35 -04:00
Nick Warren
e9e26653f3 Set Prettier as default formatter for VS Code users (#2266)
(newapp)
2021-04-24 18:00:31 -04:00
Blitz.js Bot
b007405648 (meta) added @mubaidr as contributor 2021-04-24 16:50:12 -04:00
Muhammad Ubaid Raza
92f769d344 Enable proxy support for cli/install (#2264)
Co-authored-by: Brandon Bayer <b@bayer.ws> (feat)
2021-04-24 16:50:07 -04:00
Brandon Bayer
b896a3c3e1 bump recipe/example versions (ignore) 2021-04-23 16:11:05 -04:00
Brandon Bayer
08afd85e7b v0.35.0-canary.0 2021-04-21 17:45:15 -04:00
Brandon Bayer
adcb08eb8f Add experimental.initServer hook for running code on server start (#2256)
* Add experimental.initServer hook for running code on server start

* fix ci (minor)
2021-04-21 16:17:20 -04:00
Brandon Bayer
6eeefcadb4 Add Typescript & esmodule support and hot reloading to custom servers (#2255)
(minor)
2021-04-21 15:44:50 -04:00
Brandon Bayer
cca9ba7ab7 bump recipe/example versions (ignore) 2021-04-21 12:23:00 -04:00
Brandon Bayer
ec3f871189 v0.34.3 2021-04-21 12:16:09 -04:00
Brandon Bayer
9cb37aac93 v0.34.2 2021-04-21 12:01:56 -04:00
Brandon Bayer
0222e1572d bump recipe/example versions (ignore) 2021-04-21 11:59:19 -04:00
Brandon Bayer
6ee30561e7 v0.34.2-canary.0 2021-04-21 11:58:01 -04:00
Robert Malko
958005c186 Fix blitz generate generating pages with bad links (#2245)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-04-21 11:56:13 -04:00
Brandon Bayer
0a14acaea9 Update README.md
(ignore)
2021-04-21 11:09:43 -04:00
Brandon Bayer
df1d648c5b add RIT as bronze sponsor
(meta)
2021-04-21 11:07:37 -04:00
Brandon Bayer
1857eb830f fix blitz console queries & mutations not loading (#2252)
(patch)
2021-04-20 19:47:23 -04:00
Brandon Bayer
fcb2782b33 fix blitz console circular dependency issues (#2251)
(patch)
2021-04-20 18:38:36 -04:00
Brandon Bayer
57b9b88380 Update bug_report.yml 2021-04-20 17:41:03 -04:00
Brandon Bayer
ab10fd408a Update bug_report.yml 2021-04-20 17:38:48 -04:00
Brandon Bayer
1869b9c9f5 fix useQuery infinite loop after logout (#2249)
* fix useQuery infinite loop after logout

* auto retry example app tests

* fix test (patch)
2021-04-20 16:40:43 -04:00
Brandon Bayer
b546754dd1 remove beta warning from CLI because it makes people get the wrong impression (#2250)
(patch)
2021-04-20 16:40:29 -04:00
Brandon Bayer
3dde672b5c Fix npm/yarn version auditing (#2247)
(patch)
2021-04-20 14:59:00 -04:00
Blitz.js Bot
848d961e1c (meta) added @Mokshit06 as contributor 2021-04-20 11:02:22 -04:00
Mokshit Jain
2cf32ad352 Throw an error if using a query with useMutation or a mutation with useQuery (#2223)
(patch)
2021-04-20 11:02:16 -04:00
Brandon Bayer
f62360834d bump recipe/example versions (ignore) 2021-04-19 19:53:38 -04:00
Brandon Bayer
6a3c2fffeb v0.34.1 2021-04-19 19:52:29 -04:00
Brandon Bayer
df8434cd9b add integration test for no-suspense mode (#2241)
(meta)
2021-04-19 18:52:31 -04:00
JuanM04
b7abca29ab Export BlitzApiHandler type (#2239)
(patch)
2021-04-19 18:18:41 -04:00
Brandon Bayer
559496af6b add couple integration tests for authentication (#2240) 2021-04-19 18:16:10 -04:00
Brandon Bayer
d15226e770 fix CI on windows (#2236)
(ignore)
2021-04-19 17:15:06 -04:00
Brandon Bayer
a377e6b94f fix type issues with Routes manifest (#2238)
* fix type of Routes manifest to not include null | undefined for pathname

* remove unused keys from from route manifest types (patch)
2021-04-19 16:02:47 -04:00
JuanM04
177dccdcba Fix Routes manifest type error. Change to string to string | number (#2228)
Co-authored-by: Simon Knott <info@simonknott.de> (patch)
2021-04-19 15:29:30 -04:00
Blitz.js Bot
0b06288210 (meta) added @frontsideair as contributor 2021-04-19 12:43:15 -04:00
Blitz.js Bot
36211b9968 (meta) added @antonykamp as contributor 2021-04-17 11:28:31 -04:00
Blitz.js Bot
a0c5209a94 (meta) added @TommasoBruno99 as contributor 2021-04-16 18:53:49 -04:00
Brandon Bayer
39a720df63 bump recipe/example versions (ignore) 2021-04-16 15:43:44 -04:00
Brandon Bayer
c335a1d968 v0.34.0 2021-04-16 15:42:33 -04:00
Brandon Bayer
de286205b1 fix so objects don't break telementry
(ignore)
2021-04-16 15:35:12 -04:00
Brandon Bayer
c86c0527a4 update release script
(ignore)
2021-04-15 16:48:58 -04:00
Brandon Bayer
8cdd56fc40 bump recipe/example versions 2021-04-15 16:48:15 -04:00
Brandon Bayer
617ab8c564 v0.34.0-canary.5 2021-04-15 16:46:55 -04:00
Brandon Bayer
92b90ee49c adjust build script
(ignore)
2021-04-15 16:45:51 -04:00
Brandon Bayer
ea26d8ecb8 Fix vercel deployments for canary release (#2226)
(patch)
2021-04-15 16:44:04 -04:00
Brandon Bayer
a18c00dbc3 bump recipe/example versions 2021-04-15 13:03:05 -04:00
Brandon Bayer
fdab34bee4 v0.34.0-canary.4 2021-04-15 13:02:18 -04:00
Brandon Bayer
cf7d34764e Revert "v0.34.0-y.0"
This reverts commit b6d264c294.
2021-04-15 13:01:48 -04:00
Brandon Bayer
6f8d25438d Revert "bump recipe/example versions"
This reverts commit c301d296a5.
2021-04-15 13:01:43 -04:00
Brandon Bayer
c301d296a5 bump recipe/example versions 2021-04-15 12:54:44 -04:00
Brandon Bayer
b6d264c294 v0.34.0-y.0 2021-04-15 12:54:06 -04:00
Blitz.js Bot
61d11e4c89 (meta) updated @sakulstra contributions 2021-04-15 12:52:22 -04:00
Lukas Strassel
39e738c240 Fix useInfiniteQuery suspense bug in canary release by upgrading react-query to 3.13.9 (patch) (#2197)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-04-15 12:52:17 -04:00
Brandon Bayer
d88fc0430f send anonymous analytics to to blitz collector instead of nextjs (#2224)
* send anonymous analytics to to blitz collector instead of nextjs

* turn off telementry in CI (patch)
2021-04-15 12:25:33 -04:00
Brandon Bayer
6bbe9b9720 remove aem as codeowner (retired maintainer)
(ignore)
2021-04-14 11:59:24 -04:00
Michael Ford
ec5cc08062 Fix crash when using Blitz inside iframes (#2219)
(patch)
2021-04-14 11:49:57 -04:00
0xflotus
fc216c283d fix: small errors in rfc docs (#2217)
(ignore)
2021-04-14 11:40:21 -04:00
Blitz.js Bot
03ebcb911d (meta) added @laubonghaudoi as contributor 2021-04-14 11:36:39 -04:00
Blitz.js Bot
2136ab7520 (meta) added @Dieman89 as contributor 2021-04-14 11:36:07 -04:00
Brandon Bayer
58b58d292c Add Kevin as L1 maintainer (was missing from here)
(ignore)
2021-04-14 11:21:09 -04:00
Brandon Bayer
f861dd6683 Retire a number of maintainers that haven't been active in long time
(meta)
2021-04-14 11:16:05 -04:00
Brandon Bayer
559d20d1a1 (patch) upgrade react-query to 3.13.6 (#2222) 2021-04-13 16:39:48 -04:00
Brandon Bayer
2ae313a43a Fix new app file logging and fix .npmrc not being generated in canary release (patch) (#2221)
(patch)
2021-04-13 15:35:18 -04:00
Blitz.js Bot
a8b3794a60 (meta) added @sean-brydon as contributor 2021-04-13 15:28:18 -04:00
Brandon Bayer
0bfd917b24 Fix "Failed to load config in getConfig" log message (#2220)
(patch)
2021-04-13 14:52:16 -04:00
Brandon Bayer
2e3116b58a fix blitz integration tests on CI
(ignore)
2021-04-13 11:09:04 -04:00
Brandon Bayer
b18fe2615c (newapp) Fix husky scripts to use npx for binaries instead of npm run (#2213) 2021-04-12 13:11:23 -04:00
Blitz.js Bot
8de82025d0 (meta) added @peterpalau as contributor 2021-04-12 12:42:56 -04:00
Pedro Enrique Palau Isaac
8822a38c60 (newapp) Rename types.d.ts to global.d.ts (#2205) 2021-04-12 12:42:52 -04:00
Brandon Bayer
3879ecde1f fix integration test types and fix nextjs pnpm test (#2212)
(meta)
2021-04-12 12:23:30 -04:00
Brandon Bayer
5b8dab3fb3 update PR template
(ignore)
2021-04-12 11:59:25 -04:00
Blitz.js Bot
e1276f93a0 (meta) added @Cristy94 as contributor 2021-04-11 07:22:40 -04:00
Buleandra Cristian
0c2abcb9de Fix userTrack sponsor link (#2204) 2021-04-11 07:22:35 -04:00
Brandon Bayer
3058d64dad bump recipe/example versions 2021-04-10 18:26:36 -04:00
Brandon Bayer
973c2384ec v0.34.0-canary.3 2021-04-10 18:24:00 -04:00
Brandon Bayer
0cba94dd2e Fix cannot find module 'next/constants' in 0.34.0-canary (#2203)
(patch)
2021-04-10 18:22:37 -04:00
Simon Knott
bf7eed62bd Add autogenerated Routes manifest for use with <Link> components (#2042)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-04-10 16:22:58 -04:00
Blitz.js Bot
5fc813a64b (meta) added @simonelnahas as contributor 2021-04-10 16:05:38 -04:00
Brandon Bayer
9e78d1c7f6 add integration test for invalidateQuery (#2194)
(meta)
2021-04-08 19:13:57 -04:00
Brandon Bayer
fa8fd64921 add first blitz integration test for useQuery (#2193)
* add first blitz integration test for useQuery

* link to couple nextjs test files instead of duplicate

* CI name tweaks (meta)
2021-04-08 18:23:19 -04:00
Brandon Bayer
bc0c7287ec Add new integration test harness (#2189)
(meta)
2021-04-08 16:31:17 -04:00
Blitz.js Bot
3c3f10b201 (meta) added @jahredhope as contributor 2021-04-08 11:05:47 -04:00
Brandon Bayer
e1f7cf8bb4 bump recipe and example versions 2021-04-07 15:40:58 -04:00
Brandon Bayer
f3d0f7f79d v0.34.0-canary.2 2021-04-07 15:39:57 -04:00
Brandon Bayer
15ee721fc9 Upgrade our nextjs fork to 10.1.3 (#2186)
(minor)
2021-04-07 15:34:02 -04:00
Brandon Bayer
9a872ef14a update recipe/example blitz versions
(ignore)
2021-04-06 17:30:20 -04:00
Brandon Bayer
6df0db9b87 git subrepo push nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "c5122c4c0"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "c5122c4c0"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-04-06 16:50:13 -04:00
Brandon Bayer
48cca48e60 update next fork sync scripts
(ignore)
2021-04-06 16:49:25 -04:00
Brandon Bayer
65e67ffcc3 update deploy script
(ignore)
2021-04-06 16:48:29 -04:00
Brandon Bayer
4d42b462da v0.34.0-canary.1 2021-04-06 16:46:10 -04:00
Brandon Bayer
a17227d853 Prune unchanged nextjs packages from workspace & build (#2182)
(ignore)
2021-04-06 16:44:03 -04:00
Brandon Bayer
b3facfc9a5 fix dev script
(ignore)
2021-04-06 10:59:56 -04:00
Brandon Bayer
6527a14f28 Change Blitz to use our nextjs fork (no internal changes besides using our own build) (#2122)
(patch)
2021-04-06 10:52:34 -04:00
Brandon Bayer
5d473a2312 Update README.md
(ignore)
2021-04-05 18:49:43 -04:00
Brandon Bayer
0aa5280a0f Update README.md 2021-04-05 18:49:10 -04:00
Brandon Bayer
a3737aff3d (meta) add userTrack as seedling sponsor 2021-04-05 18:44:23 -04:00
Brandon Bayer
d8d12be249 v0.34.0-canary.0 2021-04-05 18:07:04 -04:00
Blitz.js Bot
af539332a1 (meta) updated @tundera contributions 2021-04-05 15:03:38 -04:00
Blitz.js Bot
563720bb57 (meta) updated @tundera contributions 2021-04-05 15:00:31 -04:00
tundera
d242056848 (major) Upgrade to React Query v3 (#2101)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-04-05 15:00:27 -04:00
JuanM04
8f659f8b0b (newapp) Upgrade dependencies (#2176) 2021-04-05 14:12:01 -04:00
JuanM04
63af540c87 (newapp) Add .editorconfig and .vscode extension recomendations (#2142)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-04-02 11:12:34 -04:00
Lukas Strassel
a26fdd8162 Fix shallow routing (#2173)
(patch)
2021-03-31 18:21:52 -04:00
JuanM04
04a157531f Fix query string spaces with useRouterQuery() (#2174)
(patch)
2021-03-31 18:17:35 -04:00
Jeremy Liberman
f099a88d38 Remove prisma 2.19 version upgrade from GQL recipe (#2167)
Redundant thanks to https://github.com/blitz-js/blitz/pull/2138 (recipe)
2021-03-31 18:16:11 -04:00
Roshan Manuel
f40c0f022e Fix quirrel install recipe (#2170)
Co-authored-by: Roshan Manuel <Roshan,manuel@angelic-group.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (recipe)
2021-03-31 18:12:14 -04:00
Blitz.js Bot
1d4695a17a (meta) updated @konradkalemba contributions 2021-03-31 18:09:43 -04:00
Justin Hall
a293d8bfa7 (meta) fix ultra scripts so they work on Windows (#2154)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-29 16:53:57 -04:00
Kevin Langley Jr
18c1b9cb86 Switch to using @blitz/installer helper functions … (#2164)
(meta)
2021-03-29 16:52:43 -04:00
Justin Hall
32328b442d Update Emotion recipe to better leverage the installer package (#2156)
(meta)
2021-03-29 15:08:11 -04:00
Justin Hall
541b612fff Update findModuleExportsExpressions installer transform utility (#2155)
(meta)
2021-03-29 14:35:51 -04:00
Blitz.js Bot
cc7c72d1c1 (meta) added @andrearizzello as contributor 2021-03-28 17:19:20 -04:00
Brandon Bayer
46b6395870 git subrepo clone --force git@github.com:blitz-js/next.js.git nextjs
subrepo:
  subdir:   "nextjs"
  merged:   "ec12f1876"
upstream:
  origin:   "git@github.com:blitz-js/next.js.git"
  branch:   "canary"
  commit:   "ec12f1876"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-03-27 12:29:37 -04:00
Brandon Bayer
9a13b4e361 v0.33.1 2021-03-27 11:16:18 -04:00
Blitz.js Bot
3147394f86 (meta) added @markhughes as contributor 2021-03-27 11:12:18 -04:00
Mark Hughes
59f6f158e2 Fix bug when db folder is not present (#2152)
(patch)
2021-03-27 11:12:14 -04:00
JuanM04
2c548fa875 (newapp) Update react/react-dom to 0.0.0-experimental-6a589ad71 (#2149) 2021-03-26 11:28:33 -04:00
Blitz.js Bot
fa14a92bcb (meta) updated @gstranger contributions 2021-03-26 11:27:31 -04:00
Blitz.js Bot
5ba52be9f5 (meta) added @gstranger as contributor 2021-03-26 11:25:54 -04:00
gstranger
006cae4288 (recipe) Update render recipe with SESSION_SECRET_KEY (#2148)
As noted in this PR: https://github.com/blitz-js/blitzjs.com/pull/421 blitz requires a SESSION_SECRET_KEY when deployed to prod. This change will make it easier for new devs to deploy instantly to render using this template.
2021-03-26 11:24:45 -04:00
Blitz.js Bot
2e15ba2e82 (meta) added @Maastrich as contributor 2021-03-25 16:20:00 -04:00
Mathis Pinsault
5d56db5928 (meta) update PR template (#2141)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-25 16:19:56 -04:00
Blitz.js Bot
4baa37ba38 (meta) updated @JuanM04 contributions 2021-03-25 16:14:16 -04:00
JuanM04
03d9711983 Fix query parameter decoding (#2143)
(patch)
2021-03-25 16:14:11 -04:00
Brandon Bayer
54796b6afd fix digas logo 2021-03-24 10:57:08 -04:00
Brandon Bayer
e826deb503 update digsas svg
(ignore)
2021-03-24 10:08:44 -04:00
Brandon Bayer
ee5cceb9c8 add Digsas.com as seedling sponsor
(meta)
2021-03-24 10:06:02 -04:00
Blitz.js Bot
1a28e5b1c0 (meta) added @amdolan as contributor 2021-03-23 19:25:00 -04:00
Alex Dolan
a0b53dc149 Upgrade prisma to 2.19, remove --preview-feature from migrate (#2138)
Co-authored-by: Blitz.js CLI <noop@blitzjs.com> (newapp)
2021-03-23 19:24:56 -04:00
Brandon Bayer
006ef89fbe fix apollo recipe
(ignore)
2021-03-22 18:13:33 -04:00
Jeremy Liberman
44aac3bb3a Add blitz install graphql-apollo-server recipe to implement a GraphQL API endpoint (#2073)
(recipe)
2021-03-22 18:12:14 -04:00
Blitz.js Bot
d5872d9b51 (meta) added @ericvicenti as contributor 2021-03-22 17:37:59 -04:00
Blitz.js Bot
e35d17d6a3 (meta) added @FarazPatankar as contributor 2021-03-21 11:20:40 -04:00
Blitz.js Bot
70cc8777d6 (meta) added @franky47 as contributor 2021-03-19 17:22:07 -04:00
Brandon Bayer
6cc4fb6c59 Update nextjs fork to 10.0.9 (#2121)
(ignore)
2021-03-17 17:45:00 -04:00
Brandon Bayer
d299d50364 v0.33.0 2021-03-17 15:21:14 -04:00
Blitz.js Bot
7f7dcd381f (meta) updated @Roesh contributions 2021-03-17 15:12:25 -04:00
Roshan Manuel
12f533972d Fix typescript jest issue in forgotPassword.test.ts (#2110)
* don't throw an error if checkYarn is null or checkYarn.stdout is null or undefined

* make sure to check if this version is less than the latest version (newapp)

* fix forgotpassword test template, sync auth example tests

* revert to ensure monorepo tests work

* revert to original password and index tests

* remove merge reference

Co-authored-by: Roshan Manuel <Roshan,manuel@angelic-group.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-17 15:12:21 -04:00
Blitz.js Bot
c574e28c1a (meta) updated @remjx contributions 2021-03-17 15:06:34 -04:00
Mark Jackson
9616836303 use decodeURIComponent for router.query.next during page authentication redirect (#2114)
* use decodeURIComponent to fix bug where slashes in url path were not being converted from hex

* handle decodeURIComponent(undefined) case (newapp)

* fix type error

Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-17 15:06:30 -04:00
Blitz.js Bot
22cd691758 (meta) added @tmcw as contributor 2021-03-17 14:11:46 -04:00
Blitz.js Bot
e6b34a7771 (meta) updated @kevinlangleyjr contributions 2021-03-17 12:33:50 -04:00
Brandon Bayer
3b6a2a2f68 (meta) revert to typescript 4.1 because of nextjs integration issues 2021-03-16 16:03:03 -04:00
depfu[bot]
08f0a87088 Upgrade next: 10.0.7 → 10.0.9 (patch) (#2119)
* Update next to version 10.0.9

* fixes

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-16 15:10:16 -04:00
Brandon Bayer
cae123dfda Add @reo777 as a contributor 2021-03-16 14:34:49 -04:00
Brandon Bayer
c20b3a19f6 Add @pavestru as a contributor 2021-03-16 14:34:41 -04:00
Brandon Bayer
45b281acb6 Add @pbteja1998 as a contributor 2021-03-16 14:34:35 -04:00
Brandon Bayer
85fec4f386 Add @Flavyoo as a contributor 2021-03-16 14:34:25 -04:00
Simon Knott
bfe3f90d2a Add blitz export command (#2043)
* Proxy "blitz export" to "next export" (minor)

* Add "static" example

* Fix manifest missing

* fix tsc error

* Fix version of Blitz for static example

* Use preconstructs monorepo build tooling

* Add type that static example needs for compilation

* Run "next export" on ".next", not on ".blitz/build/"

* Remove forgotten console.log o.O

* Don't change type of nextBuild[manifest]

* Update static example Blitz version

Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-16 14:28:32 -04:00
Blitz.js Bot
8bc3a402bc (meta) added @the-red as contributor 2021-03-16 13:42:09 -04:00
Blitz.js Bot
fb27225445 (meta) added @skn0tt as contributor 2021-03-16 13:37:53 -04:00
Kevin Langley Jr
7617579d9c Fixing recipe TODOs (#2112)
(meta)
2021-03-15 19:39:12 -04:00
Kevin Langley Jr
09da51c544 Add blitz install logrocket recipe (#2111)
* Adding initial recipe for LogRocket (recipe)

* Remove NodePath import since it is not used. Simplifying call to LogRocket.identify to just pass in the userId as the first parameter and sessionData object as the second parameter.

* Add comment to LogRocket config

* Fixing copy/paste comment for transform files step in LogRocket recipe

* Removing check for useRouter in blitz import as we are no longer using it. Removing variable declaration node, that is unused.

* Changing directory for logrocket.ts helpers from utils to integrations.
2021-03-15 19:37:10 -04:00
JuanM04
720ee606bd Fix duplicated Set-Cookie header (#2109)
(patch)
2021-03-15 18:27:28 -04:00
Pavel Struhar
7022505a60 Fix -d shorthand for --dry-run missing in blitz new (#2104)
(patch)
2021-03-12 12:19:17 -05:00
Brandon Bayer
ca7cf26891 (newapp) Update auth mutations to trim whitespace from email & password (#2103) 2021-03-11 15:36:58 -05:00
Brandon Bayer
3812b907a4 v0.32.1 2021-03-10 12:34:18 -05:00
Brandon Bayer
2d4f70786f (patch) fix useRouterQuery to not parse values (leave as string) (#2102) 2021-03-10 12:31:38 -05:00
Jack Zhao
5883de88b2 (patch) fix another bug with queries/mutations when using basePath (#2100) 2021-03-10 12:31:28 -05:00
Simon Knott
3ac92528f5 Fix not being able to use await in blitz console for some users (#2077)
(patch)
2021-03-10 12:28:54 -05:00
Brandon Bayer
3b114e0b37 v0.32.0 2021-03-09 16:59:48 -05:00
allcontributors[bot]
c79bcae95b docs: add Roesh as a contributor (#2097)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-03-09 10:29:10 -03:00
allcontributors[bot]
31155ea360 docs: add bugzpodder as a contributor (#2095)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-03-09 10:28:34 -03:00
Brandon Bayer
e3ed233bc2 (patch) fix build build failure in a weird nextjs edgecase (#2094) 2021-03-09 00:54:30 +00:00
Jack Zhao
6a5df1e315 (patch) fix queries & mutations when using basePath (#2082)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-08 19:43:46 -05:00
Brandon Bayer
47ca5b92da (patch) fix extraneous console errors during tests (#2092) 2021-03-08 18:06:17 -05:00
allcontributors[bot]
c7c7e050a8 docs: add james2406 as a contributor (#2093)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-03-08 19:57:10 -03:00
Brandon Bayer
ec5c7746d5 (patch) Fix node 14 global install by removing use of peer dependencies (#2091) 2021-03-08 21:32:36 +00:00
blitzjs-bot[bot]
626f9d968d Added @james2406 as contributor (#2090)
* updated .all-contributorsrc

* updated README.md

Co-authored-by: blitzjs-bot[bot] <64611671+blitzjs-bot[bot]@users.noreply.github.com>
2021-03-08 15:52:45 -05:00
James Moran
ee7acd4924 Allow the ctx to be accessed within passport strategies (#2058)
* allow the session to be accessed within the passport strategy

* add callback to test types

* add environments type file to auth example

* replace environments type file with inline types

Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2021-03-08 15:51:52 -05:00
Kevin Langley Jr
2cd377e10f Recipe: Styled Components (#2087)
* Adding recipe for styled-components.

* Adding all changes to _app.tsx. Adding basic util/theme.ts file to hold the theme and global styles. Still need to finish codeshift changes to _document.tsx

* Adding changes to _document.tsx

* Fixing var name

* Incrementing version of styled-components recipe.

* Adding back try/catch and sheet.seal()

* Adding babel plugin for styled-components recipe.

* Solve TODOs

Co-authored-by: Simon Knott <info@simonknott.de>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-03-08 19:49:28 +00:00
blitzjs-bot[bot]
5d69e92082 Added @flybayer as contributor (#2081)
* updated .all-contributorsrc

* updated README.md

Co-authored-by: blitzjs-bot[bot] <64611671+blitzjs-bot[bot]@users.noreply.github.com>
2021-03-06 18:40:23 -05:00
Brandon Bayer
fa10972e5a (meta) Integrate our new next.js fork into the monorepo at ./nextjs (#2079) 2021-03-06 18:39:22 -05:00
Brandon Bayer
af6d81413f (meta) eslint config maintenance (#2078) 2021-03-06 17:20:16 -05:00
Brandon Bayer
c699d4f021 Update bug_report.yml
(ignore)
2021-03-06 11:09:52 -05:00
Brandon Bayer
e97ba82de8 Update bug_report.yml
(meta)
2021-03-06 11:09:16 -05:00
blitzjs-bot[bot]
7ff1d2d052 Added @flybayer as contributor (#2069)
* updated .all-contributorsrc

* updated README.md

Co-authored-by: blitzjs-bot[bot] <64611671+blitzjs-bot[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-03-05 13:12:07 -05:00
Brandon Bayer
9568d1c56c update release patch
(ignore)
2021-03-05 13:09:08 -05:00
Brandon Bayer
ca7ad291e6 v0.31.1 2021-03-05 13:06:09 -05:00
Brandon Bayer
c21445a268 Fix deployments to vercel (#2068)
* fix config (patch)

* try to fix flaky cypress
2021-03-05 13:02:46 -05:00
blitzjs-bot[bot]
b38ab9b0f6 Added @Kosai106 as contributor (#2067)
* updated .all-contributorsrc 

* updated README.md

Co-authored-by: blitzjs-bot[bot] <64611671+blitzjs-bot[bot]@users.noreply.github.com>
2021-03-05 11:29:40 -05:00
Brandon Bayer
90b44ee54d (recipe) change render.com recipe to build app before running migration 2021-03-05 09:36:01 -05:00
JuanM04
be9d712437 Update @akbo as a contributor 2021-03-04 22:46:24 -03:00
JuanM04
cc8a10fa8c Add @sbappan as a contributor 2021-03-04 22:46:12 -03:00
JuanM04
e4cebb2974 Add @chenkie as a contributor 2021-03-04 22:45:50 -03:00
allcontributors[bot]
ae4ca3982f docs: add heavygabriel as a contributor (#2061)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-03-04 19:45:26 -05:00
Gabriel Picard
c1a72f7e8a Update LICENSE year (#2060)
Changed the license year to the current year (meta)
2021-03-04 19:43:25 -05:00
Brandon Bayer
0f9b19cbef v0.31.0 2021-03-04 16:40:53 -05:00
allcontributors[bot]
7250a27916 docs: add kevinlangleyjr as a contributor (#2059)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-03-04 15:13:56 -05:00
Kevin Langley Jr
31fada7325 (recipe) Add blitz install gh-action-yarn-mariadb GH action config for testing a mariadb or mysql database (#2056) 2021-03-04 15:13:43 -05:00
Brandon Bayer
4be4c5181e remove blitz test command because almost no-one uses it (#2057)
(major)
2021-03-04 14:55:24 -05:00
Brandon Bayer
66cd76643c Major internal refactor + add multiple entry points + change all imports to be from blitz + rename getSessionContext to getSession + other fixes (#2039) 2021-03-04 14:55:07 -05:00
JuanM04
eaef66ba0f (meta) added husky initialization in pre-commit (#2051) 2021-03-04 10:50:19 -05:00
Brandon Bayer
bcec41832d refactor jest preset (meta) (#2049)
* refactor jest preset (meta)

* fix

* fix deps (meta)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-03-03 23:18:46 +00:00
Brandon Bayer
efcd1da39a fix deps (meta) 2021-03-03 18:04:12 -05:00
Brandon Bayer
2178f11210 v0.30.7 2021-03-03 17:34:23 -05:00
Simon Knott
3565c57fca Bind to 127.0.0.1 by default instead of 0.0.0.0 (for security) (#2045)
(patch)
2021-03-03 17:13:38 -05:00
Simon Knott
e41401c744 Fix invoke return type (#2044)
(patch)
2021-03-03 17:12:35 -05:00
Brandon Bayer
63387ab2ee fix db.$reset to not spew prisma logs (patch) (#2041) 2021-03-03 00:16:14 +00:00
Brandon Bayer
e4a8a8b5b2 (meta) use ultra for running monorepo workspace commands (#2035) 2021-03-01 18:14:08 -05:00
Jeremy Liberman
b347a7d999 fix: remove bit of test code
accidentally left this in the PR from when I was testing
2021-03-01 16:55:11 -06:00
Brandon Bayer
b34368c690 (meta) add manypkg, a linter for monorepo dependencies (#2034)
* (meta) add manypkg, a linter for monorepo dependencies

* add lint to gh action

* refactor
2021-03-01 17:16:36 -05:00
Brandon Bayer
fe87534109 (meta) upgrade husky to v5 (#2033) 2021-03-01 16:31:41 -05:00
Brandon Bayer
328035bf22 (meta) Remove need to build framework code during development 🎉 (#2032) 2021-03-01 16:22:58 -05:00
Jeremy Liberman
e8551a0991 Add blitz install secureheaders recipe for setting secure headers (#2019)
(recipe)
2021-03-01 14:21:59 -05:00
allcontributors[bot]
50c50097aa docs: add Roesh as a contributor (#2029)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-03-01 12:32:10 -05:00
Roshan Manuel
d2e5368b5c Fix Cannot read property 'toString' of null for blitz new (#2025)
(patch)
2021-03-01 12:31:50 -05:00
allcontributors[bot]
2fcd6d88b6 docs: add mitchazj as a contributor (#2028)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-03-01 12:25:30 -05:00
Mitchell Johnson
ec6455920c Update .npmrc (#2021) 2021-03-01 12:25:17 -05:00
Brandon Bayer
2880fbba30 Switch from tsdx to preconstruct for DX/perf improvements (meta) (#2013)
* switch to preconstruct - still some issues

* working!

* cleanup

* updates

* use preconstruct for blitz package

* most tests working

* fix tests

* cleanup

* fix build script

* remove lodash from core

* fix

* fix example tests

* cleanup lodash

* cleanup

* clenaup

* fix another way

* fix lint
2021-02-28 01:30:16 +00:00
Brandon Bayer
cf6a906fc1 v0.30.6 2021-02-27 17:16:27 -05:00
Brandon Bayer
4203d94169 (newapp) change template to use typescript 4.1 because 4.2 is broken (#2018) 2021-02-27 17:09:54 -05:00
Brandon Bayer
34f249d259 fix some issues with blitz start using wrong build folder (#2017) 2021-02-27 21:00:13 +00:00
allcontributors[bot]
d3254d11f8 docs: add matthieu994 as a contributor (#2008)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-25 14:11:22 -05:00
Brandon Bayer
14ac3d9f3f v0.30.5 2021-02-25 11:27:08 -05:00
allcontributors[bot]
4c85bce781 docs: add FDiskas as a contributor (#2007)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-25 11:21:04 -05:00
marina
1a078c54d4 fix "role" of PublicData was lost by $setPublicData (#2005)
(patch)
2021-02-25 10:54:24 -05:00
Brandon Bayer
47438c8ccf v0.30.4 2021-02-24 15:34:46 -05:00
Brandon Bayer
13b8f1239d Fix Error deserializing __BLITZ__DATA__ in jest tests (patch) (#2004) 2021-02-24 15:32:57 -05:00
Brandon Bayer
5ed0f11734 fix hot reload for queries/mutations (patch) (#2003)
* fix hot reload for queries/mutations (patch)

* cleanup
2021-02-24 15:29:40 -05:00
JuanM04
48383ef363 docs: add remjx and lewisblackburnas a contributor (#2001) 2021-02-24 14:59:26 -05:00
Brandon Bayer
11fc19fee2 v0.30.3 2021-02-23 16:43:30 -05:00
Brandon Bayer
fb4a63acba Improve error message for missing _document page (patch) (#2000) 2021-02-23 16:39:24 -05:00
Hiren Chauhan
c3f8c7d07d Fix blitz install when using npm (patch) (#1986)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-23 16:20:58 -05:00
allcontributors[bot]
51519166ef docs: add hirenchauhan2 as a contributor (#1994)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-23 15:16:07 -05:00
depfu[bot]
113a3a04f3 Update superjson to version 1.7.2 (#1993)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-23 19:55:18 +00:00
depfu[bot]
eba2a8081d Update babel-plugin-superjson-next to version 0.2.2 (#1992)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-02-23 17:27:08 +00:00
JuanM04
16d2cae5b8 Added @juanM04 as a L2 maintainer for website/docs (#1989)
(meta)
2021-02-23 12:07:20 -05:00
Brandon Bayer
c2bd242d46 Add @aditsachde as a contributor 2021-02-23 12:05:15 -05:00
Brandon Bayer
99966ab192 Add @andreadellacorte as a contributor 2021-02-22 16:48:59 -05:00
Brandon Bayer
387e6e420b add rob malko as seedling sponsor 2021-02-20 17:39:10 -05:00
Brandon Bayer
d39b461ddd v0.30.2 2021-02-20 15:39:25 -05:00
Brandon Bayer
0b7d463e7f fix error.statusCode missing in frontend (patch) (#1981) 2021-02-20 15:30:50 -05:00
Brandon Bayer
87c4ee058c fix blitz generate Windows Error: spawn prisma ENOENT (patch) (#1979) 2021-02-20 15:09:06 -05:00
allcontributors[bot]
177c2b0519 docs: add deniseyu as a contributor (#1975)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-19 15:56:57 -05:00
Denise Yu
31411baff5 Update bug_report.yml (#1974)
Fixes bug report YAML template
2021-02-19 15:56:48 -05:00
Brandon Bayer
2c4b803e7b v0.30.1 2021-02-18 21:14:34 -05:00
Brandon Bayer
117f0fda74 fix UnhandledPromiseRejectionWarning when renaming queries/mutations (patch) (#1967)
* fix UnhandledPromiseRejectionWarning when renaming queries/mutations

* log any watcher errors

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-19 01:35:27 +00:00
Brandon Bayer
f613e08866 fix blitz routes command interfering with the dev build (#1966) 2021-02-19 01:07:34 +00:00
Brandon Bayer
b696831e9f Try to fix windows EPERM issues (patch) (#1965)
* try to fix windows EPERM issue

* comment

* fix test

* bump test wait time

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-19 00:28:36 +00:00
Brandon Bayer
bd1781b99e Update @Mzaien as a contributor 2021-02-18 18:43:28 -05:00
depfu[bot]
9077397abe Upgrade next: 10.0.6 → 10.0.7 AND add isLocaleDomain to newapp template test/utils.ts (patch) (#1949)
* Update next to version 10.0.7

* fix

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-02-18 23:37:24 +00:00
Cristian Granda
8e8fcffa2a Fix error if package.json doesn't have a "name" field (#1963) 2021-02-18 18:02:02 -05:00
allcontributors[bot]
364fb5e618 docs: add cristianbgp as a contributor (#1964)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-18 18:01:33 -05:00
Brandon Bayer
7678181bcf update issue template
(ignore)
2021-02-18 17:54:33 -05:00
Brandon Bayer
180d4cc4a1 update bug report 2021-02-18 17:52:19 -05:00
Brandon Bayer
2484b3a692 Update bug_report.yml
(ignore)
2021-02-18 17:50:33 -05:00
Brandon Bayer
f1e223cd47 add new issue form template
closes: #1704
(meta)
2021-02-18 17:47:51 -05:00
allcontributors[bot]
1a4dd4a2fe docs: add Immortalin as a contributor (#1962)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-18 17:18:35 -05:00
Immortalin
7f3fcf1489 Update gitignore (#1954)
(meta)
2021-02-18 17:18:25 -05:00
Brandon Bayer
219f069dba Add @gusgard as a contributor 2021-02-18 17:05:43 -05:00
Brandon Bayer
09bd6751fa Add @davetorbeck as a contributor 2021-02-18 16:50:59 -05:00
Brandon Bayer
f03fe566e5 Add @DecadentIpsum as a contributor 2021-02-17 13:12:18 -05:00
Brandon Bayer
4ed750a8f7 Add @oliverloops as a contributor 2021-02-17 13:10:46 -05:00
Brandon Bayer
39eb1cef9b Add @garytube as a contributor 2021-02-17 13:09:34 -05:00
Brandon Bayer
0a3c975b98 v0.30.0 2021-02-17 08:49:48 -05:00
Brandon Bayer
1b4119bb50 Update new app readme with latest file structure
(ignore)
2021-02-16 22:34:06 -05:00
Brandon Bayer
f0d880a4f2 v0.30.0-canary.15 2021-02-16 22:25:15 -05:00
Brandon Bayer
11a11be20b Update README.md
(ignore)
2021-02-16 21:38:27 -05:00
Brandon Bayer
0273e58749 Update README.md
(ignore)
2021-02-16 21:37:39 -05:00
Brandon Bayer
75c3dc635e tweak sponsors
(ignore)
2021-02-16 19:48:21 -05:00
Brandon Bayer
00e54948f2 fix reactbricks icon
(ignore)
2021-02-16 19:47:27 -05:00
Brandon Bayer
ffcd0b4243 fix error on blitz start for new project (patch) (#1952) 2021-02-16 11:35:53 -05:00
Brandon Bayer
6bc26128ee Upgrade prisma to 2.17 (patch) (#1951) 2021-02-16 10:55:25 -05:00
Brandon Bayer
f8b599aff4 v0.30.0-canary.14 2021-02-15 14:33:16 -05:00
Joe Edelman
fa09904d3a fix getQueryKey() to work on the server (patch) (#1624)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-02-15 14:24:33 -05:00
allcontributors[bot]
7c6c7dfdb5 docs: add jxe as a contributor (#1946)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-15 14:24:18 -05:00
Brandon Bayer
ca850480ae fix blitz routes (#1945) 2021-02-15 18:56:28 +00:00
Brandon Bayer
f9006974bf fix blitz dev ENOENT error and mistaken console.log (patch) (#1942)
* fix `blitz dev` ENOENT error (patch)

* remove log
2021-02-15 13:01:37 -05:00
Brandon Bayer
5f6d296e37 Add @fmilani as a contributor 2021-02-15 12:54:38 -05:00
Brandon Bayer
5697173d5a Flavio retires from L1 maintainer (meta) 2021-02-15 12:52:23 -05:00
Brandon Bayer
69e5da6794 Fix type issue in blitz generate code (patch) (#1941) 2021-02-15 12:44:00 -05:00
Brandon Bayer
66e521e14b (newapp) add types.d.ts with type declarations for CSS/SCSS modules (#1929) 2021-02-15 12:41:15 -05:00
Brandon Bayer
2a25bab41c v0.30.0-canary.13 2021-02-13 21:25:08 -05:00
Brandon Bayer
c2fa1486df Fix file paths in blitz server logs to be the original path instead of compiled path (patch) (#1933) 2021-02-13 21:23:28 -05:00
Brandon Bayer
19cc7a1510 Hopefully fix Windows EPERM , EBUSY, ENOTEMPTY, ENOENT errors (patch) (#1931) 2021-02-13 18:39:28 -05:00
Brandon Bayer
b1ed61f96d Unify blitz build folder. Now .blitz/build is always used instead of .blitz/caches/dev or .blitz/caches/build (#1930)
(patch)
2021-02-13 16:48:18 -05:00
Brandon Bayer
a101964603 (newapp) remove browserslist from package.json because it only affects CSS (#1928)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-13 15:16:40 -05:00
Brandon Bayer
eeeab00f1b Add node 15 to CI test matrix (meta) (#1927) 2021-02-13 15:16:32 -05:00
Brandon Bayer
42bf665f44 Add @arenddeboer as a contributor 2021-02-13 15:07:53 -05:00
Brandon Bayer
abf4795395 remove all unneeded imports of React from templates (patch) (#1925)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-13 14:44:29 -05:00
Brandon Bayer
d48891a144 change blitz generate delete mutation to use db.deleteMany instead of db.delete (#1924) 2021-02-13 19:26:21 +00:00
Brandon Bayer
57f1e7d703 v0.30.0-canary.12 2021-02-12 14:10:31 -05:00
Brandon Bayer
2d3e46fd79 Fix query cache being deleted on login instead of being invalidated (#1917)
* fix querycache being deleted on login instead of being invalidated

* fix ci (patch)
2021-02-12 14:08:50 -05:00
Brandon Bayer
984de2cab1 v0.30.0-canary.11 2021-02-11 19:54:41 -05:00
Brandon Bayer
fca7791c47 Fix error name fields not being sent to the client (#1916)
(patch)
2021-02-11 19:51:51 -05:00
Brandon Bayer
c389a7ad6b fix useQuery hooks enabled flag not working (#1915)
(patch)
2021-02-11 18:49:05 -05:00
Brandon Bayer
a4320fd974 v0.30.0-canary.10 2021-02-11 17:17:22 -05:00
Brandon Bayer
157c397959 Fix to accept the previous, misspelled anti-csrf cookie for seamless transition for existing apps (#1914)
(patch)
2021-02-11 17:14:08 -05:00
Brandon Bayer
d7804089e1 Fix type of options for useQuery hooks (#1913)
(patch)
2021-02-11 17:07:48 -05:00
Brandon Bayer
04b0cd356c v0.30.0-canary.9 2021-02-11 15:56:49 -05:00
JuanM04
cd615f58bd Automatically clear console on blitz dev (can disable with cli.clearConsoleOnBlitzDev = false in blitz.config.js (#1909)
* Clear console

* Removed clearConsole on blitz start

* Moved no-clear-console to blitz.config.js

* Changed imports

* increase default jest timeout to 10000 for server env

Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2021-02-11 15:54:03 -05:00
Brandon Bayer
c49da040b5 add useAuthenticatedSession() hook and fix publicData types for authenticated sessions (#1910)
(minor)
2021-02-11 15:50:52 -05:00
allcontributors[bot]
da6685cd2d docs: add JuanM04 as a contributor (#1912)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-11 15:49:04 -05:00
allcontributors[bot]
0f4de7761e docs: add JuanM04 as a contributor (#1911)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-11 15:41:32 -05:00
Brandon Bayer
3114e8bc4a fix error message grammar
(patch)
2021-02-11 14:32:21 -05:00
Brandon Bayer
e2383fbb5f v0.30.0-canary.8 2021-02-10 19:22:34 -05:00
Brandon Bayer
a4ea513a76 Change blitz generate default syntax from default[value] to default=value (#1906)
* change type:default[true] to type:default=true (major)

* update test

* update cli help
2021-02-10 19:20:11 -05:00
Brandon Bayer
9e1860d8b3 remove some old docs
(ignore)
2021-02-10 19:03:42 -05:00
Brandon Bayer
05673fbdb5 Create SECURITY.md
(ignore)
2021-02-10 19:02:29 -05:00
Brandon Bayer
a2cdcf4a74 Create codeql-analysis.yml
(ignore)
2021-02-10 19:01:06 -05:00
Kevin Østerkilde
9ff56beebf Remove requirement of publicData.roles, change new app to use publicData.role, and fix public data types (#1788)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2021-02-10 18:25:59 -05:00
Brandon Bayer
b238bae52c Add @beerose as a contributor 2021-02-10 16:29:26 -05:00
Brandon Bayer
caf3d260c8 Fix page props not being copied to the Blitz wrapper from last PR (#1905)
(ignore)
2021-02-10 16:19:03 -05:00
Brandon Bayer
b108c5720f Add page.authenticate, page.redirectAuthenticatedTo, and page.suppressFirstRenderFlicker (#1901)
(minor)
2021-02-10 14:06:04 -05:00
depfu[bot]
8ccc744c5f Upgrade superjson: 1.6.0 → 1.6.2 (patch) (#1904)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-02-10 14:03:11 -05:00
Brandon Bayer
b0ed47e1b8 add useAuthorize and useRedirectAuthenticated hooks (#1900)
(minor)
2021-02-10 12:42:19 -05:00
Brian Liu
ae43a07b4d Fix useQuery hooks return type when enabled or suspense could be false (patch) (#1893)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-10 12:30:01 -05:00
allcontributors[bot]
0ba81b6474 docs: add LBrian as a contributor (#1903)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-10 12:21:42 -05:00
Brandon Bayer
190bc65c53 fix newapp type issue in last PR
(ignore)
2021-02-10 12:20:12 -05:00
Brandon Bayer
85bd4ec286 (newapp) fix react-hook-form reset password page (#1902) 2021-02-10 16:37:16 +00:00
Brandon Bayer
1792cc6788 v0.30.0-canary.7 2021-02-09 19:36:42 -05:00
Michael Ford
dc88bc68d2 Change useSession to use suspense by default (#1888)
Co-authored-by: Brandon Bayer <b@bayer.ws> (major)
2021-02-09 19:21:09 -05:00
allcontributors[bot]
37348f2595 docs: add mtford90 as a contributor (#1899)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-09 18:53:25 -05:00
Brandon Bayer
bec3cd6cde Add internal BlitzAppRoot component (meta) (#1898) 2021-02-09 18:45:19 -05:00
Brandon Bayer
a9c1171a14 Fix vercel deployments with 0.30-canary (#1897)
(patch)
2021-02-09 18:26:53 -05:00
allcontributors[bot]
b46a245f08 docs: add rodrigoehlers as a contributor (#1896)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-09 17:20:39 -05:00
Rodrigo Ehlers
a5208e2b96 Fix useSession return type to have userId: number | null (#1895)
(patch)
2021-02-09 17:20:24 -05:00
Camilo Gonzalez
4fefbcbbb0 Automatically prompt to run prisma migrate after blitz generate (minor) (#1894)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-02-09 12:58:22 -05:00
engelkes-finstreet
258c0491dd Add initialPublicData option to useSession for use with SSR (minor) (#1807)
* Add initial parameter to useSession hook to remove flickering if session is loaded via server side.

* Use better naming.

* Update packages/core/src/supertokens.ts

* fix and cleanup types

Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-02-09 17:12:51 +00:00
allcontributors[bot]
8ec0d929d8 docs: add lcswillems as a contributor (#1892)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-08 17:24:46 -05:00
Lucas Willems
adfc529852 Fix typo in anti-csrf cookie name (#1889)
(patch)
2021-02-08 17:24:31 -05:00
depfu[bot]
aebc79fe9c Update all Yarn dependencies (2021-02-08) (#1886)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (patch)
2021-02-08 17:18:38 -05:00
Brandon Bayer
da6393c538 v0.30.0-canary.6 2021-02-06 19:06:28 -05:00
Brandon Bayer
e51a002892 Add SimpleRolesIsAuthorized<RoleType> type so session.$authorize() can type check the roles AND update new app template accordingly (#1883)
* add `SimpleRolesIsAuthorized<RoleType>` type so `session.$authorize()` can type check the roles AND update new app template accordingly (minor)

* fix type
2021-02-06 19:00:08 -05:00
Brandon Bayer
d73750be0c Fix all known resolver.pipe type issues AND update getModelNames template to use resolver.pipe (#1881)
(patch)
2021-02-06 18:23:29 -05:00
allcontributors[bot]
95781eb6ba docs: add alii as a contributor (#1882)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-06 18:06:06 -05:00
Alistair Smith
afcd47569c Fix blitz install [RECIPE] not working (#1880)
(patch)
2021-02-06 18:05:44 -05:00
Brandon Bayer
f405b5b4df update auth example project pages from latest templates
(meta)
2021-02-06 17:07:31 -05:00
Brandon Bayer
a0d7378642 v0.30.0-canary.5 2021-02-05 15:51:24 -05:00
Brandon Bayer
60bba38919 fix dependency issue (ignore) 2021-02-05 15:49:27 -05:00
Stratulat Alexandru
901d1cad7e Add paginate resolver utility and add it to blitz generate template (#1199)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2021-02-05 15:47:16 -05:00
Brandon Bayer
383034d1fe change jest-preset to use .server.test.ts instead of .test.server.ts (ignore) (#1875)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-05 14:15:16 -05:00
Brandon Bayer
bd6f37a6b0 (recipe) add gh-action-yarn-postgres recipe which adds a production github action config (#1876) 2021-02-05 11:39:37 -05:00
Brandon Bayer
b1116b6052 end g2i sponsor trial
(ignore)
2021-02-04 21:01:26 -05:00
Brandon Bayer
85c91e2e2e update jest preset with auto client/server environments and ability to use file.test.server.ts (minor) (#1873)
* update jest preset with auto client/server environments and ability to use `file.test.server.ts`

* cleanup
2021-02-05 01:58:20 +00:00
Brandon Bayer
0bad1f181b Massive update to blitz generate templates to generate production ready code (#1870)
(minor)
2021-02-04 20:35:22 -05:00
Brandon Bayer
971e695b30 Change blitz start to blitz dev and blitz start --production to blitz start (#1872)
* Change `blitz start` to `blitz dev` and `blitz start --production` to `blitz start`

* fix alias

* fix help msg (major)
2021-02-04 18:26:29 -05:00
Brandon Bayer
c0e1246dc0 add blitz generate mutation (minor) (#1871) 2021-02-04 18:05:58 -05:00
Brandon Bayer
bce9822d13 Revert "Change blitz start to blitz dev and blitz start --production to blitz start"
This reverts commit e41219944c.
2021-02-04 17:57:19 -05:00
Brandon Bayer
e41219944c Change blitz start to blitz dev and blitz start --production to blitz start 2021-02-04 17:56:30 -05:00
Brandon Bayer
fe0d958368 (newapp) upgrade prisma to 2.16 and change @prisma/cli to new prisma name (#1864)
* (newapp) upgrade prisma to 2.16 and change `@prisma/cli` to new `prisma` name

* fix cli

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-04 18:27:19 +00:00
depfu[bot]
06248f6005 Upgrade next: 10.0.5 → 10.0.6 and refactor runtime require statements (patch) (#1828)
* Update next to version 10.0.6

* type fixes

* big refactor to fix resolve config

* more refactor and fix

* fix jest

* fixes

* fix import

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-04 18:06:15 +00:00
TagawaHirotaka
24b85b0108 Add cypress for e2e cli testing (meta) (#1846)
* install cypress

* change describe

* refactor tsconfig.json

* Move cypress dependency to the very root package.json of the repo

* Move e2e test scripts to packages/cli/package.json

* Remove package.json

* forget to add it

* setting cypress.json

* fix cypress install

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-04 17:31:31 +00:00
Brandon Bayer
7804d3ea77 Add @lcswillems as a contributor 2021-02-04 12:06:51 -05:00
allcontributors[bot]
6dca78a8ed docs: add merodiro as a contributor (#1862)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-04 11:56:38 -05:00
Amr A.Mohammed
92679cfa03 (newapp) Add legacy-peer-deps to .npmrc for npm v7 compatibility (#1859) 2021-02-04 11:56:28 -05:00
allcontributors[bot]
46cb60a962 docs: add wafuwafu13 as a contributor (#1861)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-04 11:46:03 -05:00
depfu[bot]
012d146fd9 Upgrade superjson: 1.5.2 → 1.6.0 (patch) (#1854)
* Update superjson to version 1.6.0

* fix

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-02-03 20:58:01 +00:00
Brandon Bayer
5015693ddd fix db.$reset() error "cached plan must not change result type" (patch) (#1855) 2021-02-03 20:34:47 +00:00
depfu[bot]
e2ab39ed75 Update tslog to version 3.1.1 (#1853)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-03 16:54:10 +00:00
Andreas Bollig
64ced80f77 fix blitz new for people without global git config (patch) (#1847)
* fix blitz new for people without global git config

* adjusted test to reflect changed git parameters in blitz new

* Update packages/generator/src/generators/app-generator.ts

* Update packages/generator/test/generators/app-generator.test.ts

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-03 16:33:54 +00:00
allcontributors[bot]
050c4f7127 docs: add ajmarkow as a contributor (#1852)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-03 11:08:31 -05:00
allcontributors[bot]
86de3303bf docs: add akbo as a contributor (#1851)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-03 11:07:16 -05:00
allcontributors[bot]
31724c7b2a docs: add Gim3l as a contributor (#1849)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-02-02 16:30:26 -05:00
Gimel Dick
d7647ad2be Add to new app template (#1844) 2021-02-02 16:30:15 -05:00
depfu[bot]
0a3836b30b Update all dependencies (2021-02-01) (#1839)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (patch)
2021-02-01 18:15:09 -05:00
t.kuriyama
1fccb1dc19 Fix several compiler bugs like ENOENT, file rename broken, default export not component, etc (#1835)
(patch)
2021-02-01 18:02:41 -05:00
Brandon Bayer
7195aaea66 Add @queq1890 as a contributor 2021-02-01 17:51:23 -05:00
Brandon Bayer
d1c4553ddd (newapp) small tweak to error fallback in _app.tsx 2021-02-01 17:50:31 -05:00
Brandon Bayer
8ee5642fb6 v0.30.0-canary.4 2021-01-29 21:28:53 -05:00
Brandon Bayer
7a5695105a Fix bug in resolver.authorize() type (#1834)
(ignore)
2021-01-29 21:26:54 -05:00
Brandon Bayer
d0008711c6 (newapp) update _app.tsx to use new ErrorFallbackProps for better typing (#1833) 2021-01-29 21:16:35 -05:00
Brandon Bayer
83dc0e3e2d Fix enhancePrisma with TS strict:true (#1827)
Co-authored-by: Piotr Monwid-Olechnowicz <hasparus@gmail.com> (patch)
2021-01-29 20:44:52 -05:00
Piotr Monwid-Olechnowicz
89ab77a862 Fix resolver.authorize( doesn't work as type guard (with great effort) (#1831)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-01-29 20:44:34 -05:00
Kazuma Suzuki
b59fbeb0a7 Fix blitz install error message when recipe doesn't exist (patch) (#1815)
* fix error message when recipe doesn't exist

* returns exit code 1 on error

* Update packages/cli/src/commands/install.ts

* some tweaks

Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-01-29 20:15:14 -05:00
allcontributors[bot]
c012c75c87 docs: add rince as a contributor (#1825)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-29 14:56:01 -05:00
Brandon Bayer
a0615be285 v0.30.0-canary.3 2021-01-29 13:54:58 -05:00
Brandon Bayer
4d7dc8680f Remove resolver.authorizeIf AND remove second options arg to session.$authorize() (major) (#1824)
* remove `resolver.authorizeIf` AND remove second options arg to `session.$authorize()`

* update
2021-01-29 13:47:40 -05:00
Brandon Bayer
9a735f6dd7 tweak PULL_REQUEST_TEMPLATE
(ignore)
2021-01-29 13:32:19 -05:00
Brandon Bayer
0b885c2f57 fix broken API routes because of babel-plugin-superjson-next bug (patch) (#1823)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-29 17:36:11 +00:00
Brandon Bayer
3bd030af73 Fix type of resolver.pipe when one of the pipe functions returns a promise (#1822)
(patch)
2021-01-29 12:15:17 -05:00
Brandon Bayer
9ea5d0f259 Rename resolver pipe fns: pipe.resolver to resolver.pipe, pipe.zod to resolver.zod, etc (#1821)
(major)
2021-01-29 11:54:19 -05:00
Brandon Bayer
91886728cf v0.30.0-canary.2 2021-01-27 21:21:31 -05:00
Brandon Bayer
6babea9c15 (newapp) update mutations to use the new pipe functions (#1811)
* (newapp) update mutations to use the new pipe functions

* tweak
2021-01-27 21:19:08 -05:00
Brandon Bayer
8e91c52a12 Fix new app and blitz generate templates to use new session.$ prefix (patch) (#1810)
* fix `blitz generate` templates to use new `session.$authorize()` name (patch)

* more fixes
2021-01-27 20:13:14 -05:00
Brandon Bayer
fb8a13b04c v0.30.0-canary.1 2021-01-27 17:13:51 -05:00
Brandon Bayer
ac55bc453f (newapp) Fix typo in resetPassword.test.ts - create => $create 2021-01-27 17:01:52 -05:00
Brandon Bayer
fcb7884aef fix session.$isAuthorized to not have assertion return type (#1809) 2021-01-27 21:57:23 +00:00
Brandon Bayer
4ec37a5b0b (newapp) fix PublicData typo in types.ts 2021-01-27 16:30:18 -05:00
Brandon Bayer
68488e529f Fix to properly handle http errors (no more Failed to parse json from request to /api/users/queries/getCurrentUser) (patch) (#1808)
* fix to properly handle http errors

* refactor

* fix
2021-01-27 21:28:00 +00:00
Brandon Bayer
d006b0bcd9 update release script
(ignore)
2021-01-27 12:45:57 -05:00
Brandon Bayer
ebc6d47832 v0.30.0-canary.0 2021-01-27 12:31:20 -05:00
Brandon Bayer
50b597ef9f Simplify type definition for PublicData (breaking change) (#1806)
(major)
2021-01-27 12:26:58 -05:00
depfu[bot]
6a6f1f7b2c Update superjson to version 1.5.2 (#1805)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-01-27 15:11:29 +00:00
Brandon Bayer
cfca59e6ea Add pipe.resolver(), pipe.zod(), pipe.authorize(), and pipe.authorizeIf() for queries/mutations (#1801)
(minor)
2021-01-27 09:43:16 -05:00
Brandon Bayer
57cb14b1ba Improvements to isAuthorized: (1) Ability to strongly type, (2) Change first arg to have ctx, (3) Allow multiple params, (4) add conditional $authorize() (#1796)
Co-authored-by: Aleksandra Sikora <aleksandra@hasura.io> (minor)
2021-01-26 21:29:19 -05:00
Steffan Harris
10a0bed302 (newapp) Update <Form> to easily hide default submit button by making submitText optional (#1800) 2021-01-26 18:48:34 -05:00
Brandon Bayer
9898c578b1 add project model files to auth example
(ignore)
2021-01-26 18:06:35 -05:00
allcontributors[bot]
acc61d2bee docs: add thakkaryash94 as a contributor (#1798)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-26 16:01:41 -05:00
Flavio
7cc97a1e63 Fix blitz console not working in vanilla JS projects (#1686)
Co-authored-by: Enzo Ferey <enzo.ferey@chance.co>
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-01-26 15:50:58 -05:00
allcontributors[bot]
85fe7429a5 docs: add marina-ki as a contributor (#1797)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-26 15:27:33 -05:00
marina
a3b5e87a96 Fix not all folder names kebab-case from blitz generate (#1790)
(patch)
2021-01-26 15:27:23 -05:00
Brandon Bayer
96793d360c Major improvement to blitz install UX (#1782)
Co-authored-by: David Kramer <davidkramer@me.com> (patch)
2021-01-26 11:45:01 -05:00
depfu[bot]
5d644632e7 Update all dependencies (2021-01-25) (#1792)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (meta)
2021-01-25 19:31:57 -05:00
Brandon Bayer
8d2e7aba30 Add @jonasthiesen as a contributor 2021-01-25 17:50:22 -05:00
Brandon Bayer
bbec5903d8 change all references/links to Slack over to our new Discord
(meta)
2021-01-25 13:36:14 -05:00
Brandon Bayer
f99a982783 fix blitz/babel preset not passing options through to next/babel (#1789)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-24 01:59:29 +00:00
Brandon Bayer
980a0a9ee2 Prefix all ctx.session methods with $ and move publicData fields to top level of ctx.session (#1779)
* make it work

* fix

* finish changing apis in examples (major)
2021-01-23 20:39:16 -05:00
Brandon Bayer
25811cf04b add prisma issue to new issue page (meta) 2021-01-23 13:22:19 -05:00
Jeremy Liberman
05613e8559 docs: Add READMEs to packages that were missing them (#1780)
(meta)
2021-01-22 18:35:35 -05:00
David Kramer
780febd377 Rename chakra recipe to chakra-ui (#1775) 2021-01-22 18:26:49 -05:00
Brandon Bayer
5619dcca97 Change normal resolver logging to log serializer duration (minor) (#1778)
* Change normal resolver logging to log serializer duration

* better
2021-01-22 20:57:04 +00:00
Brandon Bayer
f61ae6e3c6 retry example e2e tests one time if they fail
(meta)
2021-01-22 15:20:19 -05:00
Brandon Bayer
92f67459df Add blitz/babel preset which includes babel-plugin-superjson-next (#1771)
(minor)
2021-01-22 13:19:45 -05:00
Satoshi Nitawaki
b17f9b8e70 Change package.json engines version 12.20 to 12 (#1773)
(meta)
2021-01-22 10:56:51 -05:00
Brandon Bayer
c962b36f2f Add missing type exports like GetStaticPropsContext (patch) (#1772)
* Add missing type exports like `InferGetServerSidePropsType` (patch)

* fix

* more fix

* fix

* reduce example logging

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-22 01:48:23 +00:00
Brandon Bayer
d69ca33094 (meta) fix some code formatting 2021-01-21 20:25:30 -05:00
Piotr Monwid-Olechnowicz
9536caa073 Fix type of enhancePrisma constructor args (#1770)
(patch)
2021-01-21 19:18:22 -05:00
Simon Knott
f02cfcee00 Add Quirrel recipe AND add Plain-Text Transformer to recipe APIs (#1764)
(recipe)
2021-01-21 14:26:37 -05:00
Brandon Bayer
7ab1d73f7b Fix prisma errors missing code & meta properties (#1766)
(patch)
2021-01-21 11:35:05 -05:00
Brandon Bayer
933e0f5847 Fix API duration log to include serialization time AND add log serialization duration at DEBUG log level (patch) (#1765) 2021-01-21 11:34:53 -05:00
Brandon Bayer
771bd96706 🎉 Add Forgot Password code to new app template (#1127)
Co-authored-by: aaronfulkerson <31112737+aaronfulkerson@users.noreply.github.com> (newapp)
2021-01-20 21:04:56 -05:00
Brandon Bayer
2f07ae3e80 Change makeServerOnlyPrisma to enhancePrisma which adds db.$reset() for use in tests (#1762)
(minor)
2021-01-20 17:36:17 -05:00
Brandon Bayer
cda62ca155 Fix relative imports from within API routes (patch) (#1761) 2021-01-20 17:09:21 -05:00
Brandon Bayer
7f5d1dcb4e Update blitz generate templates for Prisma 2.15 AND update newapp/examples to Prisma 2.15 (#1759)
* Update `blitz generate` templates for Prisma 2.15 AND update newapp/examples to Prisma 2.15

* fix type error

* actually fix that TS error

* fix

* more fix

(minor)
2021-01-20 16:08:05 -05:00
Brandon Bayer
817b760ab7 Lori retires as L1 maintainer
(meta)
2021-01-20 16:07:24 -05:00
depfu[bot]
4ac527d29f Fix logging issues: Update tslog: 3.0.5 → 3.1.0 (patch) (#1760)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-01-20 16:04:25 -05:00
tarunama
b87506ae30 chore: unify spell of TypeScript (#1731)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-20 04:43:28 +00:00
Brandon Bayer
654d9378ad Update jest preset to runInBand and auto disconnect Prisma client after tests (#1753) 2021-01-19 23:05:06 +00:00
Brandon Bayer
fbf9439415 Drastically simplify eslint integration with new eslint-config-blitz package (#1749)
(minor)
2021-01-19 14:54:35 -05:00
depfu[bot]
4bae636085 Update dependencies (2021-01-19) (#1736)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2021-01-19 12:56:12 -05:00
Brandon Bayer
837d3a3126 Fix all queries not being refetched on login (patch) (#1748) 2021-01-19 12:18:50 -05:00
Brandon Bayer
e5baf8c256 Add @marina-ki as a contributor 2021-01-19 11:29:45 -05:00
Brandon Bayer
04ed4952e4 Add @mikeesto as a contributor 2021-01-19 11:27:44 -05:00
Brandon Bayer
39ebadccc1 Change session cookies to have a unique prefixed based on package.json name field (major) (#1743)
* change session cookies to have a unique prefixed based on package.json name field

* fix test
2021-01-19 01:24:09 +00:00
Brandon Bayer
9636017262 (newapp) Add changePassword mutation (#1741) 2021-01-18 18:45:35 -05:00
Brandon Bayer
2fc04d3f02 (newapp) Remove app/auth/auth-utils.ts by moving code into the login mutation (#1740) 2021-01-18 18:44:03 -05:00
allcontributors[bot]
fb8a352349 docs: add bacongravy as a contributor (#1742)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-18 18:43:53 -05:00
David Kramer
a3a32bbbf4 Automatically disable useQuery suspense when not using concurrent mode (#1735)
(patch)
2021-01-18 18:42:30 -05:00
Robert Malko
d39a9e60a5 Add .yalc folder to ignore paths (#1734)
(patch)
2021-01-18 16:22:17 -05:00
allcontributors[bot]
a6247fb570 docs: add tarunama as a contributor (#1739)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-18 16:21:28 -05:00
t.kuriyama
9f22ff7525 Fix blitz generate bug when model name ends with number (#1727)
(patch)
2021-01-18 16:18:15 -05:00
Brandon Bayer
cc3c1f1205 Drastically simplify Jest integration with a Blitz jest preset and by moving test dependencies into blitz. (#1725)
(major)
2021-01-16 15:25:13 -05:00
Robert Malko
66d8aa48a7 Add @malkomalko as L1 Maintainer (#1728)
(meta)
2021-01-16 10:40:29 -05:00
Brandon Bayer
c6ee429e61 fix makeServerOnlyPrisma() not working in Jest tests (patch) (#1726) 2021-01-16 00:25:19 +00:00
Brandon Bayer
b243da00ec Add makeServerOnlyPrisma() utility, allow db in client bundle, and update new app template (#1720)
(major)
2021-01-15 14:51:32 -05:00
Brandon Bayer
38bc98755b Change blitz generate to generate all pages in app/pages/ and update new app structure with app/core/ (#1719)
(major)
2021-01-15 14:50:12 -05:00
Robert Malko
a959ae5b58 Remove console.log from reflexjs recipe (#1722)
(recipe)
2021-01-15 13:58:11 -05:00
Brandon Bayer
7b102f654c Add generateToken() and hash256() utilities (#1721) (minor)
* add `generateToken()` and `hash256()` utilities

* fix bundle size
2021-01-14 18:10:47 -05:00
Brandon Bayer
4b293abc41 v0.29.2 2021-01-13 18:32:01 -05:00
Brandon Bayer
82fe3a0eb5 Fix logout not triggering re-renders for all queries (patch) (#1717) 2021-01-13 18:29:10 -05:00
Brandon Bayer
db7a3e5451 Fix: blitz db seed should not run prisma migrations (#1718) 2021-01-13 18:21:37 -05:00
Brandon Bayer
484f434d8e fix blitz compiler to ignore sqlite files (#1716) 2021-01-13 22:29:16 +00:00
Robert Malko
ddb434f847 (newapp) Fix studio package.json script to use new blitz prisma command (#1709) 2021-01-13 11:04:23 -05:00
Brandon Bayer
103609cf0b v0.29.1 2021-01-12 19:29:18 -05:00
Brandon Bayer
8dbb0bbbdb Fix new apps failing to initialize the database in 0.29.0 (patch) (#1707)
* wip

* more stuff

* more
2021-01-13 00:27:34 +00:00
Brandon Bayer
58a68c83fd fix --help flag for blitz prisma command not being sent to prisma (#1706) 2021-01-12 23:07:48 +00:00
Brandon Bayer
a2a5564a96 v0.29.0 2021-01-12 17:32:14 -05:00
Brandon Bayer
2aab361dbc Add isReady: true to mockRouter in test/utils.tsx for Next.js 10.0.5 (newapp) 2021-01-12 15:01:08 -05:00
allcontributors[bot]
a0f827a351 docs: add ranjan-purbey as a contributor (#1705)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-12 14:38:37 -05:00
Ranjan Purbey
f4bda9f52f Fix extra ms in API log message (#1702)
(patch)
2021-01-12 14:37:20 -05:00
t.kuriyama
92abe2b0b9 Update .eslintrc.js on examples/custom-server to add @typescript-eslint parser/plugin config (#1700)
(meta)
2021-01-12 14:34:31 -05:00
Joaquin Bravo Contreras
62efe3f4ee Prisma 2.13+ Support: Remove all blitz db commands except blitz db seed and use prisma CLI directly (major) (#1661)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-01-11 21:41:04 -05:00
allcontributors[bot]
17e08de16b docs: add jackbravo as a contributor (#1699)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-11 19:15:12 -05:00
allcontributors[bot]
31a88aca89 docs: add rembrandtreyes as a contributor (#1698)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-11 18:52:45 -05:00
Rembrandt Reyes
aa06d4bf1a Add some tests to @blitzjs/installer (meta) (#1690) 2021-01-11 18:52:15 -05:00
allcontributors[bot]
26c8bfb215 docs: add malkomalko as a contributor (#1697)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-11 18:49:43 -05:00
Robert Malko
2b0e12a08e Pin versions in chakra recipe (#1695)
(recipe)
2021-01-11 18:49:32 -05:00
depfu[bot]
0d8c0a16b6 Update all Yarn dependencies (2021-01-11) (#1692)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (meta)
2021-01-11 15:07:08 -05:00
allcontributors[bot]
a9bf1fd3a0 docs: add koolii as a contributor (#1689)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-09 15:52:00 -05:00
t.kuriyama
c0a392ac4e Update jest config for a deprecated option (#1687)
(meta)
2021-01-09 15:51:22 -05:00
Brandon Bayer
dcb5edc72c Add @doi-t as a contributor 2021-01-09 12:06:16 -05:00
Brandon Bayer
5b57277808 v0.29.0-canary.0 2021-01-08 18:30:43 -05:00
depfu[bot]
9ff878a107 Upgrade next: 10.0.4 → 10.0.5 (patch) (NOTE: need to add isReady to mockRouter in test/utils.ts) (#1681)
* Update next to version 10.0.5

* few fixes

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-01-08 23:28:39 +00:00
Brandon Bayer
87af792e41 Add blitz prisma CLI command for Prisma 2.13+ support (#1685)
* add `blitz prisma` command

* fix type case
2021-01-08 23:07:05 +00:00
Alex Johansson
a957d2f227 Add custom server support! (#1492)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2021-01-08 17:29:05 -05:00
depfu[bot]
2efcb71d2e Update tslog to version 3.0.5 (#1680)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-01-07 17:15:11 +00:00
Brandon Bayer
3a94cc10c1 Add SecurePassword utilities to core so you can remove them from auth-utils.ts (minor) (#1667)
(minor)
2021-01-06 18:59:00 -05:00
allcontributors[bot]
afc77338ef docs: add rembrandtreyes as a contributor (#1679)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-06 17:59:05 -05:00
Rembrandt Reyes
948fad7996 Add config option for cookie domain to sessionMiddleware (#1673)
(minor)
2021-01-06 17:58:49 -05:00
allcontributors[bot]
295436c7e5 docs: add kyken as a contributor (#1678)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-01-06 17:54:02 -05:00
Tsuyoshi Osawa
3f95ad3bbf Fix bug preventing a semicolon in session publicData (#1676)
(patch)
2021-01-06 17:53:49 -05:00
Brandon Bayer
396f7e551f Add @creimers as a contributor 2021-01-05 16:18:46 -05:00
Brandon Bayer
2284dd8621 v0.28.0 2021-01-04 15:20:20 -05:00
Brandon Bayer
25d057dd90 Add @linbudu599 as a contributor 2021-01-02 15:00:20 -05:00
Brandon Bayer
9be0d74816 v0.28.0-canary.2 2021-01-01 17:36:09 -05:00
Brandon Bayer
27974e4268 Change a number of dependencies to use ranges to help reduce size of installed node_modules (patch) (#1665)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-01 22:13:56 +00:00
Brandon Bayer
c700ee4b9a Change log message from "alpha software" to "beta software" (patch) 2021-01-01 16:54:26 -05:00
Brandon Bayer
da2916fccf (newapp) Update a few dependencies including React to 0.0.0-experimental-3310209d0 (#1662)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-01 21:48:43 +00:00
Steffan Harris
59c839c65f Remove unnecessary log message about git core.excludesFiles (patch) (#1663)
* Removed build console message about core.excludesFiles

* Update parse-chokidar-rules-from-gitignore.ts

Co-authored-by: Brandon Bayer <b@bayer.ws>
2021-01-01 21:29:35 +00:00
Brandon Bayer
1341b10e57 Upgrade all dependencies (patch) (#1657) 2020-12-31 18:56:34 -05:00
Kevin Østerkilde
da678523d8 (newapp) Change Final Form <LabeledTextField/> to properly parse numbers (#1658)
See https://github.com/blitz-js/blitz/issues/1636
2020-12-31 16:46:48 -05:00
depfu[bot]
34145212ad Upgrade Node.js to version 12.20.0 (#1655)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2020-12-30 22:37:59 +00:00
Brandon Bayer
e4fd4a8990 fix a false duplicate error with .coverage directory in your project (#1654)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-30 21:13:18 +00:00
Brandon Bayer
682664bd0c Improve error message from useQuery for case of incorrect resolver location (patch) (#1653)
* improve error message for useQuery

* tweak
2020-12-30 20:54:46 +00:00
Alex Johansson
384b847b39 Remove unused packages from @blitzjs/server (patch) (#1634)
* Remove unused packages from `packages/server`

* lodash-es

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-29 23:25:13 +00:00
Alex Johansson
db0cddf5ed Remove pretty-ms dependency (move code into core) (patch) (#1628)
* Remove `pretty-ms` dep

* naïve prettyMs-fn

* use `Date.now` shorthand

* fmt negative numbers as well

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-29 23:08:34 +00:00
Simon Knott
01754dcbbd Fix bug preventing imports from files/libraries ending in "pages" or "api" (patch) (#1649)
* Add regression example

* Dont rewrite file-imports that end in /pages or /api

Only import directory imports (where import "someDir/pages" actually means "someDir/pages/index.js").

Closes #1646

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-29 22:52:28 +00:00
Alex Johansson
387ffc6a80 Remove implicit auto-build with blitz start --production. blitz build now a pre-requisite (major) (#1623)
* Remove auto-build

* remove `folder-hash` dep

* build before start

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-29 22:35:45 +00:00
Arjun Dubey
303fad2853 Fix blitz db commands showing incorrect error (patch) (#1648)
* update db.ts

* updated db.ts

* Update packages/cli/src/commands/db.ts

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-29 22:18:49 +00:00
Alex Johansson
a1227ee37a Remove unused packages from core (patch) (#1630)
* Remove unused packages from `core`

* update lockfile

* lodash-es

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-29 21:41:51 +00:00
Brandon Bayer
b31e1ac245 Add @timReynolds as a contributor 2020-12-29 16:20:46 -05:00
Brandon Bayer
4e79196222 Add @phillipkregg as a contributor 2020-12-29 16:16:42 -05:00
Brandon Bayer
9b57078d31 bump yarn.lock
(ignore)
2020-12-23 14:22:30 -05:00
Brandon Bayer
cb80788734 v0.28.0-canary.1 2020-12-23 14:21:42 -05:00
depfu[bot]
845d171721 Upgrade next: 10.0.3 → 10.0.4 (patch) (#1644)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-23 14:18:16 -05:00
Alex Johansson
5f57f3c9ea only use node-fetch (#1642)
next.js bundles it

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-23 19:17:19 +00:00
Brandon Bayer
96a0fffa00 fix broken css module imports (#1645)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-23 18:50:59 +00:00
Alex Johansson
6d71a60154 Remove unsued dep node-fetch (#1632)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-23 18:22:19 +00:00
Alex Johansson
dd5a6b8273 Remove unused packages from file-pipeline (#1631)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-23 18:05:42 +00:00
Alex Johansson
a3452937c3 remove hasha dependency (#1627)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-23 17:47:58 +00:00
Brandon Bayer
6826920184 update codeowners again
(ignore)
2020-12-23 12:29:30 -05:00
Brandon Bayer
0dc9feeb1e update codeowners
(ignore)
2020-12-23 12:23:15 -05:00
Alex Johansson
12b5161918 Remove unused packages from @blitzjs/installer (patch) (#1633)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-12-23 12:17:22 -05:00
Brandon Bayer
e72b602600 Fix CI windows example test and other CI maintenance (#1639) 2020-12-23 11:46:04 -05:00
Brandon Bayer
a271fe9267 Change all agnosticSource tests to not run on windows (#1643)
(meta)
2020-12-22 18:51:15 -05:00
Alex Johansson
75758f8130 Timeout example testing after 20mins (#1640)
(meta)
2020-12-22 18:36:15 -05:00
Brandon Bayer
d48161d203 improve release script patch
(meta)
2020-12-22 13:55:56 -05:00
Reo Ishiyama
1682ce0474 Added Reo as L1 Maintainer to the README (#1637)
(meta)
2020-12-22 13:53:43 -05:00
Alex Johansson
bc7970690c Skip flaky windows packages test (#1635)
(meta)
2020-12-22 13:49:40 -05:00
Brandon Bayer
d9c5299436 v0.28.0-canary.0 2020-12-17 16:24:02 -05:00
Brandon Bayer
bc829d6bd4 update release patch auto categorize allcontributors
(meta)
2020-12-17 16:20:36 -05:00
allcontributors[bot]
ec71d2ad0d docs: add chanand as a contributor (#1621)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-12-17 16:17:48 -05:00
chanand
b18393bcab Fix: allow numbers and underscore in names for blitz generate model (#1618)
(patch)
2020-12-17 16:15:27 -05:00
allcontributors[bot]
2eb26617bc docs: add arjundubey-cr as a contributor (#1620)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-17 16:12:04 -05:00
Arjun Dubey
95988755ed Fix bug where cancelling blitz install still outputs success message (#1616)
(patch)
2020-12-17 16:11:50 -05:00
allcontributors[bot]
87ad97ce2b docs: add Kosai106 as a contributor (#1619)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-17 16:09:45 -05:00
Kevin Østerkilde
a58685229f Add missing exports for LinkProps, ImageProps, and ErrorProps (#1613)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-12-17 16:09:31 -05:00
Brandon Bayer
2ad5b68eab Dylan Brookes retires from core team
(meta)
2020-12-17 13:09:10 -05:00
allcontributors[bot]
8ac511aba3 docs: add jackbravo as a contributor (#1614)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-16 11:05:06 -05:00
Steffan Harris
12d93c7532 Removed unstable_ prefix from session middleware (#1607)
(major)
2020-12-15 17:17:18 -05:00
Brandon Bayer
e53f1b21bc fix render logo
(ignore)
2020-12-15 11:42:46 -05:00
Brandon Bayer
b0a4bed5e3 update render logo
(ignore)
2020-12-15 11:40:25 -05:00
Brandon Bayer
a4a672645c update render link
(ignore)
2020-12-14 16:46:47 -05:00
Brandon Bayer
88f9b4b5e5 fix readme logo size
(ignore)
2020-12-14 16:42:12 -05:00
Brandon Bayer
b62dce39dd add Render.com as a Bronze Sponsor!
(meta)
2020-12-14 16:39:48 -05:00
allcontributors[bot]
2b9b79ca2d docs: add mattfwood as a contributor (#1601)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-12 17:26:43 -05:00
Matt Wood
aba8492fc0 Minor typo fix in chakra recipe explanation (#1597)
(recipe)
2020-12-12 17:26:31 -05:00
dependabot[bot]
34f5b08101 Bump ini from 1.3.5 to 1.3.8 (#1599)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)
(meta)
Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-12 17:24:37 -05:00
Brandon Bayer
322fc6d0a9 fix readme
(ignore)
2020-12-12 11:30:24 -05:00
Brandon Bayer
34ee44e0bf Add Andreas Asprou as a seedling sponsor
(meta)
2020-12-12 11:26:02 -05:00
Brandon Bayer
4517a675a5 Fix bug where "db" in a path name will break client side imports (patch) (#1594) 2020-12-10 19:01:28 -05:00
Brandon Bayer
6ce248f694 (newapp) Change prisma version to be pinned to a minor version (#1595) 2020-12-10 18:54:42 -05:00
allcontributors[bot]
e68eb6d118 docs: add beeplin as a contributor (#1593)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-10 17:51:50 -05:00
tundera
ab81073003 Add Reflexjs recipe (#1585)
Co-authored-by: Brandon Bayer <b@bayer.ws> (recipe)
2020-12-10 17:48:18 -05:00
tundera
78410abe82 Fix and improve Theme UI recipe (#1583)
Co-authored-by: Brandon Bayer <b@bayer.ws> (recipe)
2020-12-10 17:43:20 -05:00
allcontributors[bot]
7d76f646d0 docs: add rayandrews as a contributor (#1592)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-10 17:35:36 -05:00
allcontributors[bot]
e97e964099 docs: add AkifumiSato as a contributor (#1591)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-10 17:33:38 -05:00
Akifumi Sato
fa358cd328 Remove error stack from console output on testing (#1540)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-12-10 17:31:28 -05:00
Ray Andrew
5360a839d8 Add blitz routes command to see all routes (#1478)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-12-10 17:28:25 -05:00
Brandon Bayer
a7493258eb Add G2i as sponsor
(meta)
2020-12-08 18:17:46 -05:00
Brandon Bayer
909f3b3392 fix theme-ui recipe
(ignore)
2020-12-05 19:15:23 -05:00
Brandon Bayer
688b05df78 v0.27.0 2020-12-05 19:07:30 -05:00
allcontributors[bot]
ec301dc22e docs: add markylaing as a contributor (#1578)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-05 18:55:35 -05:00
markylaing
df5271c1f0 Change passport adapter to accept an array of objects with authenticate options for each strategy (#1564)
Co-authored-by: Brandon Bayer <b@bayer.ws> (major)
2020-12-05 18:54:29 -05:00
allcontributors[bot]
bad2e3758e docs: add tundera as a contributor (#1577)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-05 18:45:53 -05:00
tundera
23b36b83f8 Add Theme UI recipe (including MDX!) (#1366)
Co-authored-by: Brandon Bayer <b@bayer.ws> (recipe)
2020-12-05 18:44:25 -05:00
allcontributors[bot]
94d9daf215 docs: add Khaledgarbaya as a contributor (#1576)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-12-05 18:32:34 -05:00
Khaled Garbaya
aae261c589 Fix blitz generate folder names to always be kebab-case (#1554)
(patch)
2020-12-05 18:31:20 -05:00
Brandon Bayer
4e3261d776 Fix module not found issues by moving isomorphic resolver imports behind experimental flag (#1574)
* move resolver isomorphic imports into an experimental flag

* maybe fix flaky windows test

* fix store test (patch)
2020-12-05 17:29:44 -05:00
Brandon Bayer
74083f704c v0.27.0-canary.3 2020-12-03 18:57:56 -05:00
Brandon Bayer
68e1abf727 add missing dependency
(ignore)
2020-12-03 18:54:53 -05:00
Brandon Bayer
1d3ca10164 v0.27.0-canary.2 2020-12-03 18:48:42 -05:00
Brandon Bayer
0c1cd9cc3f Fix broken blitz install (#1571) 2020-12-03 18:46:49 -05:00
depfu[bot]
e186f86389 Upgrade next.js: 10.0.2 → 10.0.3 (patch) (#1568)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2020-12-02 09:37:37 -05:00
Brandon Bayer
6954f448ad v0.27.0-canary.1 2020-12-01 13:01:25 -05:00
Brandon Bayer
656414369c (newapp) Change useCurrentUser hook to not use useSession (fixes UX) (#1563) 2020-12-01 12:57:11 -05:00
Brandon Bayer
760ab549c8 Fix broken blitz install (#1562)
(patch)
2020-12-01 12:56:02 -05:00
Justin Hall
de37d606a3 Update Emotion recipe to v11 (#1559)
(recipe)
2020-12-01 12:04:40 -05:00
Brandon Bayer
e58dbf3486 Add @saintmalik as a contributor 2020-12-01 11:53:33 -05:00
Brandon Bayer
6bb5b04199 Add @ugogo as a contributor 2020-12-01 11:49:53 -05:00
Brandon Bayer
85c2aa280d v0.27.0-canary.0 2020-11-28 13:29:52 -05:00
allcontributors[bot]
f8138f0d4d docs: add jonstuebe as a contributor (#1553)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-28 13:24:43 -05:00
Jon Stuebe
894bd7f06d Fix message in the blitz generate pages edit page (#1552)
(patch)
2020-11-28 13:24:28 -05:00
Brandon Bayer
ba7c8c5785 Add log level option to blitz.config.js (#1551)
(minor)
2020-11-28 13:21:29 -05:00
Brandon Bayer
05431ec7b5 v0.26.2 2020-11-27 15:38:21 -05:00
Brandon Bayer
005904e863 Change auth-utils.ts to be side-effect free (newapp) (#1549) 2020-11-27 15:33:57 -05:00
Brandon Bayer
c330651f35 Another try at fixing flaky windows test (meta) (#1548)
* another try at fixing flaky windows test

* revert last test changes and add logs
2020-11-27 15:31:57 -05:00
Brandon Bayer
8af274817d Fix regression in 0.26.1 if you have a test folder inside app/ (patch) (#1547)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-27 15:31:48 -05:00
Brandon Bayer
f06fd070ef Add yalc for testing blitz locally (meta) (#1542) 2020-11-27 14:56:04 -05:00
Brandon Bayer
b9d3f439e8 Add a second css module integration test (meta) (#1538)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-27 14:54:58 -05:00
Brandon Bayer
e49a6c29d1 Fix a flaky file-pipeline test (meta) (#1541) 2020-11-27 13:47:49 -05:00
Brandon Bayer
0b5ca09c7f v0.26.1 2020-11-27 12:22:28 -05:00
allcontributors[bot]
c6f480705d docs: add tpatel as a contributor (#1537)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (patch)
2020-11-27 11:20:27 -05:00
Thibaut Patel
7c3adc460b Fix blitz compiler to ignore gitignored files during processing (#1534)
(patch)
2020-11-27 11:19:07 -05:00
Simon Knott
e8da527325 Fix tree shaking for imports from queries/mutations (#1532)
(patch)
2020-11-27 11:15:29 -05:00
allcontributors[bot]
39d7f092ec docs: add sakulstra as a contributor (#1536)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-27 11:09:12 -05:00
Lukas Strassel
6732fa374b fix: add postcss to tailwind recipe (#1533)
I just tried blitz.js the first time and wanted to play around with the recipes.
Installing the tailwindcss recipe broke the app due to to css import errors displaying a prompt to also install postcss which solved the issue, so I guess it makes sense to fix at the recipe level?
2020-11-27 11:07:54 -05:00
Konrad Kalemba
cceae6efa2 Fix to allow for unicode chars in session data (#1527)
(patch)
2020-11-26 11:16:18 -05:00
Brandon Bayer
016af57a07 Add @williamkwao as a contributor 2020-11-26 11:05:33 -05:00
Brandon Bayer
a9ea76e43c update yarn.lock (ignore) 2020-11-24 11:04:25 -05:00
Brandon Bayer
394d7df094 v0.26.0 2020-11-24 11:00:44 -05:00
depfu[bot]
78007fc967 Upgrade @prisma/client: 2.12.0-dev.53 → 2.12.0 (patch) (#1522)
* Update @prisma/client to version 2.12.0

* fix

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-11-24 15:48:49 +00:00
Brandon Bayer
c1ac5b027e Change prisma.findOne to prisma.findFirst for Prisma 2.12 compatibility (#1525)
(minor)
2020-11-24 10:19:19 -05:00
depfu[bot]
b6b898c9b3 Upgrade @prisma/sdk: 2.10.0 → 2.12.0 (example) (#1524)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2020-11-24 10:18:31 -05:00
depfu[bot]
f96bcb80d0 Upgrade @prisma/cli: 2.10.0 → 2.12.0 (example) (#1523)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2020-11-24 10:18:18 -05:00
Alex Johansson
1194ffde82 Change useParam / useParams to always return undefined for empty/invalid values instead of "" and NaN (patch) (#1491)
* do parsing in useParams instead of useParam

* simplify

# Conflicts:
#	packages/core/src/use-params.ts

* fix typescript error

Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-24 15:16:41 +00:00
allcontributors[bot]
24082d53e0 docs: add Mzaien as a contributor (#1526)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-24 10:00:29 -05:00
Abdullah Mzaien
61bbc43497 (recipe) Update tailwind recipe to v2 (#1486)
Co-authored-by: Mzaien <s201540840@kfupm.edu.sa>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-11-24 09:58:25 -05:00
allcontributors[bot]
3dcf2bffe2 docs: add rap2hpoutre as a contributor (#1520)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-23 21:28:07 -05:00
Raphaël Huchet
653b93b089 Fix bug where blitz db seed will error silently (#1510)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-11-23 21:26:47 -05:00
Alex Johansson
1b663c0e8b Fix lint warnings (#1515)
(meta)
2020-11-23 19:55:02 -05:00
Brandon Bayer
5747642055 Update blitz generate templates for Prisma 2.12.0 compatibility (#1518)
(minor)
2020-11-23 19:24:26 -05:00
Brandon Bayer
53b2e273b4 update fauna link in fauna example readme
(ignore)
2020-11-23 14:25:17 -05:00
Brandon Bayer
3ed4844d87 v0.25.1-canary.3 2020-11-20 21:31:30 -05:00
Ray Andrew
b6b37f4661 Automatically clear .blitz cache when you change blitz versions (#1446)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-11-20 21:29:16 -05:00
Brandon Bayer
236415222d Fix broken css modules imports on canary (patch) (#1499)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-20 21:20:22 -05:00
allcontributors[bot]
bd76ff6049 docs: add rayandrews as a contributor (#1502)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-20 21:09:10 -05:00
Alex Johansson
a51757c174 Change useParam() to always return undefined if param doesn’t exist (#1474)
(minor)
2020-11-20 21:03:32 -05:00
allcontributors[bot]
9d8f63df3d docs: add dmzza as a contributor (#1501)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-20 21:01:59 -05:00
David Mazza
4890a7cf5b Fix File not found with singular glob (#1493)
(patch)
2020-11-20 21:01:31 -05:00
allcontributors[bot]
8089ec7d15 docs: add KATT as a contributor (#1500)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-20 20:59:05 -05:00
Alex Johansson
f6fd1d0285 Cleanup unused args in server (#1494)
(meta)
2020-11-20 20:58:51 -05:00
Brandon Bayer
f655410167 v0.25.1-canary.2 2020-11-20 19:44:22 -05:00
Brandon Bayer
8f20b0729a Add @rap2hpoutre as a contributor 2020-11-20 19:41:07 -05:00
Brandon Bayer
f37e6e8ebc (newapp) Add .next and .blitz to .prettierignore (#1498) 2020-11-20 19:40:36 -05:00
Brandon Bayer
5a934c3211 Fix an import edgecase by only rewriting relative paths imports for files in special folders (patch) (#1496)
* change to only change relative paths for files in special folders

* fix for windows
2020-11-21 00:35:14 +00:00
Brandon Bayer
b079c6e944 update kodiak again
(ignore)
2020-11-20 19:16:21 -05:00
Brandon Bayer
2f0ca0f549 update kodiak config
(ignore)
2020-11-20 19:03:24 -05:00
Brandon Bayer
555ea5bac7 set up Kodiak for PR automerging
(meta)
2020-11-20 18:49:12 -05:00
Brandon Bayer
75b63ed087 yarn.lock
(ignore)
2020-11-18 21:36:42 -05:00
Brandon Bayer
ded2e2a546 v0.25.1-canary.1 2020-11-18 21:35:13 -05:00
Brandon Bayer
f70d8d9a15 Rudi Yardley retired as core member
(meta)
2020-11-18 19:21:12 -05:00
Simon Knott
4d54e89621 Fix ability to import from pages, API routes, and queries/mutations (#1456)
Co-authored-by: Brandon Bayer <b@bayer.ws> (fix)
2020-11-18 19:11:43 -05:00
Brandon Bayer
69b91223d7 Add new Image component from Next.js 10 (#1423)
(minor)
2020-11-18 19:10:11 -05:00
Brandon Bayer
8c5061ead5 Remove undocumented hasOne and hasMany options from blitz generate model (#1476)
(patch)
2020-11-18 17:46:00 -05:00
depfu[bot]
19ffe20330 Upgrade next: 10.0.1 → 10.0.2 (patch) (#1481)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2020-11-18 15:27:08 -05:00
Brandon Bayer
9819543f47 v0.25.1-canary.0 2020-11-17 21:47:30 -05:00
Brandon Bayer
b42eec1b66 Fix issue where blitz start --production rebuilds during deployment (#1477)
(patch)
2020-11-17 21:23:58 -05:00
Brandon Bayer
0ef8d16da5 Fix image component external domains not working in production (#1463) 2020-11-17 12:29:39 -05:00
Flavio
37e1ff3427 Added Flavio as L1 Maintainer to the README (#1469)
* Added Flavio as L1 Maintainer to the READMe

* Added Flavio's correct  photo to L1 Maintainer section
2020-11-15 15:06:03 -05:00
allcontributors[bot]
63b0682f06 docs: add piotrski as a contributor (#1467)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-14 20:45:13 -05:00
Piotrek Tomczewski
735d2f628b Update Chakra UI Recipe for 1.0 (#1466)
(recipe)
2020-11-14 20:44:55 -05:00
Fran Zekan
d2a3f1a0b1 Only run Lambda warm-up HEAD requests when target is serverless (#159)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-11-14 20:43:36 -05:00
Brandon Bayer
b54cbadebe Fix initial migration for new apps is not included in the initial git commit (#1464)
(patch)
2020-11-14 19:26:53 -05:00
Brandon Bayer
1126b139a9 Add @cwray-tech as a contributor 2020-11-14 10:35:08 -05:00
Brandon Bayer
db44295738 Add Fauna Example (#1458)
(example)
2020-11-14 09:48:01 -05:00
Brandon Bayer
539f457207 v0.25.0 2020-11-11 18:33:47 -05:00
Brandon Bayer
383e856e33 Fix infinite loop with multiple tabs open (#1453)
(patch)
2020-11-11 18:26:59 -05:00
Brandon Bayer
7d05d4e4c4 update bytes newsletter link
(ignore)
2020-11-11 08:59:26 -05:00
Brandon Bayer
1555d09a45 v0.25.0-canary.6 2020-11-10 20:56:28 -05:00
Brandon Bayer
05bf388d8d (newapp) Upgrade react version to 0.0.0-experimental-4ead6b530 (#1451) 2020-11-10 20:50:15 -05:00
Brandon Bayer
41ad93b327 Improve error message for invalid RPC requests (#1450)
(patch)
2020-11-10 20:50:01 -05:00
Brandon Bayer
56b18e40df Add Bytes Newsletter signup banner 2020-11-10 20:48:00 -05:00
Brandon Bayer
e2acb1a6a1 Fix broken static pre-rendering with useQuery (#1444)
(patch)
2020-11-10 20:13:39 -05:00
Brandon Bayer
680c44180c v0.25.0-canary.5 2020-11-09 21:37:28 -05:00
Brandon Bayer
158b6684a7 truly fix the corrupted build this time
(patch)
2020-11-09 21:35:24 -05:00
Brandon Bayer
2a4a209de9 v0.25.0-canary.4 2020-11-09 21:28:51 -05:00
Brandon Bayer
4f862f04b0 fix corrupted build
(patch)
2020-11-09 21:27:20 -05:00
Brandon Bayer
7eb7943b55 v0.25.0-canary.3 2020-11-09 21:09:13 -05:00
Brandon Bayer
bf009c2e3e Fix CLI cannot find module get-latest-version error (#1442)
(patch)
2020-11-09 21:04:17 -05:00
allcontributors[bot]
94ff1da4de docs: add akirabaruah as a contributor (#1441)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-09 20:25:06 -05:00
Akira Baruah
a6f4ca0068 Improve error message about git and git config (#1432)
(patch)
2020-11-09 20:24:47 -05:00
dependabot[bot]
533e0cbaae Bump next from 9.5.1 to 10.0.1 in /examples/plain-js (#1431)
Bumps [next](https://github.com/vercel/next.js) from 9.5.1 to 10.0.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v9.5.1...v10.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (meta)
2020-11-07 17:30:28 -05:00
Brandon Bayer
25df2c0c29 Revert react query to 2.5.12 because of concurrent mode bugs (#1430)
(minor)
2020-11-07 16:59:49 -05:00
Brandon Bayer
c4d759304d Add @Talor-A as a contributor 2020-11-07 10:47:00 -05:00
allcontributors[bot]
a856304062 docs: add benediktms as a contributor (#1429)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-07 10:43:11 -05:00
Benedikt Schnatterbeck
be7d0ee723 Cypress test fix (#1369)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-11-07 10:42:57 -05:00
Brandon Bayer
91aebf44bc Fix: disable useQuery on first render, when router params don't exist yet AND fix TS type for useRouter() (#1422)
(patch)
2020-11-07 10:38:04 -05:00
Hiroki Isogai
6d45d52f7a Fix cannot read property '_clientVersion' of undefined (#1419)
(patch)
2020-11-05 20:14:08 -05:00
allcontributors[bot]
c451a5d55e docs: add wobsoriano as a contributor (#1420)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-05 08:56:54 -05:00
Robert Soriano
646e8ae0f6 Remove React imports from page templates (#1418)
(patch)
2020-11-05 08:56:34 -05:00
Brandon Bayer
28ded0c1b1 v0.25.0-canary.2 2020-11-04 21:58:07 -05:00
Brandon Bayer
8c9de5a1de Fix useInfiniteQuery bug on canary where page params are empty (#1416)
(patch)
2020-11-04 21:50:22 -05:00
Brandon Bayer
a3c468b779 Switch to superjson for error serialization (enables using instanceof) (#1414)
(patch)
2020-11-04 21:04:14 -05:00
Brandon Bayer
6907e92d14 Add @leggsimon as a contributor 2020-11-04 20:49:09 -05:00
Brandon Bayer
418173849b Add @ericsakmar as a contributor 2020-11-04 20:44:08 -05:00
Abu Uzayr
087230e800 Upon blitz new, prompt user for upgrade if blitz version is outdated (#1397)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-11-04 20:01:26 -05:00
Brandon Bayer
1ccfc7e5ba Add @matamatanot as a contributor 2020-11-04 19:15:00 -05:00
allcontributors[bot]
cdbe9e3cef docs: add isoppp as a contributor (#1412)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-11-04 18:56:53 -05:00
Hiroki Isogai
a254b70139 Remove as prop from blitz generate page templates (#1411)
(patch)
2020-11-04 18:56:39 -05:00
depfu[bot]
c3c0e55597 Upgrade next: 10.0.0 → 10.0.1 (#1409)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (minor)
2020-11-04 18:54:55 -05:00
depfu[bot]
26f8e97b25 Upgrade @prisma/sdk: 2.6.0 → 2.10.0 (#1393)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (meta)
2020-11-03 09:16:26 -05:00
depfu[bot]
353e4efea6 Upgrade @prisma/cli: 2.4.1 → 2.10.0 (minor) (#1394)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (example)
2020-10-30 18:37:15 -04:00
depfu[bot]
ae934bc6b7 Upgrade @prisma/client: 2.8.0 → 2.10.0 (minor) (#1395)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (example)
2020-10-28 22:01:55 -04:00
Brandon Bayer
8ebb383764 commit yarn.lock 2020-10-27 22:19:00 -04:00
Brandon Bayer
8f7b064cee v0.25.0-canary.1 2020-10-27 22:18:13 -04:00
Brandon Bayer
73fa209e9f Fix useInfiniteQuery broken cache (#1391)
(patch)
2020-10-27 22:16:21 -04:00
sirmyron
3372307112 Add sirmyron l1 maintainer (#1389)
Co-authored-by: Myron Davis <myron@dizari.com> (meta)
2020-10-27 21:02:31 -04:00
depfu[bot]
c1e771d8a7 Upgrade next: 9.5.5 → 10.0.0 (major) (#1385)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2020-10-27 20:55:46 -04:00
Brandon Bayer
0dc2891387 Remove tailwind example app (#1384)
(example)
2020-10-27 20:54:47 -04:00
allcontributors[bot]
819929e2f6 docs: add mweibel as a contributor (#1382)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-25 16:16:31 -04:00
Michael Weibel
e76f23dc3d (newapp) Move typescript to production dependencies (so blitz db seed works on prod deploy) (#1377) 2020-10-25 16:16:11 -04:00
allcontributors[bot]
33c6d8e5e1 docs: add maciekgrzybek as a contributor (#1381)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-25 15:57:49 -04:00
maciek_grzybek
f927aa05ee Fix inconsistencies with the CLI -h flag (#1257)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-10-25 15:57:33 -04:00
Jirka Svoboda
2efbe7bd51 Added eslint import sorting (#1345)
(meta)
2020-10-25 15:32:32 -04:00
allcontributors[bot]
c0e88cb509 docs: add machadolucasvp as a contributor (#1380)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-25 15:31:43 -04:00
Lucas Machado
cb8c268a14 (newapp) Move tsc from pre-commit to pre-push hook (#1362) 2020-10-25 15:31:28 -04:00
Brandon Bayer
6df771c86e Update @nksaraf as a contributor 2020-10-25 15:29:15 -04:00
Brandon Bayer
dbef6f9389 Add @goleary as a contributor 2020-10-25 15:28:32 -04:00
Brandon Bayer
f4eaebb52a v0.25.0-canary.0 2020-10-21 09:11:26 -05:00
allcontributors[bot]
4df2dfd5fc docs: add nemesv as a contributor (#1373)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-21 09:08:19 -05:00
Viktor Nemes
f20de5ad53 Fix blitz db seed not working (#1363)
(patch)
2020-10-21 09:08:04 -05:00
allcontributors[bot]
005edc089a docs: add sirmyron as a contributor (#1361)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-18 16:44:35 -05:00
sirmyron
ddab8d063d Added useMemo call for response from useRouter (#1352)
Co-authored-by: Myron Davis <myron@dizari.com> (patch)
2020-10-18 16:44:13 -05:00
Brandon Bayer
308744681b Fix your jest tests failing because of useQuery error message (#1357)
(patch)
2020-10-18 16:35:28 -05:00
allcontributors[bot]
291b988c05 docs: add markhaehnel as a contributor (#1360)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-18 16:33:31 -05:00
Mark Hähnel
7fdd97bb7d Fix blitz CLI not using proper exit codes (#1316)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-10-18 16:33:16 -05:00
allcontributors[bot]
02af10133c docs: add dulcehc as a contributor (#1359)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-18 16:30:02 -05:00
Dulce Hernández
de01a52886 (newapp) Add incremental:true to tsconfig.json (#1350) 2020-10-18 16:29:39 -05:00
Brandon Bayer
cbcbeefd40 Add @zanedb as a contributor 2020-10-18 16:21:40 -05:00
allcontributors[bot]
7083da0297 docs: add nksaraf as a contributor (#1358)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-18 16:12:30 -05:00
Nikhil Saraf
83b08f00eb Fix db.connect error when using without prisma (#1342)
(patch)
2020-10-18 16:12:17 -05:00
Rafael Nunes
3e7bf85750 Adds test to assert useMutation validation (#1351)
(meta)
2020-10-18 15:32:48 -05:00
Brandon Bayer
e9d626d495 (newapp) Fix tests not found if app has blitz in the name (#1355) 2020-10-18 15:30:26 -05:00
André Ericson
bc9983a31e Add setQueryData to react-query-utils AND rename mutate to setQueryData (#1291)
(major)
2020-10-18 10:35:41 -05:00
depfu[bot]
c798d39c4b Fix error stack trace regression by upgrading tslog: 2.9.0 → 2.9.1 (patch) (#1348)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (patch)
2020-10-17 18:50:06 -05:00
depfu[bot]
0394ced3ff Upgrade superjson: 1.2.3 → 1.3.0 (#1347)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> (patch)
2020-10-17 17:24:13 -05:00
Brandon Bayer
fc40c9dc23 v0.24.3 2020-10-16 12:07:55 -04:00
Jose Felix
728ef2d2a6 Add loading progress indicator to blitz console (#1336)
(patch)
2020-10-16 12:05:28 -04:00
Victor Nahuel Chaves
bc725db4ec Fix can't install any recipe (#1339)
(patch)
2020-10-16 11:51:30 -04:00
allcontributors[bot]
6cd3bb32a7 docs: add sewerynkalemba as a contributor (#1332)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-14 19:06:06 -04:00
Seweryn Kalemba
14faf68a0b Export missing AuthenticatedSessionContext type (#1330)
(patch)
2020-10-14 19:05:48 -04:00
allcontributors[bot]
e7bdafc2c5 docs: add ntgussoni as a contributor (#1328)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-14 17:24:32 -04:00
Nicolas Torres
241a62e465 Fix .gitignore files not being ignored by blitz (#1150)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: Rudi Yardley <contact@rudiyardley.com> (patch)
2020-10-14 17:23:00 -04:00
Konrad Kalemba
5118be3ddd Add Recipe for Base Web - a UI framework from Uber (#1319)
(recipe)
2020-10-14 17:02:41 -04:00
allcontributors[bot]
eebe8bcdfb docs: add peter50216 as a contributor (#1327)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-14 17:01:12 -04:00
Peter Shih
e4983c6f2e (newapp) Fix tests not working out of box (#1323) 2020-10-14 17:00:14 -04:00
André Ericson
3d3bb20365 Remove incorrect deprecation warning when using useMutation (#1320)
(patch)
2020-10-14 16:31:26 -04:00
Konrad Kalemba
77f9e60a9c Fix recipes to add their providers at the root of App's return function (#1324)
(recipe)
2020-10-14 16:29:08 -04:00
Brandon Bayer
66111f74bf v0.24.2 2020-10-13 21:10:24 -04:00
allcontributors[bot]
c2bb7728b2 docs: add nahue as a contributor (#1321)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-13 19:30:46 -04:00
Victor Nahuel Chaves
d5c2fa15e0 Update Ink dependencies (#1171)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-10-13 19:28:26 -04:00
allcontributors[bot]
f93208e75f docs: add wanjuntham as a contributor (#1317)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-13 09:42:27 -04:00
wanjuntham
660c7fbb5e Update Next.js from 9.5.3 to 9.5.5 (#1289)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
Co-authored-by: Cody G <37571416+clgeoio@users.noreply.github.com>
Co-authored-by: engelkes-finstreet <36962022+engelkes-finstreet@users.noreply.github.com>
Co-authored-by: André Ericson <de.ericson@gmail.com>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Konrad Kalemba <konrad_kal@hotmail.com>
Co-authored-by: Domantas Mauruča <domantas.mauruca@gmail.com>
Co-authored-by: Carlos Fernández <c.fernandez@rpalatam.com.pe>
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: Stratulat Alexandru <alexanderstratulat97@gmail.com>
Co-authored-by: Bruno Crosier <bruno.crosier@gmail.com>

(patch)
2020-10-13 09:39:31 -04:00
allcontributors[bot]
bcb88c72ea docs: add jamiedavenport as a contributor (#1314)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-12 21:00:43 -04:00
allcontributors[bot]
b81a3dd314 docs: add engelkes-finstreet as a contributor (#1313)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-12 20:59:53 -04:00
allcontributors[bot]
51bdaa118a docs: add sandulat as a contributor (#1312)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-12 20:58:59 -04:00
Satoshi Nitawaki
59cf61a26a Remove Ivan from L1 maintainers & Add Patrick Engelkes as Level1 maintainer (#1310)
(meta)
2020-10-12 20:31:05 -04:00
allcontributors[bot]
876eb8327f docs: add nitaking as a contributor (#1311)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-12 20:30:01 -04:00
allcontributors[bot]
018e462ce8 docs: add davidlutta as a contributor (#1307)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-12 18:23:47 -04:00
David Ezekiel Lutta
74cde8a871 Add getConfig export from core for next/config (#1304)
(minor)
2020-10-12 18:22:41 -04:00
Jamie Davenport
bc9f0e9d85 Add Jamie Davenport as a L1 maintainer (#1301)
(meta)
2020-10-12 17:46:46 -04:00
allcontributors[bot]
683c251693 docs: add alexnaiman as a contributor (#1299)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-11 15:11:34 -04:00
Alexandru Naiman
1d02efb21d Fix circular dependencies in blitz core (#1249)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-10-11 15:08:37 -04:00
allcontributors[bot]
f35da93d6d docs: add aaronfulkerson as a contributor (#1295)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-10 18:50:33 -04:00
Bruno Crosier
cd2e29b286 Remove "--experimental" from "blitz db studio" (#1272)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-10-10 17:12:20 -04:00
Stratulat Alexandru
82e4f7fd95 Remove Simon Debbarma and Jack Clancy from L1 maintainers. (#1290)
(meta)
2020-10-10 17:06:00 -04:00
Brandon Bayer
99e64fa2e0 Update @aericson as a contributor 2020-10-10 16:45:55 -04:00
Brandon Bayer
9b0dd2ccaa Add @Kosai106 as a contributor 2020-10-10 16:45:46 -04:00
allcontributors[bot]
0235395e54 docs: add cajotafer as a contributor (#1293)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-10 16:38:01 -04:00
Carlos Fernández
67ba766a87 (newapp) Add yarn/npx to global install instructions in readme (#1285) 2020-10-10 16:36:54 -04:00
Domantas Mauruča
85216555fc Fix to allow babel config modification in Recipes (#1280)
(patch)
2020-10-10 16:13:50 -04:00
Konrad Kalemba
25ebbc919b Fix all recipes to add their context providers above getLayout() (#1279)
(recipes)
2020-10-10 16:11:05 -04:00
allcontributors[bot]
312dc3a1a9 docs: add aericson as a contributor (#1292)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-10 16:09:17 -04:00
André Ericson
f31d2a9770 (newapp) Fix validateDOMNesting error from default home page (#1277) 2020-10-10 16:08:28 -04:00
engelkes-finstreet
0199605d07 Fix blitz generate model to add fields to existing model instead of duplicating (#1251)
(patch)
2020-10-10 16:01:44 -04:00
Cody G
092775a3f2 Fix to not run husky during new app creation (#1270)
(patch)
2020-10-10 15:44:45 -04:00
Cody G
aea6c88b1e Adds tests for useSession in core super tokens (#1258)
(meta)
2020-10-10 15:43:16 -04:00
Stratulat Alexandru
846194a5b1 Add Alexandru Stratulat as L1 Maintainer (#1271)
(meta)
2020-10-07 10:06:19 -04:00
Brandon Bayer
814ed2d59a v0.24.1 2020-10-06 20:33:25 -04:00
Brandon Bayer
41106588ff Fix page template to use useMutation (#1269)
(patch)
2020-10-06 20:32:04 -04:00
Brandon Bayer
6f50d77756 update patch for release script
(meta)
2020-10-06 19:28:52 -04:00
Brandon Bayer
99bf898cdc v0.24.0 2020-10-06 19:24:50 -04:00
Brandon Bayer
4ef7d81018 Few improvements to log colors (#1267)
(patch)
2020-10-06 19:19:56 -04:00
Brandon Bayer
37ce99a37a Fix global CLI on canary by dynamically require server package (#1265)
(patch)
2020-10-06 19:00:10 -04:00
Simon Knott
2f3be902e4 Promote Simon to L2 Maintainership (#1264)
(meta)
2020-10-06 13:55:24 -04:00
Brandon Bayer
968f1d0cb9 v0.24.0-canary.4 2020-10-06 12:11:31 -04:00
Brandon Bayer
0b103bccca Revert "Prefix session cookies with app name (#1229)"
This reverts commit 3d827c8506.
2020-10-06 12:07:42 -04:00
Brandon Bayer
406b643f94 Add @sandulat as a contributor 2020-10-06 12:01:40 -04:00
Brandon Bayer
33c7bec41f v0.24.0-canary.3 2020-10-06 11:23:48 -04:00
Stratulat Alexandru
3d827c8506 Prefix session cookies with app name (#1229)
(minor)
2020-10-06 11:21:46 -04:00
allcontributors[bot]
b04c6d7469 docs: add Dohxis as a contributor (#1261)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-06 11:18:54 -04:00
Domantas Mauruča
242e2eadee Add tests for add-dependency-executor (#1259)
(meta)
2020-10-06 11:17:02 -04:00
Brandon Bayer
08303d337b Add back RouterContext and BlitzRouter which got lost in last canary release (#1260)
(patch)
2020-10-06 11:13:46 -04:00
Brandon Bayer
be861c7919 v0.24.0-canary.2 2020-10-05 19:13:19 -04:00
allcontributors[bot]
092045e807 docs: add Alucard17 as a contributor (#1256)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-05 18:59:41 -04:00
Alucard17
1e0f17c93a Changed @blitzjs/core to only export public API (#1246)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-10-05 18:58:57 -04:00
Jamie Davenport
310079b3bc Fix Safari compatibility: shim requestIdleCallback (#1247)
(patch)
2020-10-05 18:46:06 -04:00
Brandon Bayer
a81252aeb4 Fix regression on canary of loss of Prisma error code (#1254)
(patch)
2020-10-05 18:15:02 -04:00
allcontributors[bot]
cc58c72d94 docs: add konradkalemba as a contributor (#1255)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-05 18:14:09 -04:00
Konrad Kalemba
2162e1c6b4 Fix DocumentContext import in Material UI recipe (#1253)
(recipe)
2020-10-05 18:13:12 -04:00
अभिनाश (Avinash)
d46d860338 (newapp) Fix docs link on default homepage (#1250) 2020-10-05 18:10:55 -04:00
Satoshi Nitawaki
c65360de09 Fix name of blitz db seed command (was blitz seed) (#1239)
(patch)
2020-10-05 17:57:08 -04:00
Kotaro Chikuba
9873fc22de Fix isBlitzRoot() for blank deps/devDeps (#1242)
(patch)
2020-10-05 17:55:31 -04:00
allcontributors[bot]
e6954fbca8 docs: add mizchi as a contributor (#1252)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-05 10:03:03 -04:00
Kotaro Chikuba
048ba5f5cb Fix middleware test for win and mac (#1245)
(meta)
2020-10-05 10:01:14 -04:00
Brandon Bayer
bd1063a965 Upgrade prisma version in examples apps (#1238)
(meta)
2020-10-03 12:34:11 -04:00
Brandon Bayer
ae6b22f4f0 v0.24.0-canary.1 2020-10-02 21:57:55 -04:00
Brandon Bayer
f45d2d5ee3 Change log color of query/mutation input args to yellow (#1237)
(minor)
2020-10-02 21:56:02 -04:00
Brandon Bayer
7bc8a249b4 Make ctx.session.authorize() a type guard (#1222)
(minor)
2020-10-02 20:55:51 -04:00
Brandon Bayer
742ff71a97 Add ability to strongly type PublicData! (#1219)
Co-authored-by: Piotr Monwid-Olechnowicz <hasparus@gmail.com> (major)
2020-10-02 20:35:39 -04:00
Brandon Bayer
9291ae3b38 Upgrade monorepo typescript from 3.8 to 4.0 (#1236)
(meta)
2020-10-02 19:22:48 -04:00
allcontributors[bot]
5a5656078b docs: add hasparus as a contributor (#1235)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>(meta)
2020-10-02 18:35:05 -04:00
Brandon Bayer
ea815e83fa Upgrade superjson to 1.2.3 (#1230)
(patch)
2020-10-02 17:19:59 -04:00
Weilbyte
869c00c950 Fix blitz new --js #1208 (#1211)
(patch)
2020-10-02 16:58:24 -04:00
Brandon Bayer
a670693e9d v0.24.0-canary.0 2020-10-02 16:29:22 -04:00
allcontributors[bot]
5de91ad57b docs: add phillippschmedt as a contributor (#1228)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-02 16:21:56 -04:00
Phillipp Schmedt
31899458de Enforce NodeJS Version >= 12 for CLI (#1213)
(patch)
2020-10-02 16:21:40 -04:00
Jamie Davenport
dce462ba53 Improve error message when attempting useQuery with regular functions (#1223)
(patch)
2020-10-02 16:20:15 -04:00
Brandon Bayer
5ebed4b05d Update @engelkes-finstreet as a contributor 2020-10-02 16:17:48 -04:00
Brandon Bayer
13353793af Update @engelkes-finstreet as a contributor 2020-10-02 16:17:27 -04:00
Cody G
3583a59aa8 Refactor and add tests for public data store (#1204)
(meta)
2020-10-02 16:14:35 -04:00
Brandon Bayer
1c5aee7c67 Add invalidateQuery utility (#1226)
(minor)
2020-10-02 16:09:34 -04:00
Justin Hall
c87883dbe8 Fix logout mutation usage in generated app index page (#1201)
(newapp)
2020-10-02 16:09:22 -04:00
allcontributors[bot]
7d84561690 docs: add hmajid2301 as a contributor (#1227)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-10-02 16:08:41 -04:00
Haseeb Majid
3f43ffd4fe Don't run prettier is blitz new fails (#1202)
Co-authored-by: Haseeb Majid <haseeb.majid@sky.uk> (patch)
2020-10-02 16:08:26 -04:00
Bruno Crosier
1ac2092129 Change all generated file paths to be kebab-case (#1197)
(minor)
2020-10-02 16:06:57 -04:00
Brandon Bayer
579807ff20 Add getQueryKey utility (#1224)
* done

* fix the bug

* fix infinite query key to be url first like everything else (minor)
2020-10-02 15:50:22 -04:00
Brandon Bayer
566e8be3c3 Fix query cache not being invalidated on route navigation (#1225)
(patch)
2020-10-02 15:10:20 -04:00
Brandon Bayer
1b9eb77964 Rename ssrQuery to invokeWithMiddleware (#1218)
(major)
2020-10-02 12:23:32 -04:00
Brandon Bayer
9f24ba10b2 Add invoke() — the new way to imperatively call queries/mutations (#1217)
(minor)
2020-10-02 11:41:23 -04:00
Brandon Bayer
f5237c31c4 Lots of logging & error improvements!! Remove result logs, redact passwords, etc (#1212)
(minor)
2020-10-02 11:12:32 -04:00
Brandon Bayer
3ddb3870b9 Fix session race condition that would result in CSRF errors or users being logged out (#1209)
(patch)
2020-10-01 21:03:06 -04:00
Brandon Bayer
763252a5ed Fix husky pre-push script for new apps (#1207)
(patch)
2020-10-01 14:29:49 -04:00
Brandon Bayer
6a37f32322 Update @brunocrosier as a contributor 2020-10-01 14:27:35 -04:00
John Cantrell
48e27be1a7 Fix bug with creating new session after revoking current one (#1200)
(patch)
2020-09-30 18:20:11 -04:00
Brandon Bayer
90df4e8409 v0.23.2-canary.3 2020-09-30 11:50:04 -04:00
Brandon Bayer
3b46d96ec8 Minor updates to pages/queries/mutations templates (add useMutation and use db.findFirst) (#1195)
(minor)
2020-09-30 11:47:58 -04:00
Brandon Bayer
13c5a9b802 Fix a resolver type build error (on canary) (#1194)
(patch)
2020-09-30 11:40:34 -04:00
allcontributors[bot]
e6ddebadf5 docs: add ntgussoni as a contributor (#1189)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-29 22:13:48 -04:00
allcontributors[bot]
1bb4cf33ff docs: add clgeoio as a contributor (#1190)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-29 22:12:56 -04:00
Cody G
36dfbe42f5 Adds tests for core parsePublicDataToken (#1184)
(meta)
2020-09-29 22:09:07 -04:00
Satoshi Nitawaki
6c06f0b62c (newapp) Fix tests not working out of the box (#1165) 2020-09-29 21:49:16 -04:00
Stratulat Alexandru
a83536be21 Reduce re-renders by memoizing useParams and useRouterQuery (#1157)
(patch)
2020-09-29 09:07:51 -04:00
Brandon Bayer
07f9e26827 v0.23.2-canary.2 2020-09-28 18:58:29 -04:00
Brandon Bayer
c5e6221ebb Fix types for useQuery that were broken with useMutation addition (#1181)
(patch)
2020-09-28 18:48:12 -04:00
Brandon Bayer
2b0fe98cf5 v0.23.2-canary.1 2020-09-28 17:32:23 -04:00
allcontributors[bot]
58386ffe2c docs: add lukebennett as a contributor (#1180)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-28 17:25:16 -04:00
Luke Bennett
23fc27027a Use npm for husky pre-push hook instead of yarn (#1179)
(newapp)
2020-09-28 17:24:28 -04:00
Brandon Bayer
e4c00094e5 Disable automatic query request cancellation (#1177)
(patch)
2020-09-28 17:14:53 -04:00
Brandon Bayer
a357fd0445 Fix useQuery's mutate and router.push in same frame will cause error (#1176)
* fix mutate

* fix test

* add comment (patch)
2020-09-28 16:54:27 -04:00
Brandon Bayer
c43967984b Add @Kamshak as a contributor 2020-09-28 11:28:52 -04:00
Rudi Yardley
e47d947dc0 Fix bug in dev where files were not being removed correctly when deleted (#1161)
(patch)
2020-09-28 11:06:05 -04:00
Satoshi Nitawaki
ffb54ec064 Add .node-version (#1148)
(meta)
2020-09-28 11:04:46 -04:00
Brandon Bayer
08abc33494 v0.23.2-canary.0 2020-09-26 22:21:14 -04:00
Brandon Bayer
34722f952c 🔥 Add useMutation() and strong typing for ctx and ctx.session (#1160)
(major)
2020-09-26 22:12:29 -04:00
Brandon Bayer
4003b8ac01 Big refactor of internal types for react-query, RPC, and resolvers (#1172)
(meta)
2020-09-26 21:19:19 -04:00
allcontributors[bot]
160b5fc062 docs: add brunocrosier as a contributor (#1159)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-24 20:29:01 -04:00
Bruno Crosier
b722c39f79 (newapp) Add "restart server" to instruction to index page (#1140)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-09-24 20:28:14 -04:00
allcontributors[bot]
8da7bd7cd4 docs: add jorisre as a contributor (#1158)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-09-24 20:26:00 -04:00
Joris
712cb172eb Fix: pass undefined through the RPC layer (#1156) 2020-09-24 20:24:57 -04:00
Brandon Bayer
d623d8cc33 v0.23.1-canary.0 2020-09-23 22:26:52 -04:00
Brandon Bayer
5ca38ca6d8 Fix ES5 compatibility: upgrade superjson to 1.2.2 (#1147)
(patch)
2020-09-23 22:22:08 -04:00
Brandon Bayer
db0128c971 Upgrade react-query to 2.23.0 (#945)
(patch)
2020-09-23 22:14:29 -04:00
Mohamed Shaban
856aa53843 Fix blitz console not closing on first Ctrl+D (#1142)
Co-authored-by: Fran Zekan <zekan.fran369@gmail.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-09-23 21:57:13 -04:00
Fran Zekan
f9c3f82b27 Add blitz db seed for seeding data in your database (#678)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-09-23 21:42:32 -04:00
allcontributors[bot]
97d5f396de docs: add drmas as a contributor (#1146)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-23 21:38:33 -04:00
Rudi Yardley
760fba77ab Speed up blitz start by 40% by adding incremental dev cache (#1137)
(patch)
2020-09-23 21:35:18 -04:00
Brandon Bayer
f83ce0bd72 Redirect MAINTAINERS.md to the new page in the docs 2020-09-23 21:07:15 -04:00
Brandon Bayer
7425952616 (newapp) Improve Form typing: remove need to pass schema type (#1144) 2020-09-23 19:55:27 -04:00
Brandon Bayer
7fac0134b3 Add @kitze as a contributor 2020-09-23 10:24:38 -04:00
Brandon Bayer
df46939fe3 back out no-for-of eslint rule
(meta)
2020-09-22 19:45:11 -04:00
Brandon Bayer
9e88b11496 v0.23.0 2020-09-22 19:28:46 -04:00
Ricardo Trejos
c427ae23d4 Add a timeout to the "retrieving freshest dependencies" step for blitz new(#1132)
(patch)
2020-09-21 20:58:32 -04:00
Enrico Schaaf
cb849c5ba9 Fix blitz autocomplete adding alpha warning message to the shell config (#1122)
(patch)
2020-09-21 19:35:34 -04:00
अभिनाश (Avinash)
6e777dd72a add lint rule to prevent Object.fromEntries in core package (#1129)
(meta)
2020-09-21 19:34:16 -04:00
Brandon Bayer
80ab4876f2 Improve error message for missing SESSION_SECRET_KEY (#1136)
(patch)
2020-09-21 16:00:59 -04:00
Brandon Bayer
cd0bf1f970 (newapp) Change signup & login to lowerCase emails before saving and verifying (#1135) 2020-09-21 14:56:38 -04:00
allcontributors[bot]
5f5a5c8ef7 docs: add enricoschaaf as a contributor (#1128)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-19 22:27:51 -04:00
Enrico Schaaf
9a1e0d0de7 Update Taiwind recipe to opt in to future Tailwind CSS changes (#1118)
(recipe)
2020-09-19 22:27:34 -04:00
Brandon Bayer
fb44203510 v0.22.3-canary.0 2020-09-19 22:01:38 -04:00
Brandon Bayer
010057b34c Fix ES5 compatibility (#1124)
(patch)
2020-09-19 21:10:50 -04:00
Brandon Bayer
575e862ae3 Remove prisma client generation from blitz in favor of new package.json schema config (Requires Prisma 2.7.0+ & new field in pkg.json)) (#1121)
(major)
2020-09-19 19:30:03 -04:00
Satoshi Nitawaki
aed6b8875a Fix slack channel name in MAINTAINERS.md (#1117)
(meta)
2020-09-19 10:59:40 -04:00
Satoshi Nitawaki
10b6f859fd Fix blitz new spewing out all the database migration logs (#1116)
(patch)
2020-09-19 10:54:26 -04:00
Brandon Bayer
9ac856c0ee Update @cardotrejos as a contributor 2020-09-19 10:50:09 -04:00
अभिनाश (Avinash)
1ff7f36482 Enable automatic network request cancelation for queries/mutations (#1092)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-09-19 10:47:58 -04:00
Brandon Bayer
df150da37e Fix cli cache file to be in temp directory instead of project directory (#1087)
(patch)
2020-09-19 10:45:37 -04:00
Bhanu Teja Pachipulusu
eb7409c0b3 Add --force flag for blitz db reset command (#1107)
(minor)
2020-09-19 10:44:22 -04:00
Brandon Bayer
1411a1d366 🎉 Add Satoshi Nitawaki as L1 Maintainer (#1119)
(meta)
2020-09-19 10:35:59 -04:00
allcontributors[bot]
ec95cb40de docs: add hardfire as a contributor (#1113)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-18 18:15:07 -04:00
Brandon Bayer
b502d7ea1e Add dotenv-flow to jest config for new apps (#1112)
(newapp)
2020-09-18 18:08:03 -04:00
allcontributors[bot]
74bf2a9e4c docs: add doeixd as a contributor (#1109)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-18 15:36:03 -04:00
Brandon Bayer
1ee637c367 Revert "add dotenv-flow to jest setup file for new apps"
This reverts commit 23a33f1c3d.
2020-09-18 15:15:41 -04:00
Brandon Bayer
c08771b57e Revert "move it to jest config"
This reverts commit 8a468e4f79.
2020-09-18 15:15:01 -04:00
Brandon Bayer
8a468e4f79 move it to jest config 2020-09-18 15:14:31 -04:00
Brandon Bayer
23a33f1c3d add dotenv-flow to jest setup file for new apps 2020-09-18 15:12:37 -04:00
Brandon Bayer
b3767861a2 Fix inability to have a /test page (#1111)
(patch)
2020-09-18 13:46:56 -04:00
Patrick G
65acfff0ff Add test, tests, spec, specs to build hash ignore list (#1102)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-09-18 11:23:45 -04:00
Brandon Bayer
ab3fc26409 Add @sergiodxa as a contributor 2020-09-18 11:11:05 -04:00
Brandon Bayer
7b7039e0e3 bump CI cache key
(ignore)
2020-09-18 11:05:04 -04:00
engelkes-finstreet
e93f24452c Fix blitz generate pages to use kebab-case for all url paths (#1089)
(patch)
2020-09-18 10:21:00 -04:00
Brandon Bayer
63c9375331 add "recipe" and "newapp" type to release patch
(meta)
2020-09-18 10:01:57 -04:00
Brandon Bayer
adfb486004 Tweaks to new app template pkg scripts: add tsc to pre-commit and lint to pre-push (#1104)
(minor)
2020-09-18 09:58:04 -04:00
Brandon Bayer
5828736369 Improve Recipe for Render.com (#1108)
(recipe)
2020-09-18 09:53:25 -04:00
Brandon Bayer
40a93ee62d Add @tsriram as a contributor 2020-09-18 09:52:42 -04:00
Brandon Bayer
8fa82c7661 Revert "Tweaks to new app template pkg scripts: add tsc to pre-commit and lint to pre-push"
This reverts commit 141003df89.
2020-09-17 16:46:01 -04:00
Brandon Bayer
141003df89 Tweaks to new app template pkg scripts: add tsc to pre-commit and lint to pre-push 2020-09-17 16:44:10 -04:00
Brandon Bayer
6ef7b8a2de Improve rendering of errors in generated Final Form <LabeledTextField> (#1095)
(patch)
2020-09-16 17:09:06 -04:00
allcontributors[bot]
6ade33b849 docs: add taylorcjohnson as a contributor (#1093)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-16 09:23:56 -04:00
Taylor Johnson
02d3aa8259 Change the new app schema provider to be just sqlite instead of an array (#1091)
(patch)
2020-09-16 09:23:11 -04:00
Brandon Bayer
1ae2bb3ee3 v0.22.2-canary.0 2020-09-14 22:07:30 -04:00
Brandon Bayer
d84c73d2bb Add @ditorojuan as a contributor 2020-09-14 22:00:56 -04:00
Brandon Bayer
89b55971f1 Add @johnletey as a contributor 2020-09-14 22:00:37 -04:00
Brandon Bayer
fd1856bc7b Add @cktang88 as a contributor 2020-09-14 21:59:28 -04:00
Brandon Bayer
e6dbbababb Add @johncantrell97 as a contributor 2020-09-14 21:59:19 -04:00
Brandon Bayer
3e2b5ddc8e Add @JoseRFelix as a contributor 2020-09-14 21:59:03 -04:00
Brandon Bayer
1b974a0371 Add @obii-bit as a contributor 2020-09-14 21:58:20 -04:00
engelkes-finstreet
8bf9667a15 Fix blitz generate query does not preserve plurality (#1083)
(patch)
2020-09-14 21:50:03 -04:00
yuta0801
94bd4c166c Fix an incorrect error message in blitz start (#1064) 2020-09-14 20:26:55 -04:00
allcontributors[bot]
4ad9f9bdc9 docs: add yuta0801 as a contributor (#1086)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-14 20:25:47 -04:00
yuta0801
13e1526ef5 Add --inspect flag to enable Node.js inspector (#1063)
(minor)
2020-09-14 20:25:36 -04:00
Brandon Bayer
ab3021a371 Significantly improve CLI performance: reduce execute time from 1700ms -> 900ms (#1057)
(patch)
2020-09-14 20:15:50 -04:00
allcontributors[bot]
3e506c1dce docs: add xiaoyu-tamu as a contributor (#1085)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (patch)
2020-09-14 20:13:27 -04:00
Michael Li
85356ca8e8 Fix type error for useQuery/usePaginatedQuery options object (#1059)
(patch)
2020-09-14 20:13:00 -04:00
Brandon Bayer
530ce851e4 Add React Bricks as Seedling Sponsor!
(meta)
2020-09-14 12:13:07 -04:00
Brandon Bayer
d953ef795a v0.22.1 2020-09-12 14:03:09 -04:00
Brandon Bayer
7fcb0945a2 Fix bug in default _app.tsx where Links inside ErrorBoundary don't work (#1054)
(patch)
2020-09-12 13:54:49 -04:00
Brandon Bayer
ab4670c21b v0.22.0 2020-09-11 17:48:30 -04:00
Brandon Bayer
1ae7bf77b2 Tiny tweak to Layout component in new apps (#1051)
(minor)
2020-09-11 17:46:35 -04:00
Brandon Bayer
63e3fe1ccb Add link to signup page to login form for new apps (#1050)
(minor)
2020-09-11 17:03:14 -04:00
Jirka Svoboda
280a2b5c4f refactor(server): Added isTypescript explicit flag, config refactored (#1014)
Co-authored-by: Rudi Yardley <contact@rudiyardley.com> (meta)
2020-09-11 11:16:45 -04:00
Brandon Bayer
bf2734d907 v0.21.2-canary.2 2020-09-11 11:10:32 -04:00
Sigurd Moland Wahl
07341c14d3 Fix bug where test files would cause blitz build to fail (#1045)
(patch)
2020-09-11 11:07:46 -04:00
allcontributors[bot]
e150b67cf4 docs: add PixelsCommander as a contributor (#1048)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-11 11:04:47 -04:00
Denis Radin
1a1722168c Add secureProxy option the the Passport.js adapter (#1033)
(minor)
2020-09-11 11:04:33 -04:00
dependabot[bot]
7f266b0c98 Bump node-fetch from 2.6.0 to 2.6.1 in /packages/generator (#1042)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (meta)
2020-09-11 09:35:50 -04:00
engelkes-finstreet
6e92a2dfde Update dependencies in new app template (#1036)
(patch)
2020-09-10 22:17:43 -04:00
Ante Primorac
66cd1ec650 Fix: export AppProps as a generic type (#1034)
(patch)
2020-09-10 22:16:51 -04:00
allcontributors[bot]
7c4916324e docs: add engelkes-finstreet as a contributor (#1041)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-10 22:12:32 -04:00
engelkes-finstreet
d747e34853 Add ability to set custom authenticateOptions for the Passport.js adapter (#1024)
(minor)
2020-09-10 22:10:37 -04:00
Brandon Bayer
3afab440c8 Add @sirmyron as a contributor 2020-09-10 22:05:04 -04:00
allcontributors[bot]
e576e6332c docs: add nitaking as a contributor (#1040)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-10 22:03:49 -04:00
Satoshi Nitawaki
60d0c9d0bf Enable passing extra prisma args to blitz db migrate(#1012)
(minor)
2020-09-10 22:03:34 -04:00
Brandon Bayer
8f800d388b Fix UnhandledPromiseRejectionWarning from useQuery during static pre-rendering (#1038)
(patch)
2020-09-10 09:59:38 -04:00
Brandon Bayer
0fb3163ed5 Revert "Fix UnhandledPromiseRejectionWarning from useQuery during blitz build"
This reverts commit a64cf7d62a.
2020-09-10 09:39:01 -04:00
Brandon Bayer
a64cf7d62a Fix UnhandledPromiseRejectionWarning from useQuery during blitz build 2020-09-10 09:37:56 -04:00
Brandon Bayer
ac78d9a6e1 Fix ctx.session.authorize() throwing AuthorizationError instead of AuthenticationError if user logged out. (#1030)
(patch)
2020-09-09 15:13:53 -04:00
Brandon Bayer
46035af2b3 v0.21.2-canary.1 2020-09-09 12:30:14 -04:00
Ante Primorac
3ee531f221 Fix heroku rebuilding on start (#1029)
(patch)
2020-09-09 12:22:39 -04:00
Brandon Bayer
294be124f2 v0.21.2-canary.0 2020-09-09 10:05:41 -04:00
Ante Primorac
b1b8b5f15e Fix Heroku issue where blitz start --production always rebuilds even after running blitz build(#1023)
(patch)
2020-09-08 21:43:49 -04:00
Brandon Bayer
4f1d80f970 Add @madflow as a contributor 2020-09-08 21:35:17 -04:00
Alan Alickovic
622016f4b7 Fix react warnings from Formik in new apps (#1019)
(patch)
2020-09-08 21:16:09 -04:00
Brandon Bayer
ceb0262540 Minor improvements to default auth-utils.ts file (#1021)
(minor)
2020-09-08 14:40:20 -04:00
allcontributors[bot]
8e9f2d097e docs: add clgeoio as a contributor (#999)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-09-03 09:58:20 -04:00
Cody G
155dfaa4da Adds no-use-before-define lint rule (#998)
(meta)
2020-09-03 09:58:00 -04:00
Brandon Bayer
ec0273f09d v0.21.1 2020-09-02 13:23:20 -04:00
Lori Karikari
7a80f2be2f Upgrade Next.js from 9.5.2 to 9.5.3 (#991)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-09-02 13:16:17 -04:00
Brandon Bayer
0821c019bd Fix some cache key issues with useQuery (#995)
(patch)
2020-09-02 12:06:21 -04:00
Brandon Bayer
f6cc8d152e Fix CI by removing browser setting for cypress (#996)
(meta)
2020-09-02 11:37:25 -04:00
Rafael Nunes
2921cb5a85 Moves auth and recipes to features section (#990) 2020-09-02 10:05:21 -04:00
Brandon Bayer
017c1ff813 v0.21.0 2020-09-01 16:22:14 -04:00
Brandon Bayer
eabe54c8ec Fix blitz db reset (#986)
(patch)
2020-09-01 16:20:28 -04:00
Brandon Bayer
ba14973ad3 Improve the useCurrentUser() hook in the new app template (#985)
(minor)
2020-09-01 15:36:00 -04:00
Brandon Bayer
e29786ba24 Fix Undefined function deleteCookie error after session expires (#982)
(patch)
2020-09-01 15:06:29 -04:00
Brady Pascoe
71e3e48f69 Fix husky git hooks not set up properly in new apps (#980)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-09-01 11:09:18 -04:00
Brandon Bayer
c0ef559eae Revert default react version to 0.0.0-experimental-7f28234f8 because of error boundary bug (#981)
(minor)
2020-09-01 10:30:24 -04:00
Brandon Bayer
60a338b730 Upgrade environment variable support to match Next.js (use dotenv-flow) (#979)
(minor)
2020-08-31 21:55:13 -04:00
Weilbyte
b4039ff9af Improve git init for new apps so it can't get stuck #882 (#888)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-08-31 17:36:01 -04:00
Dillon Raphael
f51a0de5dc Fix session.isAuthorized to not throw an error if user not logged in (#977)
(patch)
2020-08-31 17:22:51 -04:00
allcontributors[bot]
5a006fa89f docs: add dillonraphael as a contributor (#978)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-31 17:13:36 -04:00
Brandon Bayer
1ecaa5ea76 v0.20.0 2020-08-31 16:23:11 -04:00
allcontributors[bot]
5d0eb4e44e docs: add jschepmans as a contributor (#974)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-31 16:20:58 -04:00
Johan Schepmans
1756d57a39 Update "Whats included?" section in the Readme for new apps (#972)
Co-authored-by: Adam Markon <amarkon895@gmail.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-08-31 16:20:43 -04:00
Brandon Bayer
2cf1b63895 Fix issues preventing usage with Typescript strict mode (#970)
(patch)
2020-08-31 16:15:13 -04:00
Brandon Bayer
b0c2a58a83 Add pagination to blitz generate by default (#964)
(minor)
2020-08-31 15:59:33 -04:00
Brandon Bayer
188b8d8ae8 Add @brunocrosier as a contributor 2020-08-31 09:22:59 -04:00
Brandon Bayer
fbd5f2815f Add @yhoiseth as a contributor 2020-08-31 09:22:38 -04:00
Steffan
898f39bf8e Change store example to use single query for both pagination and infinite loading (#881)
Co-authored-by: Brandon Bayer <b@bayer.ws> (example)
2020-08-30 18:18:39 -04:00
Brandon Bayer
91f5056b9d Fix bug when using same query for usePaginatedQuery and useInfiniteQuery (#963)
(patch)
2020-08-30 17:11:48 -04:00
Brandon Bayer
a00a529387 v0.19.0 2020-08-30 16:03:14 -04:00
Brandon Bayer
b5d564fab8 v0.18.1-canary.1 2020-08-30 15:42:39 -04:00
Brandon Bayer
be19dbccf8 add missing dependency
(ignore)
2020-08-30 15:38:58 -04:00
Brandon Bayer
b21df113a8 v0.18.1-canary.0 2020-08-30 15:32:11 -04:00
Brandon Bayer
4e0abb6ca6 Fix useInfiniteQuery() regression in 0.18.0 (#962)
* fix useInfiniteQuery

* tweak (patch)
2020-08-30 15:28:26 -04:00
Brandon Bayer
9cbec551f8 Upgrade tsdx and some other dependencies (#960)
* upgrade tsdx and some other dependencies

* add missing dep (meta)
2020-08-29 17:26:51 -04:00
Brandon Bayer
7531cf66f7 Upgrade default react version to 0.0.0-experimental-94c0244ba (#961)
(minor)
2020-08-29 17:11:07 -04:00
allcontributors[bot]
cf0d77e010 docs: add alan2207 as a contributor (#959)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-29 15:40:09 -04:00
Alan Alickovic
713f20d494 Add isLoading property to useSession() hook result (#936)
(minor)
2020-08-29 15:39:53 -04:00
Brandon Bayer
19293c1efb Add .blitz to modulePathIgnorePatterns in Jest config for new apps (#946)
(patch)
2020-08-25 18:50:11 -04:00
George Karagkiaouris
2466a6b98c Automatically run initial db migrations during new app setup (#927)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-08-25 17:32:30 -04:00
allcontributors[bot]
de8e0a6808 docs: add svobik7 as a contributor (#944)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-25 17:29:54 -04:00
Jirka Svoboda
8b9252c697 Fix queries and mutations for plain JS projects (#878)
(patch)
2020-08-25 17:29:23 -04:00
allcontributors[bot]
12c0f72243 docs: add karaggeorge as a contributor (#943)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-25 17:19:47 -04:00
George Karagkiaouris
5e43599338 Add autocomplete to the Blitz CLI (#928)
* Add autocomplete

* Pin plugin version (minor)
2020-08-25 17:19:18 -04:00
George Karagkiaouris
1bf5bf0492 Fix jest config for new apps and fix example test (#924)
(patch)
2020-08-25 17:17:55 -04:00
Dylan Brookes
ff9f70daa8 Fix mdx files not working (#935)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com> (patch)
2020-08-25 17:09:43 -04:00
Brandon Bayer
89676e4ba8 Elias retired from L1 maintainer 2020-08-25 15:08:43 -04:00
allcontributors[bot]
679efef951 docs: add bpas247 as a contributor (#934)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-22 23:30:17 -04:00
Brady Pascoe
bcd9e8dbc9 Add Formik as form option when creating a new app (#926)
(minor)
2020-08-22 23:29:56 -04:00
allcontributors[bot]
8b0fa91233 docs: add karaggeorge as a contributor (#933)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-22 20:58:36 -04:00
George Karagkiaouris
e55e90c345 Fix url encoding for authError in the Passport.js adapter (#925)
(patch)
2020-08-22 20:57:18 -04:00
George Karagkiaouris
4e81c97b2b Fix regex to include dynamic imports (#931) 2020-08-22 18:00:17 +10:00
Dwight Watson
16b414bd3d Remove favicon from generators (#921)
Co-authored-by: Dylan Brookes <24858006+merelinguist@users.noreply.github.com>
2020-08-21 18:36:45 +01:00
Dylan Brookes
8798c9fb3d Fix Tailwind Recipe purging in production (#930)
(ignore)
2020-08-21 08:58:46 -04:00
Brandon Bayer
9f91767246 fix couple dependency version bugs in recipes
(ignore)
2020-08-19 20:45:15 -04:00
Brandon Bayer
a6878b35d0 v0.18.0 2020-08-19 20:40:50 -04:00
Adam Markon
39c3b27038 Migrate Recipes to jscodeshift and Support conditional JSX expressions (#898)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-08-19 20:38:49 -04:00
Brandon Bayer
5cc54ab981 v0.17.1-canary.7 2020-08-19 17:35:52 -04:00
Brandon Bayer
91034216a5 Add prompt for form library when running blitz new (#917)
(minor)
2020-08-19 16:51:21 -04:00
Brandon Bayer
2c78ead4cd Finish adding new Layout component to auth pages in new app template (#919)
(patch)
2020-08-19 15:52:34 -04:00
Brandon Bayer
a0cf98bc47 Some improvements to auth in new app template (#916)
(minor)
2020-08-19 15:07:09 -04:00
Brandon Bayer
6898ead0a5 [RFC] Blitz Auth Session Management (#475)
(ignore)
2020-08-19 14:10:30 -04:00
Weilbyte
c7843e8077 Fix to allow usage without db/index.(ts|js) file (#906)
(patch)
2020-08-19 14:08:15 -04:00
Brandon Bayer
370486291a v0.17.1-canary.6 2020-08-18 21:08:57 -04:00
Brandon Bayer
e26e04c603 add ability to disable CSRF protection (#915) 2020-08-18 20:33:04 -04:00
Brandon Bayer
1fa7d17587 Fix: Refetch all queries if session changes (#914)
(patch)
2020-08-18 20:32:44 -04:00
Brandon Bayer
27bc2e49c4 Change ctx.session.userId type to be any (#912)
(patch)
2020-08-18 18:17:00 -04:00
Dwight Watson
18beb6fb1d Add Persistent layout to new app template with <Layout> and getLayout() (#897)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-08-18 17:58:40 -04:00
allcontributors[bot]
5f68bda686 docs: add cardotrejos as a contributor (#911)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-18 17:51:29 -04:00
Ricardo Trejos
81ec5c8528 Bump Prisma Version to Latest in Examples (#866) (#893)
Co-authored-by: Brandon Bayer <b@bayer.ws> (example)
2020-08-18 17:51:10 -04:00
Simon Edelmann
0d0c808cc3 Change useQuery to only retry on network errors by default (#908)
(patch)
2020-08-18 16:47:24 -04:00
allcontributors[bot]
097a2196f3 docs: add Weilbyte as a contributor (#907)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-18 12:23:48 -04:00
Weilbyte
c592b04c18 Add --no-git flag to blitz new #889 (WIP) (#905)
(minor)
2020-08-18 12:23:25 -04:00
Brandon Bayer
b0d61dc4f1 v0.17.1-canary.5 2020-08-17 22:45:09 -04:00
Brandon Bayer
f5d7ab9005 Update MEETING_NOTES.md
(ignore)
2020-08-17 21:40:11 -04:00
Dwight Watson
26cc39322a Show blitz install command in blitz help output (#903)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-08-17 20:51:31 -04:00
Brandon Bayer
9441dfc1f7 Fix return types of useParam and useParams (#902)
(patch)
2020-08-17 19:16:59 -04:00
Brandon Bayer
4231c9c97f Fix superjson serialization in Safari (Upgrade superjson to 1.2.1) (#901)
* upgrade superjson to 1.2.0

* upgrade to 1.2.1 (patch)
2020-08-17 19:16:30 -04:00
Todd Geist
9a72648ff8 Fix to not use secure cookies on localhost (#895)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-08-17 17:57:46 -04:00
Adam Markon
2059009c1b Add blitz generate query to generate a single query (#837)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-08-17 17:32:07 -04:00
Dwight Watson
44e32f0206 Capitalize help command description (#899) 2020-08-17 12:51:53 +01:00
allcontributors[bot]
924d431c0d docs: add toddgeist as a contributor (#896)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-16 17:40:41 -04:00
allcontributors[bot]
3ee9dd8bea docs: add kripod as a contributor (#892)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-16 10:07:03 -04:00
Kristóf Poduszló
fc6817520e Change db/index.ts in new app template to use globalThis instead of global (#813)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: Justin Hall <justin.r.hall@gmail.com>
2020-08-16 10:06:44 -04:00
Justin Hall
b53ad3ea4e Add Blitz Recipe for Emotion (#805)
(minor)
2020-08-14 18:04:22 -04:00
allcontributors[bot]
a999408fed docs: add scisteffan as a contributor (#884)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-14 17:59:11 -04:00
Brandon Bayer
984a10abef Add @SebastianKurp as a contributor 2020-08-14 17:46:09 -04:00
Brandon Bayer
1a7274e5a6 fix render recipe by adding NODE_ENV=production
(patch)
2020-08-14 17:45:30 -04:00
allcontributors[bot]
3e9810e91a docs: add drenther as a contributor (#883)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-08-14 17:43:00 -04:00
Soumyajit Pathak
6aa2c5d471 Add material-ui recipe (#840)
(minor)
2020-08-14 17:42:31 -04:00
Dwight Watson
3433411a01 Change new app template to set database through .env (#876)
(minor)
2020-08-14 17:36:20 -04:00
Brandon Bayer
1177e5c9f6 Finish default testing setup for new apps (#847)
(minor)
2020-08-14 17:25:53 -04:00
Dwight Watson
ca5b91c340 Remove trailing space (#879) 2020-08-13 11:22:19 +01:00
Brandon Bayer
ba0aeae3e5 v0.17.1-canary.4 2020-08-12 18:22:45 -05:00
Brandon Bayer
24162830ae Fix superjson serialization for useQuery hook (#875)
* fix superjson serialization for useQuery hook

* update test (patch)
2020-08-12 18:20:48 -05:00
Brandon Bayer
d0015e3f88 Improve default useQuery retry behavior in production (#874)
(patch)
2020-08-12 17:45:57 -05:00
Brandon Bayer
6b2788923e Upgrade Next.js to 9.5.2 (#872)
* upgrade next.js to 9.5.2

* fix type issue (patch)
2020-08-12 17:21:55 -05:00
Brandon Bayer
3b5aa9006d Fix session middleware when deployed to Vercel (#871)
(patch)
2020-08-12 17:01:13 -05:00
allcontributors[bot]
8637ed63ba docs: add pragmaticivan as a contributor (#873)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-12 16:51:37 -05:00
Ivan Santos
f78781c63b Update eslint to v7 in new app template and the blitz repo (#853)
(minor)
2020-08-12 16:51:22 -05:00
Brandon Bayer
dc6ffed270 Add SessionContext and session.authorize() to query/mutation generators (#869)
(minor)
2020-08-12 16:46:29 -05:00
Brandon Bayer
2686e1c2ea Fix blitz db reset for Prisma >= 2.2.0 (#870)
(patch)
2020-08-12 16:43:06 -05:00
allcontributors[bot]
59c7fb9b01 docs: add rohanjulka19 as a contributor (#867)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-12 14:30:48 -05:00
Brandon Bayer
b6b877e851 fix render recipe 2020-08-12 10:33:52 -05:00
Brandon Bayer
90a7624489 Allow having pageName.test.tsx inside pages (#850) 2020-08-12 11:54:12 +10:00
Brandon Bayer
ade63c53fd Update @dwightwatson as a contributor 2020-08-11 13:52:25 -05:00
allcontributors[bot]
08e6cd3d2e docs: add nettofarah as a contributor (#860)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-11 12:31:21 -05:00
Netto Farah
6839b55d1d Update all examples to use latest eslint (#852)
(example)
2020-08-11 12:31:06 -05:00
Brandon Bayer
528a7ec18b Rename .babelrc.js to babel.config.js in new app template (#849)
(patch)
2020-08-08 18:11:11 -05:00
Brandon Bayer
9a3f1a1241 v0.17.1-canary.3 2020-08-08 17:42:02 -05:00
Brandon Bayer
10c1e0cfea Add superjson to mutations (#848)
(patch)
2020-08-08 17:38:27 -05:00
allcontributors[bot]
68162b406c docs: add chris-tse as a contributor (#846)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-08-08 14:15:10 -05:00
Chris Tse
4cc80b8529 Add extra debugging info to blitz -v (#816)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-08-08 14:14:36 -05:00
allcontributors[bot]
0ae3bd4afa docs: add agoxlea as a contributor (#845)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-08 11:01:13 -05:00
Alex Orr
2207889c6d Fix prisma.connect warning with prisma 2.4.0 (#839)
(patch)
2020-08-08 11:01:01 -05:00
Oscar Sirvent
338b390a78 typo on tailwind recipe (#844) 2020-08-08 10:22:48 -05:00
Rafael Nunes
c173b9d09d Add Jest and React Testing Library to new apps (#810)
(minor)
Co-authored-by: Adam Markon <amarkon895@gmail.com>
2020-08-06 09:41:01 -04:00
Brandon Bayer
e1120a0449 tweak render recipe db name
(ignore)
2020-08-05 08:26:33 -04:00
Brandon Bayer
b4551323c8 fix chakra recipe dep version
(ignore) # Please enter the commit message for your changes. Lines starting
2020-08-04 22:08:30 -04:00
Brandon Bayer
50a276f582 v0.17.1-canary.2 2020-08-04 21:58:36 -04:00
Brandon Bayer
63a078be27 Add Blitz Recipe for Render.com (#835)
* Add Blitz Recipe for Render.com

* cleanup (minor)
2020-08-04 21:52:40 -04:00
Brandon Bayer
16ab5675e2 Fix useQuery when resolver returns undefined (#836)
(patch)
2020-08-04 21:52:24 -04:00
Fran Zekan
7509aca08d Add Blitz recipe for Chakra (#830)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-08-04 17:38:11 -04:00
Brandon Bayer
5320bc5211 v0.17.1-canary.1 2020-08-04 17:29:39 -04:00
Brandon Bayer
d32a39993c fix publish script
(ignore)
2020-08-04 17:26:29 -04:00
Brandon Bayer
5795eefaab v0.17.1-canary.0 2020-08-04 17:24:53 -04:00
Brandon Bayer
28e6a0032a Add user signup/login/logout to new app template (#834)
(major)
2020-08-04 16:55:27 -04:00
Brandon Bayer
96fea67112 Ignore flaky cypress test on windows (#832)
(ignore)
2020-08-04 14:32:38 -04:00
Brandon Bayer
9005c58349 Enable full JS object serialization/deserialization for queries/mutations by integrating superjson (#827)
(major)
2020-08-04 13:17:35 -04:00
allcontributors[bot]
dea9200f9d docs: add rubenmoya as a contributor (#831)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-08-04 10:37:46 -04:00
Rubén Moya
b6e72cc5f5 Add e2e tests to auth example (#817)
Co-authored-by: Brandon Bayer <b@bayer.ws> (example)
2020-08-04 10:37:28 -04:00
dependabot[bot]
5165793a4e Bump lodash from 4.17.15 to 4.17.19 in /examples/plain-js (#829)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (meta)
2020-08-04 10:11:10 -04:00
Brandon Bayer
1fe2653b4f remove test from publish script, since we have CI
(ignore)
2020-08-02 15:08:52 -07:00
Brandon Bayer
740b57798f v0.17.0 2020-08-02 15:08:20 -07:00
Brandon Bayer
07cf6d6e26 Fix with-blitz bug when published on npm (#824)
(ignore)
2020-08-02 15:04:38 -07:00
Brandon Bayer
21896944f9 v0.16.5-canary.8 2020-08-02 14:31:38 -07:00
Brandon Bayer
62a5408e6e Fix bug when users use next-compose-plugins and with framework code being transpiled in dev (#823)
* fix bug when users use next-compose-plugins and with framework code being transpiled in dev

* fix test (patch)
2020-08-02 14:26:53 -07:00
Brandon Bayer
e1e82cb630 Add to store example superjson for getStaticProps (#822)
(example)
2020-08-02 14:03:04 -07:00
dependabot[bot]
81c13df956 Bump elliptic from 6.5.2 to 6.5.3 in /examples/plain-js (#818)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-08-02 13:26:44 -07:00
Brandon Bayer
65acdc971c Upgrade react-query to 2.5.11 (#820)
(patch)
2020-08-02 12:16:26 -07:00
Brandon Bayer
eb1c88ee1a Add example usage of superjson with getServerSideProps in store example (#819)
(example)
2020-08-02 12:16:15 -07:00
Brandon Bayer
d0fdb7b1f3 Add NotFoundError to Blitz and add default 404 page to new app template (#811)
(minor)
2020-08-02 11:53:01 -07:00
Brandon Bayer
724c6921da Upgrade Next.js to 9.5.1 (#812)
(minor)
2020-08-02 10:28:38 -07:00
Simon Knott
31ecd58857 Allow custom DB connection logic and add example for using DB clients other than Prisma (#792)
(minor)
2020-07-30 03:39:21 +07:00
Brandon Bayer
aee33f0354 Change new app template to use react-error-boundary instead of custom ErrorBoundary component (#807)
(patch)
2020-07-28 14:42:25 +07:00
Brandon Bayer
baf3fb9b4f Rename <Error> to <ErrorComponent> (#808)
(major)
2020-07-27 20:53:42 +07:00
Simon Edelmann
437ce18170 Remove delete data.id from Generated update mutations (#789)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-07-27 18:17:37 +07:00
Simon Knott
167abce895 Add Node version check and warning to CLI startup routine (#804)
(patch)
2020-07-27 17:38:19 +07:00
Brandon Bayer
ed23307267 v0.16.5-canary.7 2020-07-25 18:50:11 +07:00
Brandon Bayer
436bd4e306 v0.16.5-canary.6 2020-07-25 18:43:56 +07:00
Brandon Bayer
8ee9df51fd 🎉 Add Passport.js authentication adapter! (#796)
(minor)
2020-07-25 18:31:56 +07:00
robertgrzonka
a421212e63 Add github orkflow for bundle size reporting (#799)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-07-25 16:46:38 +07:00
allcontributors[bot]
10c3b248e9 docs: add robertgrzonka as a contributor (#802)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-07-25 13:43:44 +07:00
Brandon Bayer
b5da9c2822 Add bundle analyzer to auth example (#795)
(example)
2020-07-24 20:32:44 +07:00
Brandon Bayer
509110b1ea Fix regression from getConfig in session management file (#793)
* fix regression from getConfig in session management file

* bump CI (ignore)
2020-07-24 20:32:23 +07:00
Brandon Bayer
852fdc6016 Update README.md 2020-07-24 16:18:05 +07:00
Brandon Bayer
69449ca6b9 Fix cannot read property 'getSession' of undefined (#790)
(patch)
2020-07-24 15:31:38 +07:00
Brandon Bayer
35ff20bc78 Fully fix errors from useQuery during pre-rendering (#791)
(patch)
2020-07-24 15:31:15 +07:00
Brandon Bayer
000cf2d4bf Revert "Allow custom DB connection logic and add example for using DB clients other than Prisma (#739)"
This reverts commit 20f1d99e7c.
2020-07-23 20:29:05 +07:00
Simon Knott
20f1d99e7c Allow custom DB connection logic and add example for using DB clients other than Prisma (#739)
(minor)
2020-07-23 19:24:24 +07:00
Brandon Bayer
960e225f0c fix yarn.lock 2020-07-22 22:24:10 +07:00
Brandon Bayer
d8449d4458 v0.16.5-canary.5 2020-07-22 22:22:49 +07:00
Brandon Bayer
50e20b812c Fix global middleware not working in serverless builds (#787)
(patch)
2020-07-22 22:17:53 +07:00
Brandon Bayer
fa8616f8a3 Fix blitz db migrate stuck on first production deploy (#786)
(patch)
2020-07-22 18:23:12 +07:00
Brandon Bayer
362352379d Enable CI cache for windows (#785)
(meta)
2020-07-22 17:49:17 +07:00
Dylan Brookes
580e2724ff Remove GUI code - rework in progress (#781)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com> (meta)
2020-07-22 16:00:40 +07:00
allcontributors[bot]
19c3f13de9 docs: add rubenmoya as a contributor (#783)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-07-22 15:58:53 +07:00
Rubén Moya
53f3fbf7c7 Fix auth public-data-token localstorage key (#780)
(patch)
2020-07-22 15:58:15 +07:00
Adam Markon
7426fc5794 Add Blitz Recipe for Tailwind CSS (#776) 2020-07-21 09:32:59 -04:00
Brandon Bayer
089ca908ed Change auth example to use a shared <Form> component that abstracts the actual form library (#778)
(example)
2020-07-21 16:56:53 +07:00
Brandon Bayer
820c678533 v0.16.5-canary.4 2020-07-21 16:13:53 +07:00
Brandon Bayer
abd0bbd7cf Switch to url safe CSRF tokens (#777)
(patch)
2020-07-21 15:48:22 +07:00
Brandon Bayer
af68b9aa0a v0.16.5-canary.3 2020-07-21 10:18:46 +07:00
Adam Markon
4ce2161ec7 Improved API for defining Blitz Recipes (#770)
(minor)
2020-07-20 10:47:55 -04:00
Brandon Bayer
2d9338a613 v0.16.5-canary.2 2020-07-20 20:47:33 +07:00
Brandon Bayer
9e39c4229b Fix auth with SSR + add full ssr auth example (#774)
(patch)
2020-07-20 20:40:24 +07:00
dependabot[bot]
ea58cc336b Bump lodash from 4.17.15 to 4.17.19 (#769)
(meta)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-20 09:41:14 +07:00
Brandon Bayer
323bb28cc3 Refactor auth example, add signup/login pages, add react-final-form (#766)
(example)
2020-07-18 17:52:04 +07:00
Brandon Bayer
7f232be90f v0.16.5-canary.1 2020-07-18 16:29:54 +07:00
Brandon Bayer
60d48c6f83 Fix session management in SSR (#765)
(patch)
2020-07-18 16:20:50 +07:00
Brandon Bayer
0753dae8ca Add optional returnType parameter to useParams (#759)
(minor)
2020-07-18 14:54:48 +07:00
Brandon Bayer
d70cf53f16 Fix error during static pre-rendering in development (#761)
(patch)
2020-07-18 14:53:30 +07:00
C. K. Tang
c4589bd9fe Fix small README typo in new app template (#764)
(patch)
2020-07-18 11:27:57 +07:00
Brandon Bayer
33b888e1ea Fix a couple useParam() bugs + add full tests (#762)
(patch)
2020-07-18 09:44:03 +07:00
Brandon Bayer
fa8ab60870 delete a few old .md files
(ignore)
2020-07-17 14:39:35 +07:00
Brandon Bayer
7f8609bbea update sponsorship section 2020-07-17 14:29:48 +07:00
Brandon Bayer
927c3ac6a5 fix yarn.lock 2020-07-16 21:09:11 +07:00
Brandon Bayer
2e7f191a31 v0.16.5-canary.0 2020-07-16 21:02:04 +07:00
Brandon Bayer
2da0508964 🎉Add supertokens session management package (#694)
(minor)
2020-07-16 20:51:23 +07:00
Brandon Bayer
02d0d06b84 v0.16.4 2020-07-13 19:33:53 +07:00
Brandon Bayer
4eb00cfdc6 Fix bug preventing use of next-compose-plugins (#746)
(patch)
2020-07-13 19:23:40 +07:00
Brandon Bayer
389921d0da Fix tiny page template issue with an unused import (#744)
(patch)
2020-07-13 18:52:51 +07:00
Brandon Bayer
09ab9cc9fc Upgrade react-query to 2.4.15 (#743)
(patch)
2020-07-13 18:24:06 +07:00
Brandon Bayer
c0efe8c411 Fix lint warnings (#742)
(meta)
2020-07-13 18:04:29 +07:00
Daniel Kempner
26626ced9f Fix comment spelling in display package (#738)
(meta)
2020-07-12 21:57:30 +07:00
Rafael Nunes
d7d733c5a4 Updates README.md in the new app template (#735)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-07-11 10:11:58 +07:00
Brandon Bayer
82fd604be4 v0.16.3 2020-07-08 17:17:49 +07:00
Rudi Yardley
342782fe12 Fix issue with using non-page files inside pages folders (#733)
(patch)
2020-07-08 17:11:04 +07:00
Brandon Bayer
a45235ef58 Update MEETING_NOTES.md 2020-07-07 09:16:13 +07:00
Brandon Bayer
440ed3d81a v0.16.2 2020-07-06 21:41:57 +07:00
Brandon Bayer
fc9da2ace1 Fix buggy global/local CLI resolution code (#731)
(patch)
2020-07-06 21:24:39 +07:00
allcontributors[bot]
9a6fc37b7d docs: add tylangesmith as a contributor (#732)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-07-06 21:16:03 +07:00
Ty Lange-Smith
3ac4303dad Update blitz db cli command to default to --help if no command specified (#730)
(patch)
2020-07-06 21:15:46 +07:00
Brandon Bayer
93f4768535 v0.16.1 2020-07-03 00:04:12 +07:00
Brandon Bayer
a24b78e654 Fix global middleware not running with blitz start --production (#726)
(patch)
2020-07-02 22:59:43 +07:00
Brandon Bayer
843dbc2c66 v0.16.0 2020-07-01 16:30:51 +07:00
Matsumoto Toshi
9e75a75049 Breaking: Upgrade React Query to v2 (#720)
(major)
2020-07-01 16:01:16 +07:00
GaneshMani
df3349e403 Fix experimental flags in blitz.config.js not being used (#721)
(patch)
2020-07-01 15:56:26 +07:00
Brandon Bayer
396613aee3 Fix Router export from 'blitz' (#722)
(patch)
2020-06-30 22:03:51 +07:00
Brandon Bayer
06859d6bdb Add @garrisons as a contributor 2020-06-30 16:01:52 +07:00
Brandon Bayer
d4cb65277b Add @sbardian as a contributor 2020-06-30 16:00:04 +07:00
Brandon Bayer
8b2a50d288 Fix middleware error handling when using next(error) (#719)
(patch)
2020-06-29 18:29:05 +07:00
allcontributors[bot]
10146f6723 docs: add SigurdMW as a contributor (#718)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-27 11:05:20 +07:00
Sigurd Moland Wahl
5294166ea7 Fix blitz db reset for Prisma >=2.0.0-beta.8 (#716)
Co-authored-by: Sigurd Moland Wahl <sigurd.wahl@bouvet.no> (patch)
2020-06-27 10:59:21 +07:00
allcontributors[bot]
fbfc2c86e0 docs: add shaunchurch as a contributor (#717)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-06-27 10:52:56 +07:00
Shaun Church
1cee5ead28 Support Optimistic UI Updates: Add refetch option to useQuery mutate() (#715)
(minor)
2020-06-27 10:52:34 +07:00
Brandon Bayer
eba7be8626 scaffold user code for auth example app
(ignore)
2020-06-23 21:52:51 +07:00
Brandon Bayer
8d699f5a6b Add @styfle as a contributor 2020-06-23 21:48:59 +07:00
Brandon Bayer
35b5f12395 add auth example app (currently empty, PRs coming soon) 2020-06-23 20:55:40 +07:00
Brandon Bayer
2d8fb4b135 update yarn.lock 2020-06-23 20:44:22 +07:00
Brandon Bayer
9bb5730793 v0.15.3 2020-06-23 20:41:42 +07:00
Justin Hall
8bc416d8ae Fix blitz new dependency install issue (missing dependency in @blitzjs/generator) (#711)
(patch)
Co-authored-by: Adam Markon <amarkon895@gmail.com>
2020-06-23 20:34:34 +07:00
Brandon Bayer
48250d04ac Update MEETING_NOTES.md 2020-06-23 09:38:57 +07:00
Matsumoto Toshi
8ecdc3253d Prevent automatic conversion of field names (#708)
Co-authored-by: Adam Markon <amarkon895@gmail.com>
2020-06-22 16:15:04 -04:00
GaneshMani
58900eb9eb Fix blitz start -p 1234 not throwing an error if port 1234 is already in use (#631)
Co-authored-by: mac <mac@macs-MacBook-Pro.local>
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-06-22 20:26:31 +07:00
Brandon Bayer
9c04a9d5e4 Update @LoriKarikari as a contributor 2020-06-22 09:02:45 +07:00
Brandon Bayer
c6f47729b4 Update @osirvent as a contributor 2020-06-22 09:02:10 +07:00
Brandon Bayer
7a1b4b40d1 v0.15.2 2020-06-20 16:00:06 +07:00
Brandon Bayer
0f70020312 v0.15.2-canary.3 2020-06-20 15:49:15 +07:00
Brandon Bayer
24ef56ca18 fix bug in form template from last PR
(ignore)
2020-06-20 15:43:14 +07:00
Brandon Bayer
3d85f365db v0.15.2-canary.2 2020-06-20 15:37:04 +07:00
Brandon Bayer
eaa1a88318 Various DX improvements (#706)
(patch)
2020-06-20 15:22:45 +07:00
Brandon Bayer
11e82686d9 Fix broken cli when using npm where global blitz version used instead of local (#705)
(patch)
2020-06-20 15:00:14 +07:00
Brandon Bayer
25f96d0ca6 remove post-checkout git hook - too annoying 2020-06-20 14:44:29 +07:00
Brandon Bayer
4c5bb19766 run prettier on cli.ts file
(ignore)
2020-06-20 14:11:12 +07:00
Brandon Bayer
57a798af34 Fix broken CLI from error: @blitzjs/cli: Cannot find module 'react' (#704)
(patch)
2020-06-20 13:17:36 +07:00
Justin Hall
b3814fc7c0 Standardize prettier options across all Blitz code bases (#703)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-06-19 09:33:57 +07:00
Rafael Nunes
09fc2e10d6 Fix page generator with custom context (#669)
Co-authored-by: Rafael Nunes <rafaelgnds@gmail.com> (patch)
2020-06-19 09:11:46 +07:00
Dylan Brookes
a3fcc3d7b3 GUI design polish (#702)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
2020-06-18 22:34:03 +01:00
Brandon Bayer
8ae42c5d97 Add @shaunchurch as a contributor 2020-06-18 09:22:08 +07:00
Brandon Bayer
832820c97c v0.15.1 2020-06-17 18:13:50 +07:00
Brandon Bayer
5ec2f8ca5c fix yarn.lock 2020-06-17 18:08:23 +07:00
Brandon Bayer
581e2fa807 Update MEETING_NOTES.md 2020-06-17 16:24:41 +07:00
Brandon Bayer
b8e2e10288 v0.15.1-canary.0 2020-06-17 11:54:53 +07:00
Rudi Yardley
15c7b76b51 Maybe fix the stuck at _manifest issue: Increase stream highwatermark (#697)
(patch)
2020-06-17 11:49:36 +07:00
Justin Hall
86c7281c46 [Page template] Forward submit event from form to parent event handler (#695)
(patch)
2020-06-17 09:13:12 +07:00
allcontributors[bot]
57fb819152 docs: add simonedelmann as a contributor (#693)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-16 21:00:35 +07:00
Simon Edelmann
acdcdbafb1 Update react-query to 1.5.8 (#692)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-06-16 21:00:18 +07:00
Brandon Bayer
dd2d759d35 v0.15.0 2020-06-16 17:49:32 +07:00
Matsumoto Toshi
3494e07d67 Added params and query to useRouter and withRouter (#677)
Co-authored-by: Brandon Bayer <b@bayer.ws> (major)
2020-06-16 17:38:50 +07:00
allcontributors[bot]
32a3a3f97a docs: add toshi1127 as a contributor (#691)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-16 17:23:10 +07:00
allcontributors[bot]
4386d2cb80 docs: add toshi1127 as a contributor (#690)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-16 17:14:54 +07:00
Matsumoto Toshi
f82e905c8e Prevent blitz db migrate from attempting to create new migration files in production (#683)
(patch)
2020-06-16 17:14:40 +07:00
Brandon Bayer
775d62702f Add HTTP Middleware 🎉 (#652)
(minor)
2020-06-16 16:59:15 +07:00
Justin Hall
f1ec0f8c46 Fix typo in model genereation output (#688) 2020-06-15 12:36:29 -04:00
Justin Hall
247bb8227e Fix top level await in blitz console 🎉 (#659)
Co-authored-by: Adam Markon <amarkon895@gmail.com> (patch)
2020-06-15 22:31:34 +07:00
Brandon Bayer
339ebcab7a v0.14.2-canary.0 2020-06-15 13:50:59 +07:00
Rudi Yardley
fe384f546b Ignore all .git sub files and folders (#687)
(patch)
2020-06-15 13:17:54 +07:00
Brandon Bayer
278fa74e1b v0.14.1 2020-06-15 09:35:50 +07:00
allcontributors[bot]
8587e4618b docs: add donni106 as a contributor (#686)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-15 09:27:49 +07:00
Rudi Yardley
62fb3978b2 Possible fix for stuck at _manifest: Debounce manifest writing (#685)
(patch)
2020-06-15 09:25:45 +07:00
Daniel Molnar
f0573ac033 Fix missing useParam import in edit.tsx page template (#684)
(patch)
- added `useParam` from blitz, which was missing and visiting
  edit pages for created models failed
2020-06-14 21:40:26 -04:00
allcontributors[bot]
799f7b2916 docs: add fnoah as a contributor (#681)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-14 14:59:55 +07:00
Noah Fleischmann
1b2c5a35ef Add spinner for Prettier formatting during 'blitz new' (#680)
(patch)
2020-06-14 14:59:17 +07:00
Fran Zekan
ce49a2da51 Fix eslint warnings in GUI (#679)
(meta)
2020-06-14 14:56:38 +07:00
Fran Zekan
3d4a15efd7 Syncify getConfig method in @blitzjs/config package (#676)
(meta)
2020-06-14 13:01:07 +07:00
Brandon Bayer
9eb85f61ed v0.14.0 2020-06-13 23:00:52 +07:00
Brandon Bayer
f0775cbbb9 v0.14.0-canary.0 2020-06-13 22:38:32 +07:00
Fran Zekan
25e9b2645e Add @blitzjs/config package for internal use (#653)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-06-13 15:20:24 +07:00
allcontributors[bot]
2ace6c728b docs: add tehnuge as a contributor (#675)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-13 15:09:24 +07:00
John Duong
da7f542122 Add AppProps to _app.tsx in new app template (#671) (#674)
(patch)
2020-06-13 15:08:49 +07:00
allcontributors[bot]
8d0da90367 docs: add exclipy as a contributor (#673)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-13 09:25:12 +07:00
Juan Di Toro
24f55ab085 Import Blitz Projects (#643)
Co-authored-by: Dylan Brookes <24858006+merelinguist@users.noreply.github.com>
2020-06-11 17:17:23 +01:00
Brandon Bayer
ea63de0d21 Add three lint rules to catch async/await promise bugs (#662)
(meta)
2020-06-11 09:03:22 +07:00
allcontributors[bot]
2230842648 docs: add donni106 as a contributor (#665)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-11 09:02:18 +07:00
Daniel Molnar
ad77e2cdd9 Sync README parts with blitzjs.com/docs/getting-started (#664)
(meta)
2020-06-11 09:01:47 +07:00
Brandon Bayer
439d12694b Fix broken linting by centralizing it + run via lint-staged (#661)
(meta)
2020-06-10 21:22:49 +07:00
allcontributors[bot]
6a951c9d3c docs: add osirvent as a contributor (#660)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-10 17:43:01 +07:00
Oscar Sirvent
f185138712 Update example apps to Prisma 2.0.0 (#658)
(example)
2020-06-10 17:42:27 +07:00
allcontributors[bot]
bf13f61046 docs: add josemiguelo as a contributor (#657)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-09 18:47:31 +07:00
Dylan Brookes
c3d4882151 Update query/mutation templates for Prisma 2.0.0 (#655)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com> (patch)
2020-06-09 18:45:38 +07:00
Brandon Bayer
56f4e6efec Update MEETING_NOTES.md
(ignore)
2020-06-09 09:27:49 +07:00
Dylan Brookes
a175fd2f26 Fix pipeline build error (#651) 2020-06-08 15:23:50 +10:00
Brandon Bayer
7975373551 Do some yarn workspace maintenance (#633)
(meta)
2020-06-07 17:35:52 +07:00
allcontributors[bot]
73502e3a9a docs: add gvasquez11 as a contributor (#649)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-07 17:24:32 +07:00
gvasquez11
b04a76a6dc Add missing re-export items from Next.js (#636)
(minor)
2020-06-07 17:24:07 +07:00
Adam Markon
c05b43a4dd Add blitz generate model 🎉 (#545)
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: Adam Markon <amarkon@hubspot.com> (minor)
2020-06-07 17:06:50 +07:00
allcontributors[bot]
e99462b8ff docs: add anteprimorac as a contributor (#648)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-07 17:03:14 +07:00
Ante Primorac
201ea1eb25 Add useParam hook (#637)
(minor)
2020-06-07 17:02:14 +07:00
Rudi Yardley
9c9c42309a Add dot option to glob (#646) 2020-06-07 10:49:19 +01:00
Rudi Yardley
baf4907912 Only parse typescript/js files (#645) 2020-06-07 18:17:20 +10:00
Adam Markon
bc1e695ca8 Rewrite recipe installer framework with Ink (#608)
(meta)
2020-06-07 15:03:50 +07:00
Brandon Bayer
3f6b9ef1ad Update PULL_REQUEST_TEMPLATE.md
(ignore)
2020-06-06 21:42:51 +07:00
allcontributors[bot]
a5410053e1 docs: add reymon359 as a contributor (#640)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-06 21:33:58 +07:00
reymon359
798eb7a394 Rename NextScript to BlitzScript (#638)
(major)
2020-06-06 21:33:45 +07:00
Brandon Bayer
cda8313cfd Update README.md
(ignore)
2020-06-06 21:27:58 +07:00
Brandon Bayer
462e22a745 v0.13.0 2020-06-06 16:27:01 +07:00
Brandon Bayer
3215b32b32 tiny improvement to blitz console help text 2020-06-06 16:21:17 +07:00
Rudi Yardley
c64256ca26 Add new unit tests for file-pipeline (#617)
Co-authored-by: Dylan Brookes <24858006+merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-06-06 14:27:59 +07:00
Jeremy Liberman
6459d24bce Add rules summary to stages README.md (#629)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-06-06 14:27:38 +07:00
Brandon Bayer
15d00bc8de v0.13.0-canary.3 2020-06-06 13:07:36 +07:00
Brandon Bayer
643e6a1701 update publish script
(ignore)
2020-06-05 22:24:41 +07:00
Brandon Bayer
09932642f9 v0.13.0-canary.2 2020-06-05 22:23:31 +07:00
Brandon Bayer
b3a5ab20d4 v0.13.0-canary.1 2020-06-05 22:17:47 +07:00
Brandon Bayer
9c387e11be update publish script
(ignore)
2020-06-05 22:12:13 +07:00
Brandon Bayer
96013f4a9c v0.13.0-canary.0 2020-06-05 22:07:49 +07:00
Brandon Bayer
a5a8f4268a [RFC] Blitz App Architecture (#73)
Co-authored-by: Sonny <pgs.sonny@gmail.com> (meta)
2020-06-05 22:00:08 +07:00
Brandon Bayer
f398efa76c [RFC] Blitz File Structure & Routing (#74)
(meta)
2020-06-05 21:50:33 +07:00
Brandon Bayer
b34c0d77b9 Remove alpha docs and redirect to blitzjs.com (#628)
(meta)
2020-06-05 21:22:57 +07:00
GaneshMani
922cba40f3 Ensure Prisma client is generated on blitz build & blitz start (#567)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-06-05 21:04:42 +07:00
allcontributors[bot]
451dcb7e45 docs: add ganeshmani as a contributor (#625)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-06-05 20:45:46 +07:00
Rudi Yardley
3b316448a7 Fix ready event bug (#616)
* Apply transform to file-pipeline

* Rewrite writer to correctly report that file has been deleted

* Debug windows issues

* Fix up action changes to run all tests

* Fix bad merge

* Fire ready event as string down pipeline

* Fire ready event always

* Add comment

* Close stream in test

* Debugging: Try skip live watching test

* Don't create the watcher unless we are in watch mode

* Update agnostic-source.test.ts

* Wait for close promise to end before starting other test

* Debug watcher limit issue

* Try increasing watchers

* Try increasing watchers after dependency installation

* Only increase watchers in linux

* Only increase watchers in linux

* Fix bad os selection

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-06-05 19:15:22 +10:00
Ante Primorac
280755c83a Add useParams and useRouterQuery hooks (#574)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-06-04 21:22:15 +07:00
Jamie Davenport
b94a55f9ce [GUI] Fallback to NPM when Yarn isn't installed (#621) 2020-06-04 14:58:03 +01:00
allcontributors[bot]
3ab8951764 docs: add jamiedavenport as a contributor (#622)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-06-04 14:56:39 +01:00
Justin Hall
83f01434c4 Fix 'blitz help' not working from global cli (#613)
(patch)
2020-06-04 19:59:08 +07:00
Elias Johansson
e7dcf1c898 Add useQuery mutate function for updating query cache (#596)
Co-authored-by: Brandon Bayer <b@bayer.ws> (minor)
2020-06-04 19:57:51 +07:00
Rudi Yardley
533f97c1c8 Add universal stream abstraction (#615) 2020-06-04 12:57:18 +01:00
Rudi Yardley
d9fb0dde48 Do not warn on nested route errors (#601)
* Allow api folder inside global pages folder to accommodate plain next app

* Removed warning about nested API routes

* Revert useless change

* Add test cases and fix up algorhythm

* Remove unnecessary function

* Allow Stage to have a ReadWriteStream so we can test it easily

* Add normalize to paths to account for windowz hackrz

* Remove comment

* Tidy up normalize code so it is clearer
2020-06-04 20:43:08 +10:00
Ivan Medina
077644ec76 Add ability to prefetch query data (#546)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-06-03 18:50:31 +07:00
Mykal Machon
21060b410b Fix Glob in GUI for Windows (#609) 2020-06-03 09:26:36 +01:00
Dylan Brookes
f53a560b84 Add base infrastructure for blitz gui (#603)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
2020-06-01 15:52:33 +01:00
Rudi Yardley
7bdc524de4 Allow function config in withBlitz (#599) 2020-06-02 00:02:44 +10:00
João Portela
36ffb7c93a Fix blitz console loading freeze (#592)
(patch)
2020-06-01 20:36:46 +07:00
Rudi Yardley
ce9d2aa8dc Extract out file transformer (#591)
* Extract out synchronizer

* Alter codeowner of synchronizer

* Move agnostic input to pipeline

* Fix up manifest writing

* Abstract away Manifest ready output

* Extract rules from pipeline

* Move rules to live within server as they are blitz specific business concerns and depend on next.js

* Fix up auto import error

* Fix up incorrect Manifest type path

* Create DEBUG logger

* Pass configuration to rules not synchronizer

* Rename configureRules function

* Tidy up file transformer API

* Simplify configuration

* synchronizer -> file-pipeline

* Rule -> Stage

* Use nullish coalescing now we have it in TS

* Add documentation for file-pipeline

* Update docs

* Move image and remove outdated diagram

* Update Docs

* Refactor: Remove pipeline folder

* Update readme with a PR suggestion

* Update wait on scripts

* Add Documentation

* Update docs
2020-06-01 09:11:48 +10:00
allcontributors[bot]
05dad27f35 docs: add MykalMachon as a contributor (#594)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-05-31 21:06:17 +07:00
Mykal Machon
1700343f11 Fix queries when Prisma isn't being used (#593)
(patch)
2020-05-31 21:05:56 +07:00
Elias Johansson
2a0ab59f0f Add useInfiniteQuery hook (#590)
(minor)
2020-05-31 12:04:36 +07:00
Rudi Yardley
c057bfd531 Extract out display package (#589)
* Add display package

* Extract out log to display package

* Remove server references from packages that dont use it

* Remove incorrect dependency

* Fix up incorrect module field
2020-05-31 13:00:51 +10:00
Rudi Yardley
855363b2c7 Tidy up tests in server (#584)
* Unify mockFs usage. Provide multiMock function

* Add better comment

* Fix join used before defined
2020-05-30 20:19:53 +10:00
allcontributors[bot]
c8a5304d3c docs: add anteprimorac as a contributor (#581)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-05-30 11:19:24 +07:00
Ante Primorac
3aa919e825 Fix examples/store code style issues (#580)
(meta)
2020-05-30 11:17:30 +07:00
Brandon Bayer
4181efb75c update release script
(meta)
2020-05-29 21:47:13 +07:00
Brandon Bayer
7b7b3383ed v0.12.0 2020-05-29 21:31:21 +07:00
Brandon Bayer
e1b1fcb6b5 v0.12.0-canary.3 2020-05-29 21:19:42 +07:00
Brandon Bayer
d3b9fce0bd v0.12.0-canary.2 2020-05-29 21:06:16 +07:00
Brandon Bayer
5d0531d35a v0.12.0-canary.1 2020-05-29 19:38:23 +07:00
Brandon Bayer
0f6ea26560 failed publish 2020-05-29 19:33:18 +07:00
Brandon Bayer
5c434e3b3e v0.12.0-canary.0 2020-05-29 19:30:00 +07:00
Kevin Tovar
b5f0cb2ae7 Upgrade next to 9.4.4 version (#576)
Co-authored-by: Brandon Bayer <b@bayer.ws> (patch)
2020-05-29 19:23:41 +07:00
Rudi Yardley
02219a22e7 Use previous build for blitz start --production if up-to-date (#565)
(patch)
2020-05-29 18:46:35 +07:00
allcontributors[bot]
c80f28b588 docs: add kevotovar as a contributor (#578)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-05-29 18:43:15 +07:00
allcontributors[bot]
4daa44442f docs: add pixelmord as a contributor (#575)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-05-28 17:49:06 +07:00
Andreas Adam
0bd1b6fefc Add husky git hooks for yarn install when changing branches (#571)
(meta)
2020-05-28 17:48:09 +07:00
Brandon Bayer
0f279082c4 update user guide with pgbouncer instructions for Prisma 2020-05-28 17:09:33 +07:00
Brandon Bayer
cde418ffae add architecture diagram to readme
(meta)
2020-05-28 17:06:34 +07:00
Jack Clancy
9e681c6363 Add studio pkg.json script to new app template (#568)
(minor)
2020-05-28 17:03:58 +07:00
Rafael Nunes
2b4aa6fb2e Extract CLI repl into its own package (#520)
Co-authored-by: Brandon Bayer <b@bayer.ws> (meta)
2020-05-27 20:48:12 +07:00
Brandon Bayer
c11ffe82b0 Fix error in types for generated queries (#537)
(patch)
2020-05-27 18:14:27 +07:00
John Letey
0296f3c5c3 Tiny refactor to new app template's index page (#563)
(patch)
2020-05-27 18:09:53 +07:00
allcontributors[bot]
279557459d docs: add jletey as a contributor (#564)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-05-27 18:08:46 +07:00
John Letey
3b64d994f7 Remove the unused jobs folder from the new app template (#561)
(patch)
2020-05-27 18:08:27 +07:00
allcontributors[bot]
50e7a8f1fe docs: add pgrimaud as a contributor (#556)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-05-26 21:38:19 +07:00
Brandon Bayer
f3ad5fde7c disable video for cypress test. Not needed and causing ci problems 2020-05-26 21:26:31 +07:00
allcontributors[bot]
129fd02ce1 docs: add enzoferey as a contributor (#555)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> (meta)
2020-05-26 21:13:31 +07:00
Enzo Ferey
b622847184 Fix some dependency install warnings (#547)
(patch)
2020-05-26 21:12:37 +07:00
Jeremy Liberman
c743e82451 Add support for Dependent Queries to useQuery and usePaginatedQuery (#487)
Co-authored-by: Brandon Bayer <b@bayer.ws>
(patch)
2020-05-26 20:55:04 +07:00
Pierre Grimaud
ee91ef2972 Fix typos (#551) 2020-05-26 12:51:26 +01:00
Brandon Bayer
a7195f44b3 Create MEETING_NOTES.md
(meta)
2020-05-26 09:55:55 +07:00
Brandon Bayer
b1c8cf6e00 add codebase walkthrough video to CONTRIBUTING.md
(meta)
2020-05-25 22:33:09 +07:00
allcontributors[bot]
227f5da7ba docs: add lachlanjc as a contributor (#550)
(meta)
2020-05-25 22:25:27 +07:00
Jack Clancy
dc9c9756ae Improved error messages for blitz db commands (#544)
(patch)
2020-05-24 18:42:33 -04:00
Dylan Brookes
9aebf5129d Add meta and assets packages (#521)
Merging myself since this is zero-impact.
2020-05-24 22:54:57 +01:00
Lachlan Campbell
c23aba87b6 Improve JSON readability on generated show page (#548) 2020-05-24 21:27:27 +01:00
Brandon Bayer
fcd572a5e4 Update README.md 2020-05-23 21:07:38 +07:00
Brandon Bayer
a8e352ce17 Update README.md 2020-05-23 21:05:41 +07:00
Brandon Bayer
e69a7b6166 Update README.md 2020-05-23 21:03:42 +07:00
Brandon Bayer
b66b655154 Update README.md 2020-05-23 21:03:13 +07:00
Brandon Bayer
b900095313 Update README.md 2020-05-23 21:02:45 +07:00
John Cantrell
4f7fc78e59 Update Render deployment instructions in USER_GUIDE (#532)
(patch)
2020-05-22 09:10:00 +07:00
allcontributors[bot]
eaf1e0c340 docs: add nabi009 as a contributor (#536)
(meta)
2020-05-21 21:55:28 +07:00
Adam Markon
8786b2034b Fix bug in installer package with log imports (#535)
(meta)
2020-05-21 21:33:08 +07:00
Fran Zekan
7ec2a22b64 Update Next to 9.4.2 (#534)
(patch)
2020-05-21 21:31:42 +07:00
Brandon Bayer
1429b510bd BREAKING: Change useQuery() to require second argument (#526)
(minor)
2020-05-21 21:06:54 +07:00
Brandon Bayer
b16d6b8e5a update user_guide - add note about render.com not working 2020-05-20 22:41:29 +07:00
Brandon Bayer
2c5bc8dbf4 v0.11.0 2020-05-20 12:45:44 +07:00
Brandon Bayer
25904c8d55 v0.11.0-canary.0 2020-05-20 12:04:48 +07:00
Brandon Bayer
eb7f668d52 Upgrade Next.js to 9.4.1 (#527)
(patch)
2020-05-20 11:55:08 +07:00
Brandon Bayer
f223f84f02 update user_guide - tweak render config slightly 2020-05-20 11:54:55 +07:00
Brandon Bayer
46185f8832 Update some docs for recent template changes 2020-05-20 11:45:18 +07:00
Brandon Bayer
e543e8a892 Update USER_GUIDE for new templates and generate --parent 2020-05-20 11:35:41 +07:00
Abu Uzayr
a7ae0fbc0c Adds a failure message if the cli compilation isn't complete (#524)
(meta)
2020-05-20 10:49:06 +07:00
Adam Markon
3317ab74c2 Add --parent to blitz generate + Lots of code template updates + change route id to modelId (#494)
(minor)
2020-05-20 10:46:33 +07:00
Brandon Bayer
3f265c8f5b increase cypress test timeout
(meta)
2020-05-19 21:42:49 +07:00
Abu Uzayr
0e647ddfac Ensure same prisma client is being used on hot reload (#514)
(patch)
2020-05-19 21:38:52 +07:00
Elias Johansson
1c064e56b2 Extract usePaginatedQuery out of useQuery into a separate hook (#523)
(minor)
2020-05-19 21:24:58 +07:00
Fran Zekan
e63fe53dc6 Fix oclif hook id bug (#522)
(patch)
2020-05-18 19:14:55 +07:00
Brandon Bayer
6858fe4101 Add instructions to deploy to Render.com to the USER_GUIDE (#518)
(patch)
2020-05-16 19:10:15 +07:00
allcontributors[bot]
f5b7b25611 docs: add abuuzayr as a contributor (#513)
(meta)
2020-05-14 23:01:17 +07:00
Abu Uzayr
b2407ebdea Update fork sync script to add upstream remote (#512)
(meta)
2020-05-14 22:55:29 +07:00
Brandon Bayer
caefccfda1 increase timeout for generator test
(ignore)
2020-05-14 22:42:07 +07:00
Brandon Bayer
4f5c09f32c increase jest timeout for cli
(meta)
2020-05-14 22:05:27 +07:00
Brandon Bayer
1c0d7e1d5b v0.10.0 2020-05-14 21:46:11 +07:00
Brandon Bayer
ed27152c51 add back double jest run for cli test so I can publish to npm :/
(ignore)
2020-05-14 21:40:18 +07:00
Brandon Bayer
95bbbfc4e7 Remove typescript-eslint version override for blitz new (#511)
(ignore)
2020-05-14 21:29:04 +07:00
Brandon Bayer
c17e161f80 v0.10.0-canary.1 2020-05-14 20:21:08 +07:00
Brandon Bayer
7456d62171 Revert JS server pipeline rule (#510)
(meta)
2020-05-14 20:06:43 +07:00
Brandon Bayer
9eb5bb4584 Add a plain-js example and build it in our tests (#507)
(meta)
2020-05-14 19:09:39 +07:00
Brandon Bayer
17d9895070 v0.10.0-canary.0 2020-05-14 18:21:29 +07:00
Adam Markon
b7bc20574a 🚀 Add context path option to blitz generate (#493)
(minor)
2020-05-14 18:00:44 +07:00
Brandon Bayer
5dbe2af6ed Make a few cleanups to guides and templates (#506)
(meta)
2020-05-14 17:56:46 +07:00
Fran Zekan
a1e41101cc Update Next.js to 9.4! (requires react 0.0.0-experimental-33c3af284) (#498)
(minor)
2020-05-14 17:29:03 +07:00
Jose Felix
3e04881e96 Enable JavaScript project compilation (#476)
* Rule to compile typescript to javascript

* TS to JS compilation

* Files compile from ts to js

* Added tests

* Remove redundant buffer.from call
2020-05-14 17:47:47 +10:00
Simon Knott
ee6e492185 Fix some node v10 compatibility issues (#454)
(patch)
2020-05-13 14:27:05 +07:00
Brandon Bayer
ec613d4549 Add Jack Clancy (@jclancy93) and Ivan Medina (@ivandevp) as L1 mainta… (#504)
(meta)
2020-05-13 13:41:07 +07:00
Brandon Bayer
717548af26 Update CONTRIBUTING.md
(ignore)
2020-05-13 12:36:19 +07:00
Brandon Bayer
287b72726e Update USER_GUIDE.md
(ignore)
2020-05-13 12:34:57 +07:00
Brandon Bayer
d76fc7494c v0.9.2-canary.1 2020-05-12 23:38:12 +07:00
Brandon Bayer
33e28877e9 Fix blitz new failing because of prettier babel-ts error (#502)
(meta)
2020-05-12 23:32:33 +07:00
Brandon Bayer
114ae77bec v0.9.2-canary.0 2020-05-12 22:55:52 +07:00
Brandon Bayer
4cf74b19b5 Fix git commit error during blitz new (#501)
(patch)
2020-05-12 22:41:32 +07:00
Brandon Bayer
96b12eabe3 Change all dependency versions to be pinned (#500)
(meta)
2020-05-12 22:11:27 +07:00
Brandon Bayer
d51b92bbec update issue template
(ignore)
2020-05-12 21:59:08 +07:00
Brandon Bayer
5e4227181b update PR template
(ignore)
2020-05-12 21:57:38 +07:00
Justin Hall
7761f63534 Fix 'blitz db reset' command (#497) 2020-05-12 21:21:22 +07:00
Brandon Bayer
f1881993dd Fix blitz generate error about prettier parser (#499)
(meta)
2020-05-12 21:05:38 +07:00
Brandon Bayer
7cfc586667 update PR template 2020-05-12 20:55:16 +07:00
Adam Markon
19e4620c23 Support remote packages in the installer (#491)
(meta)
2020-05-12 19:24:13 +07:00
Brandon Bayer
3a407b7c08 add github discussions
(meta)
2020-05-12 11:26:12 +07:00
Nhat Khanh
6eb07b688f Run prettier on output of blitz generate commands (#453)
(patch)
2020-05-10 20:47:21 +07:00
allcontributors[bot]
c147048e6d docs: add lednhatkhanh as a contributor (#489)
(meta)
2020-05-10 20:16:45 +07:00
Dwight Watson
750cba1b19 Fix jest typo (#486)
(meta)
2020-05-10 20:10:16 +07:00
Simon Knott
ffaba32b12 Add CI step to monitor install time (#420)
(meta)
2020-05-09 22:01:08 +07:00
Brandon Bayer
dedad9e55a Add Fauna as a bronze sponsor 🎉 (#484)
(meta)
2020-05-09 09:40:33 +07:00
Brandon Bayer
ea91de84c0 v0.9.1 2020-05-08 19:26:19 +07:00
Brandon Bayer
944ec4576b fix failing cypress test 2020-05-08 19:17:55 +07:00
Brandon Bayer
96b8f69464 v0.9.1-canary.0 2020-05-08 19:11:58 +07:00
Brandon Bayer
17a43b8001 Fix blitz new --js not working in monorepo (#481)
(meta)
2020-05-08 19:02:54 +07:00
Brandon Bayer
cbce0c7ac1 Remove JS instructions and flag until we get bugs fixed (#407)" (#482)
(patch)
2020-05-08 18:55:14 +07:00
Brandon Bayer
0117198864 Remove blitz db migrate from new app template build script (#480)
(patch)
2020-05-08 16:57:41 +07:00
Brandon Bayer
150d320e7f Pin react experimental version & fix graceful fallback for prisma version (#479)
(patch)
2020-05-08 16:40:01 +07:00
Justin Hall
290702e7be ci: run tests on both Windows and Ubuntu (#368)
(meta)
2020-05-08 09:53:29 +07:00
Adam Markon
75a7feabf9 Add base infrastructure for blitz install (#434)
(meta)
2020-05-07 20:18:59 +07:00
Rudi Yardley
603e5cbaf2 Allow blitz in both dependencies and dev dependencies (#474)
(patch)
2020-05-07 20:14:06 +07:00
Justin Hall
3c52246478 Fix RPC routes on Windows (#451)
* fix(server): make @prisma/client omission rule cross-platform

* refactor(server): fix a couple typos

* fix(server): generate RPC routes correctly on Windows
2020-05-07 17:40:50 +10:00
Ivan Medina
3acf590e1c Update react-query to 1.3.3 (#450)
(patch)
2020-05-07 10:18:19 +07:00
Jeremy Liberman
060cfac2f8 Test: Add RPC tests (#449)
(meta)
2020-05-07 10:15:31 +07:00
allcontributors[bot]
3e5d2f4c6f docs: add MrLeebo as a contributor (#457)
(meta)
2020-05-06 18:18:41 +07:00
Simon Debbarma
623c4b37fc Update maintainers on allcontributors (#456)
(meta)
2020-05-06 18:10:50 +07:00
Brandon Bayer
6e85653f82 v0.9.0 2020-05-05 22:15:33 +07:00
Brandon Bayer
8e5e2b3cbd remove release from publish script
(ignore)
2020-05-05 22:09:28 +07:00
Brandon Bayer
094df2a7bb v0.9.0-canary.1 2020-05-05 22:02:34 +07:00
Brandon Bayer
47155fbec3 fix logic for default blitz new --npm flag value
(ignore)
2020-05-05 21:57:10 +07:00
Brandon Bayer
96ef3fe6b7 fix check-before-running error on canary
(ignore)
2020-05-05 21:54:58 +07:00
Brandon Bayer
6cd9d9496c v0.9.0-canary.0 2020-05-05 21:49:50 +07:00
Horie Issei #hashtagtest
223ab891db Fix Node 10 error for Object.fromEntries (#441)
(patch)
2020-05-05 21:45:05 +07:00
allcontributors[bot]
25c5e05ea3 docs: add is2ei as a contributor (#445)
(meta)
2020-05-05 21:43:38 +07:00
allcontributors[bot]
aad5ab772f docs: add dwightwatson as a contributor (#444)
(meta)
2020-05-05 21:42:05 +07:00
Dwight Watson
4651ae021a Enable React Fast Refresh (#435)
(minor)
2020-05-05 21:41:17 +07:00
allcontributors[bot]
8abcc8e78c docs: add ivandevp as a contributor (#443)
(meta)
2020-05-05 21:38:08 +07:00
Brandon Bayer
44532424a9 fix cypress config for store example
(ignore)
2020-05-05 21:37:24 +07:00
Brandon Bayer
bea6fdc0ec Revert "tweak test script"
This reverts commit 3339b131e1.
2020-05-05 21:33:48 +07:00
Brandon Bayer
b6b110fd10 fix store test script by explicitly setting port 2020-05-05 21:31:59 +07:00
Brandon Bayer
3339b131e1 tweak test script
(ignore)
2020-05-05 21:27:13 +07:00
Brandon Bayer
58d1bcf2f9 Change blitz new --no-yarn flag to --npm, for better UX (#442)
(patch)
2020-05-05 17:31:35 +07:00
Brandon Bayer
c5008e263a fix blitz new not working when linked from monorepo
(meta)
2020-05-05 17:23:44 +07:00
Brandon Bayer
ef451feb6a truly fix the yarn dev error 2020-05-05 17:05:16 +07:00
Brandon Bayer
2bf589d4f8 Fix blitz console by adding missing tsconfig-paths dependency (#439)
(patch)
2020-05-05 16:56:10 +07:00
Brandon Bayer
fd8a29f9cd Fix CLI crash when prisma is not installed (#438)
(patch)
2020-05-05 16:50:09 +07:00
Fran Zekan
f0517e072d Add helpful error messages to CLI when trying to use commands outside an app (#319)
(patch)
2020-05-05 16:11:26 +07:00
Brandon Bayer
6cd3abe6ea Fix yarn dev (#437) 2020-05-05 15:48:58 +07:00
allcontributors[bot]
2d8e33151f docs: add harris1717 as a contributor (#436)
(meta)
2020-05-05 15:07:28 +07:00
Jru Harris
307f373b42 Fix file path in TUTORIAL (#429)
(patch)
2020-05-05 15:07:15 +07:00
Ivan Medina
45cbd02370 Adds --port and --hostname to blitz start and dev commands (#413)
(minor)
2020-05-05 15:00:30 +07:00
Justin Hall
cddba4ef7a Fix bug breaking absolute imports in JS projects (#433)
(patch)
2020-05-05 00:01:01 -04:00
Justin Hall
4988dd7a00 test(generator): ignore dist directory (#427) 2020-05-04 13:39:57 -04:00
Brandon Bayer
ea61978d08 chore: remove release from publish script
(ignore)
2020-05-04 22:36:32 +07:00
Brandon Bayer
a11c1d4191 v0.8.2 2020-05-04 22:35:14 +07:00
Brandon Bayer
4ac78002ff Fix lint error for generated code about confirm 2020-05-04 22:28:10 +07:00
Brandon Bayer
10bb5873cf v0.8.2-canary.2 2020-05-04 22:17:27 +07:00
Brandon Bayer
ac30c9f39b add missing generator dependency to blitz 2020-05-04 22:16:14 +07:00
Brandon Bayer
a5d3f9a493 v0.8.2-canary.1 2020-05-04 22:13:27 +07:00
Brandon Bayer
2461caa685 v0.8.2-canary.0 2020-05-04 22:11:02 +07:00
Rafael Nunes
1d16593dce Initialize git before app generate to properly set up husky hooks (#399)
(patch)
2020-05-04 11:04:31 -04:00
Brandon Bayer
3790e2cf17 increase cli jest timeout
(ignore)
2020-05-04 21:49:01 +07:00
Adam Markon
92c0f85c82 Fix badly broken blitz generate command! (#424)
(patch)
2020-05-04 21:40:42 +07:00
Brandon Bayer
2f2496fa00 Add null-loader for @prisma/client to fix child_process crashes (#423)
(patch)
2020-05-04 21:11:53 +07:00
João Portela
e12d17b6c1 Fix additional lint rules (#366)
(meta)
2020-05-04 20:28:15 +07:00
allcontributors[bot]
0153bd1444 docs: add tmns as a contributor (#422)
(meta)
2020-05-04 20:27:56 +07:00
tmns
230c363409 Add instructions on how to generate a plain JS project (#407)
(patch)
2020-05-04 20:27:43 +07:00
allcontributors[bot]
14a09e1e03 docs: add simonpeterdebbarma as a contributor (#421)
(meta)
2020-05-04 20:21:59 +07:00
Simon Debbarma
229272f772 Contributing.md: Add node-pty troubleshooting for WSL (#419)
(meta)
2020-05-04 20:21:02 +07:00
Oscar Sirvent
f450692e65 Fix postcss purge routes on Tailwind example (#381)
(example)
2020-05-04 17:48:32 +07:00
allcontributors[bot]
d4654c8837 docs: add tmns as a contributor (#418)
(meta)
2020-05-04 17:46:26 +07:00
Adam Markon
85fcebadd5 Remove extraneous console.log (#411)
(meta)
2020-05-04 17:39:50 +07:00
tmns
a7fd429e20 Fix fetchRemote dev script to be sh compatible (#406)
(meta)
2020-05-04 17:39:10 +07:00
Brandon Bayer
e688267f3f Update README.md 2020-05-04 13:05:15 +07:00
Adam Markon
c8043d93d4 refactor(cli): split out generator package (#346)
* create generator package

* readme and update lockfile

* copy code ownership

* post-migration cleanup

* fix template compilation

* fix template build
2020-05-03 22:05:24 +01:00
Dylan Brookes
2c9e8e1318 Make tutorial link more prominent 2020-05-03 20:32:12 +01:00
Justin Hall
386a7fdbe5 fix(server): force forward slashes in absolute imports (#393) 2020-05-03 17:56:38 +10:00
Jaga Santagostino
1b02b5fb39 Improve error message for api routes in wrong folder (#342)
(patch)
2020-05-02 19:43:03 +07:00
Brandon Bayer
ff097bd67b v0.8.1 2020-05-02 09:15:33 +07:00
Da-Jin Chu
5a6f73b140 Fix server tests not running on windows (#347)
(meta)
2020-05-02 09:05:11 +07:00
allcontributors[bot]
aa64c5e467 docs: add 0xflotus as a contributor (#397)
(meta)
2020-05-02 08:59:46 +07:00
Brandon Bayer
74487a37d5 Remove pkg comments that got added back accidentally
(ignore)
2020-05-02 08:58:58 +07:00
0xflotus
50a2bd1db7 Change "Zeit" to "Vercel" (#371)
(patch)
2020-05-02 08:56:59 +07:00
Jose Felix
d1c2d44f94 Fix blitz new on Linux (fromEntries/eslint-plugin error) (#396)
(patch)
2020-05-02 08:53:43 +07:00
Brandon Bayer
26ebf8ce48 v0.8.0 2020-05-01 21:15:03 +07:00
Brandon Bayer
2063a1878f fix double jest script
(ignore)
2020-05-01 21:09:16 +07:00
Brandon Bayer
6911a2c60e v0.8.0-canary.5 2020-05-01 20:58:45 +07:00
Brandon Bayer
a44dea27ac remove --parallel in tests
(ignore)
2020-05-01 20:36:49 +07:00
Brandon Bayer
21f29d23ec add back --parallel and double jest call in cli tests, because still failing on 1st run again 2020-05-01 20:31:29 +07:00
Brandon Bayer
83fbd5827b Add Simon Debbarma (@simonpeterdebbarma) as L1 maintainer (#390)
(meta)
2020-05-01 20:16:56 +07:00
Simon Knott
3b595320aa Fix broken blitz start in canary (#389)
(patch)
2020-05-01 20:09:58 +07:00
Lori Karikari
e10f1253db Add blitz db reset command (#339)
(minor)
2020-05-01 20:07:57 +07:00
Brandon Bayer
b7331375df v0.8.0-canary.4 2020-05-01 16:43:58 +07:00
Brandon Bayer
b249ce04a6 Log any errors that happen during blitz start/build 2020-05-01 16:26:30 +07:00
Brandon Bayer
aa5eb90952 v0.8.0-canary.3 2020-05-01 16:07:49 +07:00
Brandon Bayer
6819da290b Remove next dependency from new app template package.json (#387)
(patch)
2020-05-01 16:01:55 +07:00
Brandon Bayer
fd1cd78a05 Remove unnecessary runtime stream logging (#369) (#386)
(ignore)
2020-05-01 15:55:11 +07:00
Brandon Bayer
2b79c3f3bd Revert "fix publish script"
This reverts commit bec4a65d36.
2020-05-01 15:39:01 +07:00
Brandon Bayer
e9ae33700c v0.8.0-canary.2 2020-05-01 15:30:56 +07:00
Brandon Bayer
bec4a65d36 fix publish script 2020-05-01 15:29:56 +07:00
Brandon Bayer
b7a8667003 v0.8.0-canary.1 2020-05-01 15:20:04 +07:00
Brandon Bayer
e6ddb8603f Fix broken blitz start in 0.8.0-canary.0 by reverting #369 (#384)
(patch)
2020-05-01 15:10:25 +07:00
Brandon Bayer
d72f2839d7 v0.8.0-canary.0 2020-05-01 14:42:41 +07:00
Brandon Bayer
7ec6244884 update publish script 2020-05-01 14:37:28 +07:00
allcontributors[bot]
3892b23dfd docs: add peaonunes as a contributor (#382)
(meta)
2020-05-01 14:26:08 +07:00
Elias Johansson
a6c018b93d Hide all the scary warning messages during blitz new (#302)
(patch)
2020-05-01 14:22:43 +07:00
Simon Knott
32d05e2447 Fix git ignored files being processed when they shouldn't (#365)
(patch)
2020-05-01 13:33:18 +07:00
Simon Knott
b08de105ef Major cleanup to blitz new dependency update + graceful failure (Closes #202, #284)
Co-Authored-By: Adam Markon <amarkon895@gmail.com> (patch)
2020-05-01 13:21:08 +07:00
Justin Hall
b0120d718d style: fix editor integration with ESLint (#373)
(meta)
2020-05-01 12:09:24 +07:00
allcontributors[bot]
f8c0f122b9 docs: add developerfred as a contributor (#380)
(meta)
2020-05-01 12:08:37 +07:00
codingsh
bfd4642955 Change @blitzjs/core to blitz in new app template _document (#379)
(patch)
2020-05-01 12:06:39 +07:00
Simon Knott
2fb9abce86 Fix prettier failure on blitz new with npm (#370)
(patch)
2020-05-01 12:04:53 +07:00
Rudi Yardley
a406c82607 Remove unnecessary runtime stream logging (#369)
(patch)
2020-05-01 11:48:31 +07:00
Brandon Bayer
ae15456576 Update MAINTAINERS.md with Slack info
(meta)
2020-05-01 11:18:33 +07:00
Jose Felix
99b4cd628c Native tailwindcss purgecss integration (#362)
* Native tailwindcss purgecss integration

* Requested changes:

- Add next to dev deps
- Remove comments from index.css
2020-04-30 08:49:07 +01:00
allcontributors[bot]
2552a99e6d docs: add merelinguist as a contributor (#364)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-30 08:42:18 +01:00
Brandon Bayer
a2b94603a0 Add Jaga Santagostino (@kandros) as L1 maintainer (#363)
(meta)
2020-04-30 14:26:48 +07:00
Brandon Bayer
e846560b3b Update MAINTAINERS.md
(ignore)
2020-04-30 14:19:06 +07:00
Brandon Bayer
fb298bb0c0 Update MAINTAINERS.md Fundamentals section
(meta)
2020-04-30 14:12:09 +07:00
Shinobu Hayashi
b417a6da83 Add lint rule 'no-anonymous default export' for new apps (#337)
(minor)
2020-04-30 12:59:43 +07:00
Devan
c3f0609b0d Update some tutorial issues (#359)
(patch)
2020-04-30 12:26:36 +07:00
João Portela
6e1b8d63e4 Enables linting rules for kebabCase and no-default-export (#298)
(meta)
2020-04-30 12:18:33 +07:00
Rudi Yardley
1774d816a8 Update next in examples (#351)
(example)
2020-04-30 11:50:13 +07:00
allcontributors[bot]
c16f8e65f3 docs: add wKovacs64 as a contributor (#358)
(meta)
2020-04-30 11:49:26 +07:00
Brandon Bayer
54b716ef23 Update MAINTAINERS.md (#357)
(meta)
2020-04-30 11:13:07 +07:00
allcontributors[bot]
1e0cd973e0 docs: add fullmetalengineer as a contributor (#356)
(meta)
2020-04-30 10:57:33 +07:00
Alan Long
d1d3c97303 Tutorial: Fix database query syntax in example code (#354)
(patch)
2020-04-30 10:57:12 +07:00
Brandon Bayer
3f428e3cb3 Add Jeremey Liberman (@MrLeebo) as L1 Maintainer (#355)
(meta)
2020-04-30 10:55:47 +07:00
Justin Hall
44c48839e0 docs(tutorial): fix a couple typos and change some copy (#344)
(patch)
2020-04-30 10:45:38 +07:00
Brandon Bayer
79d9619c3d Fix errors in Tutorial.md for the console usage 2020-04-30 10:39:38 +07:00
Karan Kiri
7b0a483c7b Feature/update server nextjs version (#313)
* updated next version

Co-authored-by: karan kiri <karan.kiri@rebelfoods.co>
2020-04-30 11:31:12 +10:00
Jaga Santagostino
a33005e7c5 Fix Typo (#341)
* fix typo ✍

* typos

* capitalize Blitz
2020-04-29 19:24:24 +01:00
allcontributors[bot]
cec8b6130d docs: add Shinyaigeek as a contributor (#340)
(meta)
2020-04-29 19:53:48 +07:00
allcontributors[bot]
9340d8dec9 docs: add jportela as a contributor (#328)
(meta)
2020-04-29 19:51:58 +07:00
allcontributors[bot]
d29e62965f docs: add kandros as a contributor (#329)
(meta)
2020-04-29 19:49:46 +07:00
allcontributors[bot]
9531593463 docs: add dajinchu as a contributor (#327)
(meta)
2020-04-29 19:49:28 +07:00
Jaga Santagostino
6fabfc41ba Update new app instructions in template for SQLite (#320)
(patch)
2020-04-29 19:48:55 +07:00
Brandon Bayer
dd97061ac1 v0.7.1-canary.1 2020-04-29 19:33:55 +07:00
Brandon Bayer
86ace11282 script add force publish 2020-04-29 19:29:34 +07:00
Brandon Bayer
75816d11fd remove parallel tests so they don't have false failure 2020-04-29 19:28:04 +07:00
Brandon Bayer
612c09f9b3 v0.7.1-canary.0 2020-04-29 19:17:40 +07:00
Dylan Brookes
303ce52757 Add beginner tutorial (#336)
* Add beginner tutorial

* Add links to tutorial

* Fix typo

Co-Authored-By: Brandon Bayer <b@bayer.ws>

* Typo

Co-Authored-By: Brandon Bayer <b@bayer.ws>

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-29 09:43:58 +01:00
Brandon Bayer
9e663e1c37 Add cypress E2E test for store example + CI (+ switch store to SQLite) (#335)
Co-Authored-By: Brandon Bayer <b@bayer.ws> (meta)
2020-04-29 14:16:04 +07:00
Jaga Santagostino
268f8bb4c0 Update contributing.md with weekly call info (#321)
Co-Authored-By: Brandon Bayer <b@bayer.ws> (meta)
2020-04-29 12:46:14 +07:00
Adam Markon
01c016ab7b Add plain JavaScript support with blitz new myapp --js (#305)
Co-Authored-By: Brandon Bayer <b@bayer.ws> (minor)
2020-04-29 12:32:32 +07:00
allcontributors[bot]
746eb7508c docs: add kandros as a contributor (#317)
(meta)
2020-04-29 10:50:02 +07:00
Da-Jin Chu
aeed847926 In-memory FS for server tests (#323) 2020-04-29 11:47:42 +10:00
Adam Markon
3bcc1de895 feat(cli): use custom template format instead of EJS (#281) 2020-04-28 12:59:08 -04:00
Jaga Santagostino
6f3ef059af fix link (#312)
using relative link is branch-independant

Co-authored-by: Dylan Brookes <24858006+merelinguist@users.noreply.github.com>
2020-04-28 17:41:46 +01:00
Adam Markon
523ce93402 Revert "Print helpful error if try to use CLI commands outside of blitz app (#203)" (#316)
This reverts commit e8f68a5c19.
2020-04-28 17:14:01 +01:00
Fran Zekan
e8f68a5c19 Print helpful error if try to use CLI commands outside of blitz app (#203)
(patch)
2020-04-28 21:23:25 +07:00
Justin Hall
d5aa2b77e8 test(server): normalize CWD in relative paths synchronizer rule test (#300)
(meta)
2020-04-28 21:12:56 +07:00
Brandon Bayer
a36d943e05 fix code owners 2020-04-28 21:11:30 +07:00
Brandon Bayer
7459f691ae Add Corey Brown (@coreybrown89) as L1 maintainer (#315)
(meta)
2020-04-28 21:05:35 +07:00
Brandon Bayer
08e351dcc1 Add Lori Karikari (@LoriKarikari) as L1 maintainer (#311)
(meta)
2020-04-28 20:33:45 +07:00
Brandon Bayer
ae3c530d8f Add Elias Johansson (@eliasjohansson) as L1 maintainer (#310)
(meta)
2020-04-28 19:54:05 +07:00
Jaga Santagostino
79f1d23604 Move typescript to devDependencies in new app template (#293)
(patch)
2020-04-28 19:23:45 +07:00
allcontributors[bot]
07a97ba992 docs: add kandros as a contributor (#297)
(meta)
2020-04-28 19:23:06 +07:00
Brandon Bayer
4eb17f088a Add Simon Knott (@skn0tt) as level 1 maintainer (#308)
(meta)
2020-04-28 19:01:31 +07:00
Brandon Bayer
07312c1162 Announcing Official Core Team and Maintainers + Maintainers.md and Governance.md (#307)
(meta)
2020-04-28 18:37:14 +07:00
Brandon Bayer
f519f159cf Update CONTRIBUTING.md 2020-04-28 12:34:55 +07:00
Brandon Bayer
badd5adaf0 final change to release I think 2020-04-27 21:22:18 +07:00
Brandon Bayer
15f30d394c more work on release script 2020-04-27 21:13:17 +07:00
Brandon Bayer
c2b85a747e more work on release.js 2020-04-27 20:36:43 +07:00
Brandon Bayer
cb028a6e3e add release note script 2020-04-27 19:18:27 +07:00
Brandon Bayer
192f79e064 v0.7.0 2020-04-27 19:13:51 +07:00
Brandon Bayer
a8d152ba87 Fix some HMR bugs by upgrading next to 9.3.6-canary.13 (#291)
(patch)
2020-04-27 19:06:19 +07:00
Brandon Bayer
875f99a20c update links on homepage of store example
(example)
2020-04-27 18:51:54 +07:00
allcontributors[bot]
c73bdc7487 docs: add eliasjohansson as a contributor (#290) 2020-04-27 18:44:50 +07:00
Elias Johansson
040deeed32 Add useQuery pagination & add pagination to store example (#278)
(minor)
2020-04-27 18:44:00 +07:00
allcontributors[bot]
9c670ef77d docs: add LoriKarikari as a contributor (#288)
(meta)
2020-04-27 17:23:42 +07:00
Lori Karikari
7db98c3636 changed btliz to blitz in fork script (#285)
(ignore)
2020-04-27 17:22:45 +07:00
allcontributors[bot]
08195b04e6 docs: add kandros as a contributor (#287)
(ignore)
2020-04-27 17:05:18 +07:00
Brandon Bayer
cdf8cc4a9f Fix types for second argument of useQuery and ssrQuery (#286)
(patch)
2020-04-27 17:04:14 +07:00
Brandon Bayer
0c3b8dd17a Update PULL_REQUEST_TEMPLATE.md 2020-04-27 17:03:30 +07:00
Brandon Bayer
fd624213b3 chore: remove double jest usage - tests now fixed 2020-04-27 13:07:18 +07:00
allcontributors[bot]
9d91117b97 docs: add skn0tt as a contributor (#273)
(ignore)
2020-04-27 12:39:57 +07:00
Brandon Bayer
8cd670296e Change default DB to SQLite instead of postgres (#283)
(patch)
2020-04-27 12:39:02 +07:00
Jaga Santagostino
14df845e16 Add start script to new app template package.json (#270)
(patch)
2020-04-27 12:38:38 +07:00
Brandon Bayer
7b6b024388 v0.6.6 2020-04-26 19:27:56 +07:00
Rudi Yardley
d736ea11f3 Fix relative imports (#271)
(patch)
2020-04-26 19:27:01 +07:00
Brandon Bayer
9a67da5993 v0.6.5 2020-04-26 14:36:54 +07:00
Brandon Bayer
ba981694ad Fix HMR, Enable Fast Refresh, Upgrade next to 9.3.6-canary.11 (#268) 2020-04-26 14:31:12 +07:00
Rudi Yardley
1eebdb54c6 Fix UnhandledPromiseRejectionWarning error during blitz start (#266)
(patch)
2020-04-26 14:14:19 +07:00
Brandon Bayer
fe1f4b0785 Clean and upgrade dependencies (#267)
(ignore)
2020-04-26 14:10:01 +07:00
Justin Hall
63921f3e23 refactor(cli): rename generator template files for compatibility (#249)
Co-authored-by: Brandon Bayer <b@bayer.ws> (ignore)
2020-04-26 12:29:05 +07:00
allcontributors[bot]
69b02ffb54 docs: add Zeko369 as a contributor (#265)
(ignore)
2020-04-26 12:23:39 +07:00
Fran Zekan
86eec51d24 Update Contributing.md and add script for syncing fork (#248)
(ignore)
2020-04-26 12:23:21 +07:00
Brandon Bayer
d59c0a4fd3 Add Tailwind CSS example app (#264) 2020-04-26 12:04:59 +07:00
Brandon Bayer
852e32a484 Revert "Add Tailwind CSS example app"
This reverts commit 052300f09d.
2020-04-26 11:57:11 +07:00
Brandon Bayer
052300f09d Add Tailwind CSS example app 2020-04-26 11:55:13 +07:00
Brandon Bayer
d2f94ff0cb update issue templates
(ignore)
2020-04-26 11:05:02 +07:00
Brandon Bayer
262a228cd9 update feature issue template 2020-04-26 10:55:49 +07:00
Brandon Bayer
9bf36b0421 update PR template 2020-04-26 10:50:40 +07:00
Brandon Bayer
73d2251168 update issue_template 2020-04-26 10:43:49 +07:00
Brandon Bayer
2d52ceec7f v0.6.4 2020-04-26 10:35:53 +07:00
Brandon Bayer
c8527d93f9 remove the slow warning message 2020-04-26 10:31:51 +07:00
Brandon Bayer
5a69c49976 change new app template Prisma model to be the same as the user guide 2020-04-26 10:31:51 +07:00
allcontributors[bot]
49044611eb docs: add ntgussoni as a contributor (#258)
(ignore)
2020-04-26 10:31:21 +07:00
allcontributors[bot]
2997fcc17d docs: add jclancy93 as a contributor (#256)
(ignore)
2020-04-26 08:54:03 +07:00
Jack Clancy
6f1900c5e6 Make blitz h print the help menu (#252)
(patch)
2020-04-26 08:53:43 +07:00
allcontributors[bot]
a342d62cb5 docs: add DevanB as a contributor (#255)
(ignore)
2020-04-26 08:41:51 +07:00
Devan
5c89d7feb9 Correct Prisma schema name in USER_GUIDE.md (#250)
(ignore)
2020-04-26 08:41:31 +07:00
Jim Cummins
92cf7b599f Fix super slow CLI startup when used in a folder with many files (#254)
(patch)
2020-04-26 08:38:27 +07:00
Brandon Bayer
47d16202c3 Update README.md 2020-04-26 01:15:37 +07:00
allcontributors[bot]
5fb24faa1a docs: add mikeattara as a contributor (#247) 2020-04-25 22:32:30 +07:00
Mike Perry Y Attara
815b351f4a fix typo (#244)
(ignore)
2020-04-25 22:32:02 +07:00
Brandon Bayer
b7528b2058 v0.6.3 2020-04-25 14:07:35 +07:00
Brandon Bayer
6af0eb7ea5 Fix Linux & Remove top level await support in console, temporarily (#231)
(patch)
2020-04-25 14:06:39 +07:00
Brandon Bayer
dcc9c4ddc9 Change email field to be optional in new app template schema 2020-04-25 09:01:00 +07:00
allcontributors[bot]
e7982a1132 docs: add janbaykara as a contributor (#222)
(ignore)
2020-04-24 22:13:15 +07:00
Jan Baykara
64eccf8bb4 Fix reference to id in README (#221)
(ignore)
2020-04-24 22:12:41 +07:00
Brandon Bayer
caad5b44f1 v0.6.2 2020-04-24 22:07:23 +07:00
Brandon Bayer
4b4d65cb7e v0.6.2-canary.0 2020-04-24 21:43:28 +07:00
Brandon Bayer
55fdaa0530 attempt fix for cli package detection 2020-04-24 21:41:14 +07:00
Brandon Bayer
fb3893a8d4 update blitz pkg description 2020-04-24 21:29:29 +07:00
Brandon Bayer
ca5d6ee0aa v0.6.1 2020-04-24 19:18:09 +07:00
Brandon Bayer
f17820f81d Add needed blitz db migrate command to the blitz new template app page 2020-04-24 19:17:19 +07:00
Brandon Bayer
ab6f60571a v0.6.0 2020-04-24 18:25:15 +07:00
Brandon Bayer
5f3d5dd7a3 change pkg script 2020-04-24 18:24:37 +07:00
Brandon Bayer
8b8143d2c2 v0.6.0-alpha 2020-04-24 18:15:41 +07:00
Brandon Bayer
8b6a51f8f1 Update readme for pending alpha release (#219)
* Update readme for pending alpha release

* Fix some language stuff 😄
(ignore)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
2020-04-24 18:14:30 +07:00
Brandon Bayer
0c23a7873c v0.6.0-canary.4 2020-04-24 17:50:00 +07:00
Brandon Bayer
0fa28d20c4 Remove oops debug log from blitz generator 2020-04-24 17:47:35 +07:00
Brandon Bayer
97132996b8 Add more useful instructions to the blitz new index page (#217)
* add more useful instructions to the `blitz new` index page

* fix (patch)
2020-04-24 17:41:27 +07:00
Brandon Bayer
96ac63d3a4 Update USER_GUIDE.md 2020-04-24 17:11:59 +07:00
Brandon Bayer
132601f0c2 Update USER_GUIDE.md 2020-04-24 16:59:46 +07:00
Brandon Bayer
c47d15a09f v0.6.0-canary.3 2020-04-24 16:38:59 +07:00
Brandon Bayer
0892137370 🎉 Add full working CRUD actions to pages generator! + fix RPC b… (#214)
minor
2020-04-24 16:36:56 +07:00
Brandon Bayer
797060c068 v0.6.0-canary.2 2020-04-24 15:32:28 +07:00
Adam Markon
1c7134c272 feat(cli): generate command (#187)
* initial scaffolding for generate command and validation in place

* page generator

* mutation generator

* add query and crud generator

* move to server logger

* update docs with most recent API changes

* undo logging changes in new command

* rename a few things, clean up early returns

* use path context relative to the root

* lots of cleanup, changes, fixes

* fix test

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-24 15:28:40 +07:00
Rudi Yardley
2638ec73b3 Speed up blitz start/build by parallelizing prisma generation (#212)
* Parallelize Prisma generation

* Provide resolving promise to fix failing tests (patch)
2020-04-24 15:15:17 +07:00
Brandon Bayer
3c4db0453e v0.6.0-canary.1 2020-04-24 13:59:45 +07:00
Brandon Bayer
d824459190 Add alpha msg to CLI and add OS version with blitz -v (#211)
(patch)
2020-04-24 13:22:58 +07:00
Brandon Bayer
5da2eae6e1 Fix some type issues
(patch)
2020-04-24 13:02:41 +07:00
Brandon Bayer
73f6be0814 Disable jsx-a11y/anchor-is-valid because it doesn't plan will with Blitz/Next links
(patch)
2020-04-24 13:02:02 +07:00
Dylan Brookes
2dfa86556d Beautify query/mutation logging and Refactor logger (#199)
* Refactor logger and beautify rpc logging

* Resolve conflicts and make requested changes

* move rpcHandler into server package where it belongs

* improve logging even more

* fix dependency issue
(patch)
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-24 12:36:10 +07:00
Fran Zekan
7097150c2d Fix possible race condition during blitz new (#198)
* Refactor dependecy upgrader to mitigate the race condition

* Refactor reduce -> for loop
(patch)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-24 11:18:06 +07:00
Rudi Yardley
84a8ac7512 Maybe fix one issue on windows by removing node-pty (#210)
* Remove node-pty

* Use next instead of process.stdout
(patch)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-24 11:13:09 +07:00
Brandon Bayer
ef48721625 set up release notes (ignore) 2020-04-24 11:07:03 +07:00
Brandon Bayer
a54b48190c Update issue templates 2020-04-24 10:53:48 +07:00
Justin Hall
ff5cab07fc refactor(server): simplify resolveBinAsync (#208)
(patch)
2020-04-24 10:45:17 +07:00
Justin Hall
02ccc7db0e fix(cli): populate new apps with latest version of deps in range (#206) 2020-04-24 00:04:09 +07:00
Brandon Bayer
9de79ba621 v0.6.0-canary.0 2020-04-23 22:26:42 +07:00
allcontributors[bot]
dfac941a80 docs: add Zeko369 as a contributor (#201)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
(ignore)
2020-04-23 22:14:10 +07:00
Brandon Bayer
f3f17a2452 Add spinner to blitz new and blitz start/build (#200)
(patch)
2020-04-23 22:10:10 +07:00
Brandon Bayer
aa6d0e0dc0 update console in user guide 2020-04-23 21:16:21 +07:00
Dylan Brookes
4b0b1b8c66 Change blitz new install to cli version (#195)
* Change blitz new install to cli version

* Update replace-blitz-dependency.ts

* Simplify

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
2020-04-23 20:44:53 +07:00
Brandon Bayer
7e72dd3ccd Merge branch 'master' into canary 2020-04-23 15:29:05 +07:00
Brandon Bayer
0aa16e25ae update publish script 2020-04-23 15:10:20 +07:00
Brandon Bayer
9e5d58ddbd v0.5.2-alpha 2020-04-23 15:06:17 +07:00
Brandon Bayer
edd673f54c publish script change 2020-04-23 15:04:45 +07:00
Brandon Bayer
6cccbe3487 publish script 2020-04-23 15:03:33 +07:00
Brandon Bayer
92069cfef8 v0.5.0-canary.10 2020-04-23 14:56:30 +07:00
Brandon Bayer
b16424592f run reset on publish 2020-04-23 14:56:08 +07:00
Brandon Bayer
92c4a4bfc8 auto rerun CLI test if fails first time & some dx scripts 2020-04-23 14:54:12 +07:00
Brandon Bayer
ffd87a80af v0.5.0-canary.9 2020-04-23 14:40:52 +07:00
Brandon Bayer
9c54cfaef1 v0.5.0-canary.8 2020-04-23 14:37:44 +07:00
Brandon Bayer
fd2e9d2988 fix blitz console again... 2020-04-23 14:33:58 +07:00
Brandon Bayer
3cc4476a98 v0.5.0-canary.7 2020-04-23 13:03:01 +07:00
Brandon Bayer
1a45b2d394 Fix CLI on windows (#192) 2020-04-23 13:00:26 +07:00
Beata Obrok
bac7f21295 fix(cli): console crashing when importing ts files (#185)
* fix(cli): console crashing when importing ts files

* fixes

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-23 10:17:17 +07:00
Brandon Bayer
9755466f9b Update bug_report.md 2020-04-23 09:43:56 +07:00
Justin Hall
3a85e83b56 fix(server): make synchronizer pages rule cross-platform (#186)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-23 09:37:30 +07:00
Justin Hall
4e49239f53 test(server): make dev tests cross-platform (#184) 2020-04-23 09:30:55 +07:00
Camilo Gonzalez
f0a56ff2fe refactor: replaceDependencies to run in parallel (#183) 2020-04-22 22:54:08 +07:00
Brandon Bayer
2a71e3441d fix tsconfig-paths being registered for all commands 2020-04-22 22:16:36 +07:00
Brandon Bayer
63cacbb73c tweak readme 2020-04-22 22:03:16 +07:00
Brandon Bayer
219d12aaa2 update issue templates 2020-04-22 21:57:58 +07:00
Brandon Bayer
b1321c77e1 v0.5.0-canary.6 2020-04-22 21:04:43 +07:00
Brandon Bayer
f7685b4abb fix typo 2020-04-22 21:03:43 +07:00
Brandon Bayer
cf215b4a12 Update USER_GUIDE.md 2020-04-22 20:52:00 +07:00
Rudi Yardley
32f0a76b18 Refactor synchronizer (#146)
* Refactor Synchronizer

* Add api routes functionality

* Add functions to test files

* Update docs

* Added view rendering and error section

* Move devdeps to root

* Add VERCEL_BUILDER env var check

* Update file writer reporter to clear the line and wait less for the ready event

* Alter types

* Update docs add image files

* Update README.md

* Update README.md

* Add params to log docs

* Update README.md

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
2020-04-22 21:08:15 +10:00
Brandon Bayer
e9e8841f07 Implement the blitz console command (#176)
* wip

* working

* add default blitz files to store example

* finish up

* fix tests
2020-04-22 17:43:14 +07:00
Dylan Brookes
d6b29a2f71 Use latest versions for app template (#170)
* Use latest versions for app template

* Make dependency swapping more robust

* Make it faster

* Only upgrade as far as the current major version

* Use dep replace for devDependencies as well

* pretty print json and add .npmrc

* Clean up fetching

* Fail on a case-by-case basis

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-22 15:15:57 +07:00
Brandon Bayer
af338d99e4 Fix yarn test by also running the build (#174) 2020-04-21 21:36:54 +07:00
allcontributors[bot]
bd63e4cab0 docs: add sonnypgs as a contributor (#172)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-21 19:46:18 +07:00
Brandon Bayer
e387936cb0 Update README.md 2020-04-21 19:42:07 +07:00
Dylan Brookes
0650252c53 Print help message for unsupported commands (#153)
* Print help message for unsupported commands

* Fix not found hook

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
2020-04-21 15:22:04 +07:00
Brandon Bayer
76cfb8c076 Fix store example static pages (#168)
* fix revalidate for latest Next version

* also single product page
2020-04-21 14:34:03 +07:00
Brandon Bayer
6273ffd255 fix PR template 2020-04-21 14:32:07 +07:00
Brandon Bayer
6e447f1f44 fix blitz -v when globally linked but using it outside monorepo 2020-04-21 14:12:12 +07:00
Corey Brown
4c4721250a Branded Welcome Template (#158)
* adds blitz branding to welcome template screen

* add dynamic name tag back in

* updates and new logo

* adds dynamic title

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-21 13:54:47 +07:00
Brandon Bayer
6852cfc208 Update issue templates 2020-04-21 13:47:09 +07:00
Brandon Bayer
da488ccf33 update issue template feature_request 2020-04-21 13:14:28 +07:00
Brandon Bayer
36d0ae8587 update PR template 2020-04-21 13:11:07 +07:00
Brandon Bayer
8bcaf62641 Update issue templates 2020-04-21 13:10:55 +07:00
Brandon Bayer
820d191a63 Upgrade and organize dependencies (#165)
* monorepo dependency maintenance

* update dependencies
2020-04-21 13:08:15 +07:00
Brandon Bayer
45842d48ad Add issue templates 2020-04-21 13:02:25 +07:00
Brandon Bayer
67ed16429d fix eslint react warning 2020-04-21 11:22:44 +07:00
allcontributors[bot]
45cb96f9f1 docs: add hew as a contributor (#164)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-21 10:50:33 +07:00
Matt
9063758292 Fix: typo in install instructions (#156) 2020-04-21 10:49:48 +07:00
allcontributors[bot]
2a892ba4d0 docs: add mattleff as a contributor (#163)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-21 10:48:54 +07:00
Matthew Leffler
73b3920a53 Fix typo (#155) 2020-04-21 10:48:36 +07:00
Brandon Bayer
fae90065df add logging util to PULL_REQUEST_TEMPLATE 2020-04-21 10:42:24 +07:00
allcontributors[bot]
fc762c15fc docs: add ETLopes as a contributor (#162)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-21 10:42:01 +07:00
Eduardo Lopes
cc10b71f9d chore(prtemplate): create a PR Template for the project. (#4)
* feat(prtemplate): create a PR Template for the project.

* Update PULL_REQUEST_TEMPLATE.md

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-21 10:39:43 +07:00
Brandon Bayer
998d227832 fix all_contributors 2020-04-21 10:39:04 +07:00
Dylan Brookes
35c150a46a Add logging util (#154)
* Add a logging util file and use for synchronizer

* Delete stray file

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
2020-04-21 10:27:32 +07:00
Brandon Bayer
920716a0d8 move README back to root so github mobile readme view works correctly 2020-04-21 10:11:27 +07:00
Brandon Bayer
39675d1da8 Update USER_GUIDE.md 2020-04-21 10:00:28 +07:00
Brandon Bayer
dd20c0ac6c fix readme 2020-04-20 21:28:38 +07:00
Brandon Bayer
2ea1e7b522 restore buried readme updates 2020-04-20 21:27:02 +07:00
Brandon Bayer
44c3ea22e2 Update README.md 2020-04-20 21:25:42 +07:00
Brandon Bayer
f4760776ee Update readme with benefits and features 2020-04-20 21:25:33 +07:00
Brandon Bayer
65bb7e8e84 add publish-alpha script 2020-04-20 21:23:11 +07:00
Brandon Bayer
8547585cc7 v0.5.1-alpha 2020-04-20 21:20:04 +07:00
Brandon Bayer
16b810e0c3 Merge to master (#152)
* docs: add code of conduct

* Update README.md

* remove broken gh action

* chore: update readme

* Add initial Blitz Core and First Demo 🎉 (#11)

* wip

* chore: fix typings, tweak build config

* update prettier config

* set up husky to run prettier on commit

* add migrate script and update readme

* changes, still broken

* add yarn dev command

* more changes, still broken

* demo working again!

* fix: yarn why do you hate me so much?

* add to gitignore

* trying to get demo dev to work right

* refactor and cleanup

* more cleanup

* update deps

* tweak

* update readme

* fix

* update readme

Co-authored-by: Michael Edelman  <michael@edel.mn>

* Live Demo Deployment (#12)

* add github link to demo

* fix(core): connect to db right away + fix for connection undefined

* changes to demo needed for production deployment

* fix(demo): relax tsconfig

* upgrade prisma & fix core for deployment

* demo updates

* chore(demo): add some comments

* fix(demo): untitled posts

* fix(demo): add content filtering!

* Add Open Collective Sponsor button (#15)

* fix(demo): switch to fruit content filter

* chore: add flybayer as codeowner of everything

* chore: Add Patreon and Paypal to the sponsor button options (#18)

* chore: add sponsor section to readme

* feat(cli): Add initial CLI (#8)

* v0.0.1

Initial PR for oclif CLI

* update prettier config

* chore: repo updates - run prettier on commit

* organize package.json + correct package name

* Add initial app generator

* changes & cleanup

* more tweaks

* Add basic nextjs generation

* #9 Swapping Mocha with Jest for CLI

Swapped Mocha with Jest.

* Swapping Mocha with Jest for CLI

Swapped Mocha with Jest.

* add `yarn b [COMMAND]` for dev convenience

* Formalize path arg

* Make jest work

* Remove empty commands and make tests pass

* Fix path argument

* Revert "target" in tsconfig.json

* Remove `target` from cli package.json

* Fix build command

* Use custom tsconfig for test script

* remove nyc because jest has coverage built in

* little cleanup

Co-authored-by: Mina Abadir <mina@abadir.email>
Co-authored-by: Lorenzo Rapetti <lorenzo.rapetti.94@gmail.com>

* chore(core): Add core tests (#16)

* Add core tests

- Tests cover Form and Controller
- You can check code coverage with "yarn test --coverage"

* A little formatting + form test modifications

* add back console log

Co-authored-by: Yanick Bélanger <yanick.belanger@yahoo.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>

* fix: noop @prisma/client in browser, closes #13 (#19)

Co-authored-by: Brandon Bayer <b@bayer.ws>

* feat(core): Add withBlitz webpack wrapper + fix prisma/client (#31)

* add withBlitz webpack config wrapper

* Move prisma/client noop into withBlitz!

* chore: add pull_request event to github action

* docs: Update CODE_OF_CONDUCT.md (#28)

* feat(cli): Add `blitz console` command (#32)

Co-authored-by: Brandon Bayer <b@bayer.ws>

* feat(cli): Add `blitz test` command (#30)

* add run tests command

* add test command

* add test cmd unit test

* uses project package manager (npm/yarn) to run test script

Co-authored-by: Brandon Bayer <b@bayer.ws>

closes #22

* docs: add dev onboarding blurb to readme

* docs: fix typo

* chore: comment cleanup

* bug(example): Fix Invalid hook call error. (#37)

* fix: Fix jest version incompatability (#43)

* bug(webpack): Create webpack package to avoid context bugs (#42)

* Add new webpack package

* Delete webpack files from core

* Pin dependencies

* feat(cli): use custom REPL in console command (#38)

Co-authored-by: Brandon Bayer <b@bayer.ws>

* feat(core): Return 404 if controller action is not defined (#39)

Co-authored-by: Brandon Bayer <b@bayer.ws>

* fix(core): Add support for multiple attribute types for id (#35)

* Add support for multiple attribute types for id

* Add comment + tests

* test(examples): add cypress tests to first demo (#47)

* [examples] feat: setup cypress in first demo

* [examples] spec: add cypress tests for first demo

closes #44

* feat(cli): Compile to Next (#45)

* Only create a prisma client when it actually needed

* Setup start script for a simple next-project

* Enable "compile to next" on first-demo

* Whitespace

* Fix failing webpack config test

* Testing spawn call

* Neaten up code

* Test tsExtraMock instead of reporter

* Test file deletion

* Better file locations

* Dont need persistent anymore

* Development, Production, Build, Deploy

* Add ts-ignore so we dont get compiler errors

* Remove test on command with flags

* Tidy up typescript config and add test

* Add comment around type issues

* Remove author field

* Tidy up config changs

* quiet core tests

* move es6 from root tsconfig to cli tsconfig

* Rename start -> scripts and tidy up descriptions

* Test build script

* Fix up test description

* Fix bug in build script

Closes #21, #36

Co-authored-by: Brandon Bayer <b@bayer.ws>

* fix(cli): Fix bug in build script (#49)

* Unlink doesnt work on folders

* Mock remove

* feat(cli): Add `blitz test watch` command #23 (#50)

* Add test watch

* Add test:watch

closes #23

Co-authored-by: Brandon Bayer <b@bayer.ws>

* tweak funding

* feat(cli): Add `blitz db` command #24 (#51)

* Add db command

* fixed test

closes #24

Co-authored-by: Brandon Bayer <b@bayer.ws>

* docs: Add the Blitz Manifesto! (#52)

* refactor(server): create server package (#57)

* @blitzjs/webpack -> @blitzjs/server

* Move server code out of cli

* Fix up type and lerna issues

* Prebuild non-cli before test

* Remove noise in PR

* fix: running tests locally after packages have been built

* chore: tweak github actions to remove duplicate builds

* feat: Upgrade next to latest release v9.3.0, closes #60 (#65)

Co-authored-by: Brandon Bayer <b@bayer.ws>

* feat(server): Errors respect file path redirection (#66)

* Expose next-executable

* Redirecting errors correctly with mocked rules

* Add comments about what is waiting

* Remove prepare as it was causing errors when installing dependencies

* Mock outer function instead of call to spawn

* Try using import *

* Remove CI switch as that was not the problem

Co-authored-by: Brandon Bayer <b@bayer.ws>

* docs: add manifesto to readme

* docs: update readme

* chore: add github sponsor link

* feat(server): Transform rules and synchronisation manifest (#69)

* Extract config

* Use gulp pipes to apply tranforms and write manifest.

* Add linting comments to allow import reordering

* Fix manifest bug

* Refactor to pipeline and fix testing method

* Include clean

* Fix up dependencies and tidy up code

* Fix newline issue

* Fix dependencies again

* Fix up testing strategy for file manipulations

* Renaming file because of inconsistency pt1

* Renaming file because of inconsistency pt2

* Update CLI test

* Debug CI build failures not occuring locally

* Include catch for missing unlink

* bug(server): CI pathname errors for readable-stream (#71)

* Try setting normalise to false on tree testing

* Remove debugging log

* feat(cli): load dependencies in blitz console (#68)

* [cli] feat: autoload package dependencies in console

* feat: load Prisma Client into console context

* [cli] spec: fix spec for console command

Co-authored-by: Brandon Bayer <b@bayer.ws>

* Update MANIFESTO.md

* add initial file structure rfc

* Revert "add initial file structure rfc"

This reverts commit f48a776e99.

* Update README.md

* doc: Add All Contributors Spec, Add CONTRIBUTING.md, Update Readme (#77)

* Added financial contributors to the README

* Add @flybayer as a contributor

* Add @medelman17 as a contributor

* Add @ryardley as a contributor

* Add @toddgeist as a contributor

* Add @quirk0o as a contributor

* Add @tsawan as a contributor

* Add @camilo86 as a contributor

* Add @dkempner as a contributor

* Add @gielcobben as a contributor

* Add @MrLeebo as a contributor

* Add @jimthedev as a contributor

* update readme & add CONTRIBUTING.md

* add Kristina

* Add @robdrosenberg as a contributor

* Add @jasonblalock as a contributor

* Add @coreybrown89 as a contributor

* Add @aej11a as a contributor

* update badegs

* tweak

* tweak

* more

Co-authored-by: Jess <jessachandler@gmail.com>

* docs: add lorenzorapetti as a contributor (#80)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* docs: add aem as a contributor (#79)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>

* docs: add rishabhpoddar as a contributor (#78)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>

* docs: add marcoseoane as a contributor (#81)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>

* fix readme

* refactor(cli): CLI refactoring (#25)

* Add base generator class

* change from mem-fs to fs.mkdirSync due to undefined error

* Add base command class

* Add conflict checker

* Add dry run to generator

* Add install via npm or yarn

* Add --no-yarn

* remove unused nyc dependency

Co-authored-by: marcoseoane <marcorseoane@outlook.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>

* chore: fix rishabhpoddar readme link

* Add @merelinguist as a contributor

* chore: tweak readme

* chore: update readme

* Fix dangling chokidar watch and add temporary logging.  (#82)

* Add logging

* Add better commit message

* Ensure will only run if jest is running

* Add manifest to output log

* Update message

* Use specific ignore in build folder

* Add dot ahead of ignored patterns

* Close Watcher

* Remove stray reference

* Neaten up

* chore: add rudi as code owner of packages/server

* chore(deps): bump acorn from 5.7.3 to 5.7.4 (#83)

Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: Rudi Yardley <contact@rudiyardley.com>

* docs: Fix website link (#86)

* Fix website link

* regenerate readme

Co-authored-by: Brandon Bayer <b@bayer.ws>

* docs: update readme

* chore: remove all prototype code in prep for new architecture code (#90)

* remove all prototype code and clean up deps

* fixes

* Fix launchEditor bug (#92)

* fix(server): Fix ignorePath (#94)

* Fix up globs

* Revert move as it doesnt really matter because of ignorePaths

* chore: upgrade dependencies (#96)

* feat: Implement the new Architecture! (#95)

* wip

* working rpc mutation

* queries and mutations working!!

* prewarm the lamba

* update withBlitz config wrapper - remove stuff no longer needed

* switch from `pages` to `routes`

* fix a test issue

* fix cli test

* Add file addition and subtraction to transform stream

* Remove comments

* Allow pages and routes

* Allow routes folder without context

* Tidy up build rules

* Fix broken transform test

* Use done callback to ensure all events have passed in stream test

* Fix next build breaking

* File generation RPC works

* Remove commented out code

* Ensure correct jest version so tests run and tidy up

* Fix up linting

* Tidy up synchroniser

* Ensure watcher close is run when watchmode is false

* typo

* update cli readme

* Fix start error

* Downgrade ts-jest to remove warning

* fix build with static pages

* rerun prettier on all files

* yarn workspace: nohoist husky and prisma

* add missing dependency

Co-authored-by: Rudi Yardley <contact@rudiyardley.com>

* chore: change version to 0.0.0

* chore: update lerna config

* v0.0.1-canary.0

* chore: remove version from examples

* v0.0.1-canary.1

* chore: update githead

* fix(examples): Fix Yarn link blitz cli failing (#105)

* Add version to example

* Try using generic versions

* fix(cli): spawn Windows .cmd entrypoints on win32 platform (#109)

Co-authored-by: Brandon Bayer <b@bayer.ws>

* docs: add wKovacs64 as a contributor (#111)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* feat(server): Warning about invalid routes/api structure (#106)

* First pass at warning about duplicate routes

* Move dupe checker to its own function

* Fix some accidental changes

* Revert yarn.lock(?)

* Route > page

* Use pages for store example

* Warn about nested api routes

* Check for duplicate api routes

* Warn api dupe routes

* Remove stray process.exit

* Merge api and pages dupe checkers

* Delete old checkers

* Remove stray line

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>

* docs: add merelinguist as a contributor (#112)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* feat: use `db` folder instead of `prisma` (#114)

* feat: use `db` folder instead of `prisma`

* fix tests

* feat(cli): don't bundle cli (and remove pkg) (#115)

* feat(cli): don't bundle cli with pkg or anything. npm package now working

* fix tests

* chore: update lerna script

* v0.0.1-0.0.1-canary.4.0

* v0.0.2-alpha.0

* chore: update example dependency versions

* fix: build from dependency issues

* chore(examples): Make store work in prod (switch to Postgres) (#117)

* wip

* fix(example): changes for deploying store to Zeit. Switch to postgres

* feat: enable concurrent mode for Blitz apps (#118)

* v0.0.2-canary.0

* build(cli): fix @blitzjs/cli build script on Windows (#120)

* chore: fix all contributors badge generation

* docs: add alpha release note to readme

* docs: readme typo

* Change blitz new template to be a working blitz app (#123)

* change blitz new template to be a working blitz app

* fix tests

* Add the `blitz` package (#125)

* Revert "Add the `blitz` package (#125)"

This reverts commit 9e1ce7dda0.

* fix(cli): leverage cross-spawn for cross-platform compatibility (#122)

* fix(cli): leverage cross-spawn for cross-platform compatibility

* refactor(server): use cross-spawn in next-utils for consistency

* feat(server): `blitz.config.js` config support without `withBlit… (#130)

* Allow blitz config

* Add error message

* Update tests

* Support only blitz.config.js

* Remove blitz.config.js

Co-authored-by: Brandon Bayer <b@bayer.ws>

* give the README a fresh coat of paint!

* Update .all-contributorsrc

* Update README.md

* Update README.md

* automatically read .env for blitz cli commands (#133)

(minor)

* Add `blitz db studio` and `blitz db introspect` (#134)

(minor)

* Implement ssrQuery (#136)

* add medelman17 for code

* Update new app template: favicon, blitz.config.js, .env, fixes (#137)

* Rexport Next stuff from Blitz (#138)

* Update CONTRIBUTING.md

* feat(cli): add help for db commands (#139)

* docs: add sijad as a contributor (#141)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* v0.0.2-canary.1

* tweak readme

* Fix server for deployment to Zeit (#143)

* fix production, but tests still failing

* Fix missing await and avoid changing source folder

Co-authored-by: Rudi Yardley <contact@rudiyardley.com>

* Fix ugly blitz start --production error (#144)

* Automatically run `blitz db migrate` on every `blitz start` (#147)

* Automatically run `blitz db migrate` on every `blitz start`

* Fix test

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>

* Update readme with benefits and features

* Update README.md

* Update MANIFESTO.md

* Add the `blitz` package and proper global/local CLI handling (#128)

* add the `blitz` package (but yarn blitz start not working)

* wip

* working

* updates

* cleanup

* adjustment

* chore: make 'blitz' work (#129)

* chore: make 'blitz' work

* fix: make example work in dev mode with blitz mono-package

* test: skip failing test re patched version of next

* fix: issues re bundling & store example

* fix blitz building in development and some other cleanup

* fixes for CLI usage from blitz

* more changes. blitz build still broken from child_process thing

* remove .yarnrc

* few DX fixes

* fix bug in store example

* fix the build and CLI!

* code comments

* delete vanilla-next

* fix tests

* fix tests

* fix CI tests

* remove server export from `blitz` since end-users don't use it

* move README into the Blitz package

* add link-cli script

* change prisma resolve to use resolveBinAsync

Co-authored-by: Michael Edelman <michael@fabulas.io>

* add register to server package

* add publish script

* v0.5.0-canary.0

* v0.5.0-canary.1

* Many updates to blitz new template, including prettier, eslint,… (#150)

* update template app

* fix `blitz -v`

* v0.5.0-canary.2

* fix cli template files in npm package

* tweak link-cli scripts

* v0.5.0-canary.3

* Back out the auto db migrate, and instead only auto generate pri… (#151)

* change to only generate prisma client on blitz start

* add comment

* v0.5.0-canary.4

* move test mocks to top of file

* v0.5.0-canary.5

* Add the Alpha User Guide (#131)

* Create USER_GUIDE.md

* Update USER_GUIDE.md

* Update USER_GUIDE.md

* Update USER_GUIDE.md

* Update USER_GUIDE.md

* add custom header image

* Update USER_GUIDE.md

* add cli commands

* add blitz db introspect

* Update USER_GUIDE.md

Co-authored-by: Michael Edelman  <michael@edel.mn>
Co-authored-by: Mina Abadir <mina@abadir.email>
Co-authored-by: Lorenzo Rapetti <lorenzo.rapetti.94@gmail.com>
Co-authored-by: Jeremy Liberman <mrleebo@msn.com>
Co-authored-by: Yanick Bélanger <yanick.belanger@yahoo.com>
Co-authored-by: Jim Cummins <jim.for.cy@gmail.com>
Co-authored-by: Beata Obrok <beata.obrok@u2i.com>
Co-authored-by: Camilo Gonzalez <cgs.camilogonzalez@gmail.com>
Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
Co-authored-by: Tahir Awan <tahir.awan@gmail.com>
Co-authored-by: Giel <g.cobben@gmail.com>
Co-authored-by: Jess <jessachandler@gmail.com>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: marcoseoane <marcorseoane@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dylan Brookes <24858006+merelinguist@users.noreply.github.com>
Co-authored-by: Justin Hall <justin.r.hall@gmail.com>
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Sajjad Hashemian <sijad@disroot.org>
Co-authored-by: Michael Edelman <michael@fabulas.io>
2020-04-20 21:17:20 +07:00
Brandon Bayer
8d38c6c225 Add the Alpha User Guide (#131)
* Create USER_GUIDE.md

* Update USER_GUIDE.md

* Update USER_GUIDE.md

* Update USER_GUIDE.md

* Update USER_GUIDE.md

* add custom header image

* Update USER_GUIDE.md

* add cli commands

* add blitz db introspect

* Update USER_GUIDE.md
2020-04-20 21:09:15 +07:00
Brandon Bayer
c00e78cbc7 v0.5.0-canary.5 2020-04-20 21:02:53 +07:00
Brandon Bayer
11325ba136 move test mocks to top of file 2020-04-20 21:02:25 +07:00
Brandon Bayer
477094d042 v0.5.0-canary.4 2020-04-20 20:57:31 +07:00
Brandon Bayer
2c91340539 Back out the auto db migrate, and instead only auto generate pri… (#151)
* change to only generate prisma client on blitz start

* add comment
2020-04-20 20:56:26 +07:00
Brandon Bayer
4c42176ec9 v0.5.0-canary.3 2020-04-20 20:08:54 +07:00
Brandon Bayer
6564a268f6 tweak link-cli scripts 2020-04-20 20:08:20 +07:00
Brandon Bayer
9c66a2938e fix cli template files in npm package 2020-04-20 19:29:10 +07:00
Brandon Bayer
27e314821d v0.5.0-canary.2 2020-04-20 17:16:31 +07:00
Brandon Bayer
bf4b90943b Many updates to blitz new template, including prettier, eslint,… (#150)
* update template app

* fix `blitz -v`
2020-04-20 17:12:54 +07:00
Brandon Bayer
3b5f7bc6c8 v0.5.0-canary.1 2020-04-20 12:41:07 +07:00
Brandon Bayer
0659b37d77 v0.5.0-canary.0 2020-04-20 12:32:48 +07:00
Brandon Bayer
67950db948 add publish script 2020-04-20 12:30:31 +07:00
Brandon Bayer
45a09911a4 add register to server package 2020-04-20 12:23:15 +07:00
Brandon Bayer
e89127358f Add the blitz package and proper global/local CLI handling (#128)
* add the `blitz` package (but yarn blitz start not working)

* wip

* working

* updates

* cleanup

* adjustment

* chore: make 'blitz' work (#129)

* chore: make 'blitz' work

* fix: make example work in dev mode with blitz mono-package

* test: skip failing test re patched version of next

* fix: issues re bundling & store example

* fix blitz building in development and some other cleanup

* fixes for CLI usage from blitz

* more changes. blitz build still broken from child_process thing

* remove .yarnrc

* few DX fixes

* fix bug in store example

* fix the build and CLI!

* code comments

* delete vanilla-next

* fix tests

* fix tests

* fix CI tests

* remove server export from `blitz` since end-users don't use it

* move README into the Blitz package

* add link-cli script

* change prisma resolve to use resolveBinAsync

Co-authored-by: Michael Edelman <michael@fabulas.io>
2020-04-20 12:18:20 +07:00
Brandon Bayer
cf94dc866d Update MANIFESTO.md 2020-04-20 11:40:42 +07:00
Brandon Bayer
bd3841b43b Update README.md 2020-04-20 11:32:46 +07:00
Brandon Bayer
50dd2dcc4e Update readme with benefits and features 2020-04-20 11:22:58 +07:00
Dylan Brookes
6443184f0f Automatically run blitz db migrate on every blitz start (#147)
* Automatically run `blitz db migrate` on every `blitz start`

* Fix test

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
2020-04-20 09:17:19 +07:00
Brandon Bayer
9f8a7afd17 Fix ugly blitz start --production error (#144) 2020-04-19 13:04:49 +07:00
Brandon Bayer
5d3afb0230 Fix server for deployment to Zeit (#143)
* fix production, but tests still failing

* Fix missing await and avoid changing source folder

Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
2020-04-19 12:47:16 +07:00
Brandon Bayer
9dfc5c53ed tweak readme 2020-04-19 11:50:10 +07:00
Brandon Bayer
ba540bb546 v0.0.2-canary.1 2020-04-18 14:58:46 +07:00
allcontributors[bot]
b70296a7a2 docs: add sijad as a contributor (#141)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-18 12:52:39 +07:00
Sajjad Hashemian
36c0acdb92 feat(cli): add help for db commands (#139) 2020-04-18 10:21:09 +07:00
Brandon Bayer
549115af97 Update CONTRIBUTING.md 2020-04-17 17:38:30 +07:00
Brandon Bayer
a4d6fe139e Rexport Next stuff from Blitz (#138) 2020-04-17 17:16:19 +07:00
Brandon Bayer
9010566895 Update new app template: favicon, blitz.config.js, .env, fixes (#137) 2020-04-17 16:32:45 +07:00
Brandon Bayer
167fc251fd add medelman17 for code 2020-04-17 15:56:56 +07:00
Brandon Bayer
4bcc2efbec Implement ssrQuery (#136) 2020-04-17 15:50:09 +07:00
Brandon Bayer
4c1eed6248 Add blitz db studio and blitz db introspect (#134)
(minor)
2020-04-17 15:28:08 +07:00
Brandon Bayer
36b4f101f9 automatically read .env for blitz cli commands (#133)
(minor)
2020-04-17 14:43:13 +07:00
Brandon Bayer
9209c934ee Update README.md 2020-04-17 10:59:23 +07:00
Brandon Bayer
ecd1118ce5 Update README.md 2020-04-17 10:54:24 +07:00
Brandon Bayer
29820ac964 Update .all-contributorsrc 2020-04-17 10:53:04 +07:00
Brandon Bayer
93dcd6d884 give the README a fresh coat of paint! 2020-04-17 10:51:57 +07:00
Rudi Yardley
6f66e5bd72 feat(server): blitz.config.js config support without `withBlit… (#130)
* Allow blitz config

* Add error message

* Update tests

* Support only blitz.config.js

* Remove blitz.config.js

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-16 19:07:46 +07:00
Justin Hall
df76a4b2ab fix(cli): leverage cross-spawn for cross-platform compatibility (#122)
* fix(cli): leverage cross-spawn for cross-platform compatibility

* refactor(server): use cross-spawn in next-utils for consistency
2020-04-16 14:06:45 +07:00
Brandon Bayer
b9391305b0 Revert "Add the blitz package (#125)"
This reverts commit 9e1ce7dda0.
2020-04-15 21:03:52 +07:00
Brandon Bayer
9e1ce7dda0 Add the blitz package (#125) 2020-04-15 16:35:47 +07:00
Brandon Bayer
d956da624f Change blitz new template to be a working blitz app (#123)
* change blitz new template to be a working blitz app

* fix tests
2020-04-15 15:04:50 +07:00
Brandon Bayer
4b29564f12 docs: readme typo 2020-04-15 10:55:26 +07:00
Brandon Bayer
227c1204c2 docs: add alpha release note to readme 2020-04-15 10:54:47 +07:00
Brandon Bayer
1ca88afcef chore: fix all contributors badge generation 2020-04-15 10:27:54 +07:00
Justin Hall
bb4272bbe6 build(cli): fix @blitzjs/cli build script on Windows (#120) 2020-04-15 09:37:06 +07:00
Brandon Bayer
b749884ddc v0.0.2-canary.0 2020-04-14 19:32:41 +07:00
Brandon Bayer
0b18df1390 feat: enable concurrent mode for Blitz apps (#118) 2020-04-14 19:30:58 +07:00
Brandon Bayer
256387cbbd chore(examples): Make store work in prod (switch to Postgres) (#117)
* wip

* fix(example): changes for deploying store to Zeit. Switch to postgres
2020-04-14 18:42:24 +07:00
Brandon Bayer
f80071913d fix: build from dependency issues 2020-04-14 17:16:10 +07:00
Brandon Bayer
c05afe8bf6 chore: update example dependency versions 2020-04-14 17:01:04 +07:00
Brandon Bayer
95713e627b v0.0.2-alpha.0 2020-04-14 16:50:21 +07:00
Brandon Bayer
4184a4fe5d v0.0.1-0.0.1-canary.4.0 2020-04-14 16:47:37 +07:00
Brandon Bayer
5933b6189e chore: update lerna script 2020-04-14 16:46:55 +07:00
Brandon Bayer
2d545688cb feat(cli): don't bundle cli (and remove pkg) (#115)
* feat(cli): don't bundle cli with pkg or anything. npm package now working

* fix tests
2020-04-14 16:29:42 +07:00
Brandon Bayer
c3dee2271e feat: use db folder instead of prisma (#114)
* feat: use `db` folder instead of `prisma`

* fix tests
2020-04-14 14:58:44 +07:00
allcontributors[bot]
93865f4431 docs: add merelinguist as a contributor (#112)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-14 12:43:45 +07:00
Dylan Brookes
be1c57b345 feat(server): Warning about invalid routes/api structure (#106)
* First pass at warning about duplicate routes

* Move dupe checker to its own function

* Fix some accidental changes

* Revert yarn.lock(?)

* Route > page

* Use pages for store example

* Warn about nested api routes

* Check for duplicate api routes

* Warn api dupe routes

* Remove stray process.exit

* Merge api and pages dupe checkers

* Delete old checkers

* Remove stray line

Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-14 12:43:01 +07:00
allcontributors[bot]
5d22f9b2cc docs: add wKovacs64 as a contributor (#111)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-14 11:22:28 +07:00
Justin Hall
1ea4398216 fix(cli): spawn Windows .cmd entrypoints on win32 platform (#109)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-14 11:21:30 +07:00
Rudi Yardley
bb93ed8843 fix(examples): Fix Yarn link blitz cli failing (#105)
* Add version to example

* Try using generic versions
2020-04-14 11:03:11 +07:00
Brandon Bayer
e2eed221e0 chore: update githead 2020-04-13 15:45:10 +07:00
Brandon Bayer
6719104cb3 v0.0.1-canary.1 2020-04-13 15:39:42 +07:00
Brandon Bayer
d103345b77 chore: remove version from examples 2020-04-13 15:38:54 +07:00
Brandon Bayer
ae99dc4a55 v0.0.1-canary.0 2020-04-13 15:35:08 +07:00
Brandon Bayer
4658f616f1 chore: update lerna config 2020-04-13 15:31:44 +07:00
Brandon Bayer
48861cbf25 chore: change version to 0.0.0 2020-04-13 15:27:16 +07:00
Brandon Bayer
c82de5cfd0 feat: Implement the new Architecture! (#95)
* wip

* working rpc mutation

* queries and mutations working!!

* prewarm the lamba

* update withBlitz config wrapper - remove stuff no longer needed

* switch from `pages` to `routes`

* fix a test issue

* fix cli test

* Add file addition and subtraction to transform stream

* Remove comments

* Allow pages and routes

* Allow routes folder without context

* Tidy up build rules

* Fix broken transform test

* Use done callback to ensure all events have passed in stream test

* Fix next build breaking

* File generation RPC works

* Remove commented out code

* Ensure correct jest version so tests run and tidy up

* Fix up linting

* Tidy up synchroniser

* Ensure watcher close is run when watchmode is false

* typo

* update cli readme

* Fix start error

* Downgrade ts-jest to remove warning

* fix build with static pages

* rerun prettier on all files

* yarn workspace: nohoist husky and prisma

* add missing dependency

Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
2020-04-13 13:53:33 +07:00
Brandon Bayer
64185b884d chore: upgrade dependencies (#96) 2020-04-11 21:25:36 +07:00
Rudi Yardley
9bdc4350f9 fix(server): Fix ignorePath (#94)
* Fix up globs

* Revert move as it doesnt really matter because of ignorePaths
2020-04-11 14:17:25 +07:00
Rudi Yardley
81735c4dec Fix launchEditor bug (#92) 2020-04-11 16:37:39 +10:00
Brandon Bayer
53eab985fd chore: remove all prototype code in prep for new architecture code (#90)
* remove all prototype code and clean up deps

* fixes
2020-04-11 10:25:33 +07:00
Brandon Bayer
e16d66a4c5 docs: update readme 2020-04-09 10:20:49 +07:00
Dylan Brookes
bc3aa30929 docs: Fix website link (#86)
* Fix website link

* regenerate readme

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-07 18:18:01 +07:00
dependabot[bot]
9d8edb6ead chore(deps): bump acorn from 5.7.3 to 5.7.4 (#83)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
Co-authored-by: Rudi Yardley <contact@rudiyardley.com>
2020-04-07 14:47:54 +10:00
Brandon Bayer
25ff55291a chore: add rudi as code owner of packages/server 2020-04-07 09:18:33 +07:00
Rudi Yardley
2a9ac48a72 Fix dangling chokidar watch and add temporary logging. (#82)
* Add logging

* Add better commit message

* Ensure will only run if jest is running

* Add manifest to output log

* Update message

* Use specific ignore in build folder

* Add dot ahead of ignored patterns

* Close Watcher

* Remove stray reference

* Neaten up
2020-04-07 08:42:07 +07:00
Brandon Bayer
925098534f chore: update readme 2020-04-06 20:57:11 +07:00
Brandon Bayer
277c704be8 chore: tweak readme 2020-04-06 20:06:46 +07:00
Brandon Bayer
046b2ed300 Add @merelinguist as a contributor 2020-04-06 20:05:20 +07:00
Brandon Bayer
ef579daf1c chore: fix rishabhpoddar readme link 2020-04-06 20:05:13 +07:00
Lorenzo Rapetti
e44785bcff refactor(cli): CLI refactoring (#25)
* Add base generator class

* change from mem-fs to fs.mkdirSync due to undefined error

* Add base command class

* Add conflict checker

* Add dry run to generator

* Add install via npm or yarn

* Add --no-yarn

* remove unused nyc dependency

Co-authored-by: marcoseoane <marcorseoane@outlook.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-06 18:27:29 +07:00
Brandon Bayer
72697f25f9 fix readme 2020-04-05 17:58:47 +07:00
allcontributors[bot]
fa6067eee7 docs: add marcoseoane as a contributor (#81)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-03 12:05:40 +07:00
allcontributors[bot]
6879be005e docs: add rishabhpoddar as a contributor (#78)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-03 12:04:22 +07:00
allcontributors[bot]
52e93a608b docs: add aem as a contributor (#79)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-04-03 12:02:10 +07:00
allcontributors[bot]
bce5a4bd37 docs: add lorenzorapetti as a contributor (#80)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2020-04-03 11:59:58 +07:00
Brandon Bayer
1dad620368 doc: Add All Contributors Spec, Add CONTRIBUTING.md, Update Readme (#77)
* Added financial contributors to the README

* Add @flybayer as a contributor

* Add @medelman17 as a contributor

* Add @ryardley as a contributor

* Add @toddgeist as a contributor

* Add @quirk0o as a contributor

* Add @tsawan as a contributor

* Add @camilo86 as a contributor

* Add @dkempner as a contributor

* Add @gielcobben as a contributor

* Add @MrLeebo as a contributor

* Add @jimthedev as a contributor

* update readme & add CONTRIBUTING.md

* add Kristina

* Add @robdrosenberg as a contributor

* Add @jasonblalock as a contributor

* Add @coreybrown89 as a contributor

* Add @aej11a as a contributor

* update badegs

* tweak

* tweak

* more

Co-authored-by: Jess <jessachandler@gmail.com>
2020-04-03 11:40:31 +07:00
Brandon Bayer
f09b968e27 Update README.md 2020-04-02 20:14:26 +07:00
Brandon Bayer
7f81d6291d Revert "add initial file structure rfc"
This reverts commit f48a776e99.
2020-04-02 19:25:02 +07:00
Brandon Bayer
f48a776e99 add initial file structure rfc 2020-04-02 19:24:07 +07:00
Brandon Bayer
3e63287fa2 Update MANIFESTO.md 2020-04-01 13:13:21 +07:00
Beata Obrok
828c8d2f23 feat(cli): load dependencies in blitz console (#68)
* [cli] feat: autoload package dependencies in console

* feat: load Prisma Client into console context

* [cli] spec: fix spec for console command

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-25 12:13:55 +07:00
Rudi Yardley
d8c2f696b1 bug(server): CI pathname errors for readable-stream (#71)
* Try setting normalise to false on tree testing

* Remove debugging log
2020-03-24 12:57:35 +07:00
Rudi Yardley
4f21628365 feat(server): Transform rules and synchronisation manifest (#69)
* Extract config

* Use gulp pipes to apply tranforms and write manifest.

* Add linting comments to allow import reordering

* Fix manifest bug

* Refactor to pipeline and fix testing method

* Include clean

* Fix up dependencies and tidy up code

* Fix newline issue

* Fix dependencies again

* Fix up testing strategy for file manipulations

* Renaming file because of inconsistency pt1

* Renaming file because of inconsistency pt2

* Update CLI test

* Debug CI build failures not occuring locally

* Include catch for missing unlink
2020-03-20 15:45:24 +07:00
Brandon Bayer
0521b595fe chore: add github sponsor link 2020-03-13 14:16:51 +07:00
Brandon Bayer
f0159a05ae docs: update readme 2020-03-12 19:05:03 +07:00
Brandon Bayer
4a1e7e361f docs: add manifesto to readme 2020-03-11 22:00:20 +07:00
Rudi Yardley
b1f620a579 feat(server): Errors respect file path redirection (#66)
* Expose next-executable

* Redirecting errors correctly with mocked rules

* Add comments about what is waiting

* Remove prepare as it was causing errors when installing dependencies

* Mock outer function instead of call to spawn

* Try using import *

* Remove CI switch as that was not the problem

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-11 21:56:47 +07:00
Giel
dfbcb5bf67 feat: Upgrade next to latest release v9.3.0, closes #60 (#65)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-11 21:45:54 +07:00
Brandon Bayer
0677a16e75 chore: tweak github actions to remove duplicate builds 2020-03-11 21:37:45 +07:00
Brandon Bayer
968b507570 fix: running tests locally after packages have been built 2020-03-11 17:57:15 +07:00
Rudi Yardley
e773b26f5f refactor(server): create server package (#57)
* @blitzjs/webpack -> @blitzjs/server

* Move server code out of cli

* Fix up type and lerna issues

* Prebuild non-cli before test

* Remove noise in PR
2020-03-11 14:02:23 +07:00
Brandon Bayer
54e4759791 docs: Add the Blitz Manifesto! (#52) 2020-03-10 18:06:40 +07:00
Tahir Awan
df0e5d3539 feat(cli): Add blitz db command #24 (#51)
* Add db command

* fixed test

closes #24

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-10 15:51:38 +07:00
Brandon Bayer
32944666f4 tweak funding 2020-03-10 10:48:32 +07:00
Tahir Awan
b5e0d7afed feat(cli): Add blitz test watch command #23 (#50)
* Add test watch

* Add test:watch

closes #23

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-09 15:30:08 +07:00
Rudi Yardley
4bb86dc8b8 fix(cli): Fix bug in build script (#49)
* Unlink doesnt work on folders

* Mock remove
2020-03-09 15:25:42 +07:00
Rudi Yardley
93a5fb057e feat(cli): Compile to Next (#45)
* Only create a prisma client when it actually needed

* Setup start script for a simple next-project

* Enable "compile to next" on first-demo

* Whitespace

* Fix failing webpack config test

* Testing spawn call

* Neaten up code

* Test tsExtraMock instead of reporter

* Test file deletion

* Better file locations

* Dont need persistent anymore

* Development, Production, Build, Deploy

* Add ts-ignore so we dont get compiler errors

* Remove test on command with flags

* Tidy up typescript config and add test

* Add comment around type issues

* Remove author field

* Tidy up config changs

* quiet core tests

* move es6 from root tsconfig to cli tsconfig

* Rename start -> scripts and tidy up descriptions

* Test build script

* Fix up test description

* Fix bug in build script

Closes #21, #36

Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-09 09:37:59 +07:00
Beata Obrok
3c044fd4d0 test(examples): add cypress tests to first demo (#47)
* [examples] feat: setup cypress in first demo

* [examples] spec: add cypress tests for first demo

closes #44
2020-03-08 18:34:21 +07:00
Brandon Bayer
b430c87b65 fix(core): Add support for multiple attribute types for id (#35)
* Add support for multiple attribute types for id

* Add comment + tests
2020-03-05 21:05:22 +07:00
Brandon Bayer
903644b628 feat(core): Return 404 if controller action is not defined (#39)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-05 11:11:39 +07:00
Brandon Bayer
d26be24cb3 feat(cli): use custom REPL in console command (#38)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-05 10:51:06 +07:00
Brandon Bayer
949e7eb83f bug(webpack): Create webpack package to avoid context bugs (#42)
* Add new webpack package

* Delete webpack files from core

* Pin dependencies
2020-03-05 10:40:15 +07:00
Brandon Bayer
97bb455cc4 fix: Fix jest version incompatability (#43) 2020-03-05 08:12:35 +07:00
Brandon Bayer
cdb5ff2133 bug(example): Fix Invalid hook call error. (#37) 2020-03-05 08:11:13 +07:00
Brandon Bayer
b1aee93e2d chore: comment cleanup 2020-03-04 10:24:34 +07:00
Brandon Bayer
667566e341 docs: fix typo 2020-03-04 09:46:24 +07:00
Brandon Bayer
c51443bf5d docs: add dev onboarding blurb to readme 2020-03-04 09:45:26 +07:00
Camilo Gonzalez
ab4a3d2748 feat(cli): Add blitz test command (#30)
* add run tests command

* add test command

* add test cmd unit test

* uses project package manager (npm/yarn) to run test script

Co-authored-by: Brandon Bayer <b@bayer.ws>

closes #22
2020-03-04 09:37:46 +07:00
Beata Obrok
6d6a689557 feat(cli): Add blitz console command (#32)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-04 09:36:22 +07:00
Brandon Bayer
16c2031d2a docs: Update CODE_OF_CONDUCT.md (#28) 2020-03-04 09:33:21 +07:00
Brandon Bayer
590b20f12e chore: add pull_request event to github action 2020-03-04 09:30:02 +07:00
Brandon Bayer
c82c0b3689 feat(core): Add withBlitz webpack wrapper + fix prisma/client (#31)
* add withBlitz webpack config wrapper

* Move prisma/client noop into withBlitz!
2020-03-03 16:16:10 +07:00
Jim Cummins
18d38d79e7 fix: noop @prisma/client in browser, closes #13 (#19)
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-02 21:50:56 +07:00
Jeremy Liberman
4113124ec4 chore(core): Add core tests (#16)
* Add core tests

- Tests cover Form and Controller
- You can check code coverage with "yarn test --coverage"

* A little formatting + form test modifications

* add back console log

Co-authored-by: Yanick Bélanger <yanick.belanger@yahoo.com>
Co-authored-by: Brandon Bayer <b@bayer.ws>
2020-03-02 10:22:08 +07:00
Brandon Bayer
8f6d0e03ac feat(cli): Add initial CLI (#8)
* v0.0.1

Initial PR for oclif CLI

* update prettier config

* chore: repo updates - run prettier on commit

* organize package.json + correct package name

* Add initial app generator

* changes & cleanup

* more tweaks

* Add basic nextjs generation

* #9 Swapping Mocha with Jest for CLI

Swapped Mocha with Jest.

* Swapping Mocha with Jest for CLI

Swapped Mocha with Jest.

* add `yarn b [COMMAND]` for dev convenience

* Formalize path arg

* Make jest work

* Remove empty commands and make tests pass

* Fix path argument

* Revert "target" in tsconfig.json

* Remove `target` from cli package.json

* Fix build command

* Use custom tsconfig for test script

* remove nyc because jest has coverage built in

* little cleanup

Co-authored-by: Mina Abadir <mina@abadir.email>
Co-authored-by: Lorenzo Rapetti <lorenzo.rapetti.94@gmail.com>
2020-03-01 15:46:35 +07:00
Brandon Bayer
c48fd8925b chore: add sponsor section to readme 2020-02-27 18:39:07 -08:00
Brandon Bayer
66af983955 chore: Add Patreon and Paypal to the sponsor button options (#18) 2020-02-27 18:36:11 -08:00
Brandon Bayer
55b735086c chore: add flybayer as codeowner of everything 2020-02-27 18:14:45 -08:00
Brandon Bayer
4e64784749 fix(demo): switch to fruit content filter 2020-02-27 18:13:49 -08:00
Brandon Bayer
3ee2ef0b42 Add Open Collective Sponsor button (#15) 2020-02-26 21:25:33 -08:00
Brandon Bayer
eaa6fc8802 fix(demo): add content filtering! 2020-02-26 17:11:56 -08:00
Brandon Bayer
ef6bf61c5b fix(demo): untitled posts 2020-02-26 16:33:55 -08:00
Brandon Bayer
5f5b589a7f chore(demo): add some comments 2020-02-26 16:07:18 -08:00
Brandon Bayer
82ae27841c Live Demo Deployment (#12)
* add github link to demo

* fix(core): connect to db right away + fix for connection undefined

* changes to demo needed for production deployment

* fix(demo): relax tsconfig

* upgrade prisma & fix core for deployment

* demo updates
2020-02-26 15:56:47 -08:00
Brandon Bayer
8623d5a817 Add initial Blitz Core and First Demo 🎉 (#11)
* wip

* chore: fix typings, tweak build config

* update prettier config

* set up husky to run prettier on commit

* add migrate script and update readme

* changes, still broken

* add yarn dev command

* more changes, still broken

* demo working again!

* fix: yarn why do you hate me so much?

* add to gitignore

* trying to get demo dev to work right

* refactor and cleanup

* more cleanup

* update deps

* tweak

* update readme

* fix

* update readme

Co-authored-by: Michael Edelman  <michael@edel.mn>
2020-02-26 12:46:30 -08:00
Brandon Bayer
250c49c7bd chore: update readme 2020-02-25 16:28:33 -08:00
Brandon Bayer
7739c3e951 remove broken gh action 2020-02-25 16:24:11 -08:00
Brandon Bayer
8a7f7931f4 Update README.md 2020-02-23 13:03:33 -08:00
Brandon Bayer
6579e85a96 docs: add code of conduct 2020-02-23 11:46:21 -08:00
Michael Edelman
1195f5225e chore: shush slack bot, add GH actions badge to README (#6) 2020-02-22 09:29:35 -08:00
Michael Edelman
9b206a9831 Implement Initial Continuous Integration Workflow Using GitHub Actions (#3)
* build: add GH action for CI

* fix: tweak test-related scripts in package.json
2020-02-20 14:12:36 -08:00
Michael Edelman
dae1db73e9 Create GitHub Action for Slack Notice 2020-02-20 16:07:12 -05:00
Michael Edelman
d63f59d2fa tada: bootstrap all the things (#2) 2020-02-19 16:33:26 -08:00
Brandon Bayer
bbf9cb0d2b Update README.md 2020-02-19 10:24:12 -08:00
Brandon Bayer
a44b1d93c1 Update README.md 2020-02-19 10:21:17 -08:00
Brandon Bayer
3dab930a75 Merge pull request #1 from dkempner/patch-1
Bigger click target = higher conversion rate
2020-02-17 14:51:14 -08:00
Daniel Kempner
939fad20f6 Bigger click target = higher conversion rate 2020-02-17 14:44:26 -08:00
Brandon Bayer
2e06ef8637 Update README.md 2020-02-17 14:28:53 -08:00
Brandon Bayer
12ab14bc57 Update README.md 2020-02-17 13:56:53 -08:00
Brandon Bayer
45000493e0 Update README.md 2020-02-17 13:55:13 -08:00
5539 changed files with 517753 additions and 78420 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +0,0 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

View File

@@ -1,11 +0,0 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [["blitz"], ["@blitzjs/*"]],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["web", "test-*", "toolkit-*", "@blitzjs/recipe-*"]
}

View File

@@ -1,2 +1,53 @@
**/package.json
*.d.ts
node_modules
reports
*.log
.nyc_output
**/coverage
tsconfig.tsbuildinfo
**/.blitz/**
**/.next/**
**/dist/**
**/.vercel/**
**/.test*
/examples/auth2
prettier.config.*
jest.config.*
jest.setup.*
babel.config.*
eslint.config.*
/__mocks__
/__fixturse
/assets
/patches
/rfc-docs
/scripts
/types
/recipes/*/templates
/packages/generator/templates
/packages/cli/lib
/packages/babel-preset/src/fix-node-file-trace/tests/**
/test/integration/**/out/**
/nextjs/packages/create-next-app
// COPIED FROM nextjs/.eslintignore
/nextjs/**/.next/**
/nextjs/**/_next/**
/nextjs/**/dist/**
/nextjs/examples/**
/nextjs/packages/next/bundles/webpack/packages/*.runtime.js
/nextjs/packages/next/compiled/**/*
/nextjs/packages/react-refresh-utils/**/*.js
/nextjs/packages/react-dev-overlay/lib/**
/nextjs/**/__tmp__/**
/nextjs/.github/actions/next-stats-action/.work
/nextjs/packages/next-codemod/transforms/__testfixtures__/**/*
/nextjs/packages/next-codemod/transforms/__tests__/**/*
/nextjs/packages/next-codemod/**/*.js
/nextjs/packages/next-codemod/**/*.d.ts
/nextjs/packages/next-env/**/*.d.ts
/nextjs/test/integration/async-modules/**
/nextjs/test/integration/eslint/**
/nextjs/test-timings.json

111
.eslintrc.js Normal file
View File

@@ -0,0 +1,111 @@
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
plugins: ["import", "unicorn", "simple-import-sort"],
extends: ["react-app"],
rules: {
"react/react-in-jsx-scope": "off", // React is always in scope with Blitz
"jsx-a11y/anchor-is-valid": "off", //Doesn't play well with Blitz/Next <Link> usage
"import/first": "off",
"import/no-default-export": "error",
"require-await": "error",
"no-async-promise-executor": "error",
"unicorn/filename-case": [
"error",
{
case: "kebabCase",
},
],
"simple-import-sort/imports": [
"warn",
{
groups: [
[
// Side effect imports.
"^\\u0000",
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
"^@?\\w",
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything that does not start with a dot.
"^[^.]",
// Relative imports.
// Anything that starts with a dot.
"^\\.",
],
],
},
],
},
overrides: [
{
files: ["**/*.ts", "**/*.tsx"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
project: `./tsconfig.eslint.json`,
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-floating-promises": "error",
// note you must disable the base rule as it can report incorrect errors
"no-use-before-define": "off",
// "@typescript-eslint/no-use-before-define": ["error"],
// note you must disable the base rule as it can report incorrect errors
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"],
},
},
{
files: ["examples/**", "recipes/**"],
rules: {
"import/no-default-export": "off",
"unicorn/filename-case": "off",
"@typescript-eslint/no-floating-promises": "off",
},
},
{
files: ["examples/**"],
plugins: ["cypress"],
parserOptions: {
project: null,
},
env: {
"cypress/globals": true,
},
rules: {
"simple-import-sort/imports": "off",
},
},
{
files: ["packages/cli/src/commands/**/*"],
rules: {
"require-await": "off",
},
},
{
files: ["test/**", "**/__fixtures__/**"],
rules: {
"import/no-default-export": "off",
"require-await": "off",
"unicorn/filename-case": "off",
},
},
],
}

5
.github/CODEOWNERS vendored
View File

@@ -2,4 +2,7 @@
* @flybayer
# packages/generator/templates**/* @flybayer
# packages/cli/**/* @aem, @flybayer
# packages/generator/**/* @aem @flybayer
packages/generator/templates**/* @flybayer
# packages/installer/**/* @aem @flybayer

View File

@@ -3,11 +3,6 @@ Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible please:
- Link issue via "Closes #[issue_number]
- Choose & follow the right checklist for the change that you're making:
Please make sure to add a changeset. Run `pnpm changeset` in the root directory to do so.
Then select updated Blitz packages when prompted, and add a short message describing the changes.
The message should be user-facing — explain **what** was changed, not **how**.
Ignore if there are no user-facing changes.
-->
Closes: ?
@@ -16,11 +11,9 @@ Closes: ?
## Bug Checklist
- [ ] Changeset added (run `pnpm changeset` in the root directory)
- [ ] Integration test added (see [test docs](https://blitzjs.com/docs/contributing#running-tests) if needed)
## Feature Checklist
- [ ] Changeset added (run `pnpm changeset` in the root directory)
- [ ] Integration test added (see [test docs](https://blitzjs.com/docs/contributing#running-tests) if needed)
- [ ] Documentation added/updated (submit PR to [blitzjs.com repo `main` branch](https://github.com/blitz-js/blitzjs.com))
- [ ] Documentation added/updated (submit PR to [blitzjs.com repo](https://github.com/blitz-js/blitzjs.com))

18
.github/checkInstallTime.js vendored Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env node
const fs = require("fs")
const yarnOut = fs.readFileSync(0, {encoding: "utf8"})
const [installTimeString] = /(?<=^Done in )\d+\.\d+(?=s\.$)/m.exec(yarnOut)
const installTime = Number(installTimeString)
console.log(`Install time: ${installTime}s`)
if (installTime < 30) {
console.log("We're below 30 secs. That's awesome!")
} else if (installTime < 50) {
console.log("We're below 50 secs. That's fine!")
} else {
console.log("We're above 50 secs. That's not great!")
process.exit(1)
}

View File

@@ -1,26 +0,0 @@
name: Changeset
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changeset:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changeset') && github.event.pull_request.merged == false }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Check if changeset is added
run: |
npx @changesets/cli@2.12.0 status --since=origin/${GITHUB_BASE_REF}

22
.github/workflows/compressed.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Size Check
on:
pull_request:
branches: [master, canary]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Compressed Size
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Count size
uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
exclude: "{./nextjs/**}"

View File

@@ -1,3 +1,5 @@
# https://github.com/vercel/next.js/commits/canary/.github/workflows/build_test_deploy.yml
name: CI
on:
@@ -8,155 +10,370 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4.0.0
with:
version: 8.6.6
- name: Setup node
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 20
cache: "pnpm"
node-version: "14"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules
id: yarn-cache
uses: actions/cache@v2
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: ${{ runner.os }}-${{ runner.node_version}}-yarn-v13-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ runner.node_version}}-yarn-v13-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm manypkg check
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
run: yarn install --frozen-lockfile --silent
env:
CI: true
- name: manypkg lint
run: yarn manypkg check
env:
CI: true
- name: Build next.js
run: yarn build:nextjs
env:
CI: true
- name: yarn lint
run: yarn lint
env:
CI: true
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4.0.0
with:
version: 8.6.6
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 20
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Build Apps
run: pnpm build:apps
Unit-Tests:
name: "Unit Test: ${{ matrix.os }} (node@16)"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
fail-fast: false
env:
NODE_VERSION: 18
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v4.0.0
with:
version: 8.6.6
- name: Setup node@16
uses: actions/setup-node@v2
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
shell: bash
- name: Build
run: pnpm build
shell: bash
- name: Test Packages
run: pnpm test -- --filter=./packages/*
shell: bash
- name: Test Apps
run: pnpm test -- --filter=./apps/*
shell: bash
find-integration-tests:
name: "Find Integration Tests"
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: 1
outputs:
folders: ${{ steps.set-matrix.outputs.folders }}
docsChange: ${{ steps.docs-change.outputs.DOCS_CHANGE }}
steps:
- uses: actions/checkout@v2
- id: set-matrix
name: "Find all folders"
shell: bash
run: |
cd ./integration-tests
tree -J -d -L 1 | jq -c '.[0].contents | map(.name | tostring) | map(select(. != "utils"))'
folders=$(tree -J -d -L 1 | jq -c '.[0].contents | map(.name | tostring) | map(select(. != "utils"))')
echo "folders=$folders" >> $GITHUB_OUTPUT
Integration-Tests:
name: "Integration Test: ${{matrix.folder}} @ ${{ matrix.os }}"
needs: [find-integration-tests]
strategy:
matrix:
folder: ${{fromJSON(needs.find-integration-tests.outputs.folders)}}
os:
- ubuntu-latest
- windows-latest
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- run: echo ${{matrix.folder}}
- name: Checkout
if: matrix.folder != 'next-13-app-dir' || matrix.os != 'windows-latest'
uses: actions/checkout@v3
- name: Setup PNPM
if: matrix.folder != 'next-13-app-dir' || matrix.os != 'windows-latest'
uses: pnpm/action-setup@v4.0.0
with:
version: 8.6.6
- name: Setup node@18
if: matrix.folder != 'next-13-app-dir' || matrix.os != 'windows-latest'
fetch-depth: 25
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 20
cache: "pnpm"
node-version: "14"
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules
id: yarn-cache
uses: actions/cache@v2
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: ${{ runner.os }}-${{ runner.node_version}}-yarn-v13-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ runner.node_version}}-yarn-v13-
- run: yarn install --frozen-lockfile --check-files
- name: Build Packages
run: yarn build
- run: node run-tests.js --timings --write-timings -g 1/1
working-directory: nextjs
- name: Check docs only change
working-directory: nextjs
run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
id: docs-change
- run: echo ${{steps.docs-change.outputs.DOCS_CHANGE}}
- uses: actions/cache@v2
id: cache-build
with:
path: ./*
key: ${{ github.sha }}
- name: Install dependencies
if: matrix.folder != 'next-13-app-dir' || matrix.os != 'windows-latest'
run: pnpm install --frozen-lockfile
shell: bash
testBlitzPackages:
name: Blitz - Test Packages
needs: build
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: 1
steps:
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- name: Setup kernel to increase watchers
if: matrix.os == 'ubuntu-latest'
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Test Blitz Packages
run: yarn testonly:packages
env:
CI: true
- name: Install playwright
if: matrix.folder != 'next-13-app-dir' || matrix.os != 'windows-latest'
run: |
pnpx playwright@1.28.0 install --with-deps
shell: bash
testBlitzExamples:
timeout-minutes: 30
name: Blitz - Test Example Apps
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
NEXT_TELEMETRY_DISABLED: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 25
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules
id: yarn-cache
uses: actions/cache@v2
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: ${{ runner.os }}-${{ runner.node_version}}-yarn-v13-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ runner.node_version}}-yarn-v13-
- run: yarn install --frozen-lockfile --check-files
# - run: yarn cpy node_modules/.blitz packages/core/node_modules/.blitz
# if: matrix.os == 'windows-latest'
- name: Build Packages
run: yarn build
# Needed to get cypress binary
- run: yarn cypress install
- name: Install sass
run: yarn install -W sass
- name: Setup kernel to increase watchers
if: matrix.os == 'ubuntu-latest'
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Test examples
run: yarn testonly:examples
env:
CI: true
- name: Build
if: matrix.folder != 'next-13-app-dir' || matrix.os != 'windows-latest'
run: pnpm build
shell: bash
checkPrecompiled:
name: Check Pre-compiled
defaults:
run:
working-directory: nextjs
runs-on: ubuntu-latest
needs: build
env:
NEXT_TELEMETRY_DISABLED: 1
steps:
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- run: ./check-pre-compiled.sh
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
- name: Test Packages
if: matrix.folder != 'next-13-app-dir' || matrix.os != 'windows-latest'
run: pnpm test -- --filter=./integration-tests/${{matrix.folder}}
shell: bash
testUnit:
name: Nextjs - Test Unit
defaults:
run:
working-directory: nextjs
runs-on: ubuntu-latest
needs: build
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
HEADLESS: true
steps:
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- run: node run-tests.js --timings --type unit -g 1/1
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testIntegrationBlitz:
name: Blitz - Test Integration
runs-on: ubuntu-latest
needs: build
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
HEADLESS: true
strategy:
fail-fast: false
steps:
- run: echo ${{needs.build.outputs.docsChange}}
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
# TODO: remove after we fix watchpack watching too much
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
- run: xvfb-run node nextjs/run-tests.js -c 3
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testIntegration:
name: Nextjs - Test Integration
defaults:
run:
working-directory: nextjs
runs-on: ubuntu-latest
needs: build
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
HEADLESS: true
strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
steps:
- run: echo ${{needs.build.outputs.docsChange}}
working-directory: ./
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
# TODO: remove after we fix watchpack watching too much
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
- run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/20 -c 3
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testElectron:
name: Nextjs - Test Electron
defaults:
run:
working-directory: nextjs
runs-on: ubuntu-latest
needs: build
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
HEADLESS: true
TEST_ELECTRON: 1
steps:
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
# TODO: remove after we fix watchpack watching too much
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
- run: cd test/integration/with-electron/app && yarn
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
- run: xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testsPass:
name: thank you, next
runs-on: ubuntu-latest
needs:
[
checkPrecompiled,
testIntegration,
testIntegrationBlitz,
testUnit,
testBlitzPackages,
testBlitzExamples,
]
steps:
- run: exit 0
testFirefox:
name: Nextjs - Test Firefox (production)
defaults:
run:
working-directory: nextjs
runs-on: ubuntu-latest
needs: build
env:
HEADLESS: true
BROWSER_NAME: "firefox"
NEXT_TELEMETRY_DISABLED: 1
steps:
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- run: node run-tests.js -c 1 test/integration/production/test/index.test.js
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testSafari:
name: Nextjs - Test Safari (production)
defaults:
run:
working-directory: nextjs
runs-on: ubuntu-latest
needs: build
env:
BROWSERSTACK: true
BROWSER_NAME: "safari"
NEXT_TELEMETRY_DISABLED: 1
SKIP_LOCAL_SELENIUM_SERVER: true
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
steps:
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js -c 1 test/integration/production/test/index.test.js'
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testSafariOld:
name: Nextjs - Test Safari 10.1 (nav)
defaults:
run:
working-directory: nextjs
runs-on: ubuntu-latest
needs: [build, testSafari]
env:
BROWSERSTACK: true
LEGACY_SAFARI: true
BROWSERNAME: "safari"
NEXT_TELEMETRY_DISABLED: 1
SKIP_LOCAL_SELENIUM_SERVER: true
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
steps:
- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production-nav/test/index.test.js'
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

View File

@@ -1,106 +0,0 @@
# https://github.com/withastro/astro/blob/main/.github/workflows/snapshot-release.yml
name: Create a Snapshot Release
on:
issue_comment:
types: [created]
defaults:
run:
shell: bash
jobs:
snapshot-release:
name: Create a snapshot release of a pull request
if: ${{ github.repository_owner == 'blitz-js' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!preview') }}
runs-on: ubuntu-latest
steps:
- name: "Check if user has admin access (only admins can publish snapshot releases)."
uses: "lannonbr/repo-permission-check-action@2.0.0"
with:
permission: "admin"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch PR information
id: pr_info
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pr="$(gh api repos/${{ github.repository }}/pulls/${{ github.event.issue.number }})"
head_sha="$(echo "$pr" | jq -r .head.sha)"
echo "head_sha=$head_sha" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
with:
ref: ${{ steps.pr_info.outputs.head_sha }}
- name: Setup PNPM
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 8.9.0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Short SHA
id: vars
run: echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
- name: Extract the snapshot name from comment body
id: getSnapshotName
uses: actions/github-script@v6
with:
script: |
const splitComment = context.payload.comment.body.split(' ');
if(splitComment.length !== 2) {
return "${{ steps.vars.outputs.sha_short }}";
}
return splitComment[1].trim();
result-encoding: string
- name: Install dependencies
run: pnpm install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- name: Build Packages
run: pnpm run build
- name: Bump Package Versions
id: changesets
run: |
pnpm changeset version --snapshot ${{ steps.getSnapshotName.outputs.result }} > changesets.output.txt 2>&1
echo ::set-output name=result::`cat changesets.output.txt`
env:
# Needs access to run the script
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Release
id: publish
run: |
pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }} > publish.output.txt 2>&1
echo ::set-output name=result::`cat publish.output.txt`
env:
# Needs access to publish to npm
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Pull Request Notification
uses: actions/github-script@v6
env:
MESSAGE: ${{ steps.publish.outputs.result }}
with:
script: |
console.log(process.env.MESSAGE);
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Snapshot Release ${{steps.getSnapshotName.outputs.result}}`
})

View File

@@ -1,53 +0,0 @@
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: read
jobs:
release:
name: Release
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Pre-publish
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 8.9.0
- run: pnpm install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- run: pnpm build
- name: Create Release Pull Request
uses: blitz-js/changesets-action@main
with:
publish: pnpm release
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

39
.gitignore vendored
View File

@@ -1,37 +1,3 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
node_modules
.pnp
.pnp.js
# testing
coverage
.next/
out/
build
dist
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# turbo
.turbo
.log
.DS_Store
.idea
@@ -48,13 +14,13 @@ tsconfig.tsbuildinfo
.next
dist
.now
# local env files
**/.env.local
**/.env.*.local
**/.envrc
.blitz-*
.blitz-cli-cache
.vscode
.tsbuildinfo
.nvmrc
**/.test*
@@ -62,9 +28,6 @@ examples/auth2
.idea
.ultra.cache.json
db.sqlite-journal
**/db/db.sqlite
test/integration/**/db.json
test/**/*/out
test/**/next-env.d.ts
examples/**/next-env.d.ts
.blitz**

View File

@@ -1,6 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm manypkg check
# pnpm lint
pnpm pretty-quick --staged
yarn lint-staged
yarn pretty-quick --staged

1
.node-version Normal file
View File

@@ -0,0 +1 @@
12.20.0

16
.npmignore Normal file
View File

@@ -0,0 +1,16 @@
.DS_Store
.prettierrc
.nyc_output
.travis.yml
coverage
coverage.lcov
bench
docs
src
examples
babel.config.js
test
CONTRIBUTING.md
CODE_OF_CONDUCT.md
*.ts
!*.d.ts

9
.npmrc
View File

@@ -1,10 +1 @@
save-exact=true
dedupe-peer-dependents=true
strict-peer-dependencies=false
public-hoist-pattern[]=secure-password
public-hoist-pattern[]=*types*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=@prettier/plugin-*
public-hoist-pattern[]=*prettier-plugin-*

View File

@@ -16,5 +16,10 @@ reports
tsconfig.tsbuildinfo
dist
bin
.github/ISSUE_TEMPLATE/bug_report.md
!packages/blitz/src/bin
packages/generator/templates/**
.github/ISSUE_TEMPLATE/bug_report.md
nextjs/packages/next/compiled/**
// Because file from nextjs upstream isn't formatted properly
nextjs/packages/next/build/webpack-config.ts

View File

@@ -1,3 +0,0 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}

View File

@@ -2,18 +2,34 @@
[Read the Contributing Guide at Blitzjs.com](https://blitzjs.com/docs/contributing)
## To run tests
## Notes For Core Team
Make sure you have `chromedriver` installed for your Chrome version. You can install it with
### Syncing Next.js Fork
- `brew install --cask chromedriver` on Mac OS X
- `chocolatey install chromedriver` on Windows
- Or manually download the version that matches your installed chrome version (if there's no match, download a version under it, but not above) from the [chromedriver repo](https://chromedriver.storage.googleapis.com/index.html) and add the binary to `<next-repo>/node_modules/.bin`
You may also have to [install Rust](https://www.rust-lang.org/tools/install) and build our native packages to see all tests pass locally. We check in binaries for the most common targets and those required for CI so that most people don't have to, but if you do not see a binary for your target in `packages/next/native`, you can build it by running `yarn --cwd packages/next build-native`. If you are working on the Rust code and you need to build the binaries for ci, you can manually trigger [the workflow](https://github.com/vercel/next.js/actions/workflows/build_native.yml) to build and commit with the "Run workflow" button.
Running all tests:
```sh
pnpm test
```
1. Run `yarn push-nextjs`
- If it fails with an error of `git-subrepo: Can't commit: 'subrepo/nextjs' doesn't contain upstream HEAD:`, then run `yarn push-nextjs --force` (see https://github.com/ingydotnet/git-subrepo/issues/530)
2. Create new git branch for the upgrade
3. In the forked repo (https://github.com/blitz-js/next.js), run:
1. `git pull`
2. `git fetch --all`
3. `git merge v10.2.0` (change the version to be the version you are updating to)
4. Run `rm -rf examples && git add examples`
5. To resolve conflict with their version for a path, like docs, run this:
- `git checkout --theirs docs && git add docs`
6. Resolve all merge conflicts and complete merge
7. Run `yarn` and make sure all builds complete
8. Run `yarn lint` and fix any issues
9. `git push`
4. Run `yarn pull next-nextjs`
5. Run `yarn`
6. Run `yarn manypkg check` and optionally `yarn manypkg fix` to fix any issues
7. Under `nextjs/`, run `./check-pre-compiled.sh` and commit the changes
8. Run `yarn build:nextjs`
9. Run `yarn lint` - fix any issues
10. Run `yarn build` - fix any issues
11. Run `yarn test:nextjs-size` and update tests if there are any failures
12. Open PR and fix any failing tests
13. Update any references to nextjs in new code including imports like `next/image`, etc.
14. Any doc updates needed?
15. Merge PR
16. `yarn push-nextjs`

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 Blitz Revolution Inc.
Copyright (c) 2021 Brandon Bayer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

124
MEETING_NOTES.md Normal file
View File

@@ -0,0 +1,124 @@
# 2020-08-17 Blitz Contributor Call
- Attending: Brandon Bayer, Adam Markon, Kellen Mace, Myron Davis, Dwight Watson
- Brandon:
- Auth out, set up by default in canary release
- Need to work on a potential CSRF bug
- Next major release will include auth by default and allow you to choose your form library
- Next auth features are email confirmation
- After that, logging and plugins are next
- Adam:
- Overhauled the recipe infrastructure. Now using jscodeshift instead of recast
- Added support for conditional JSX in templates
- Going to work on custom templates next
- Dwight
- Has been opening issues for problems
- Made a few PRs for some issues
# 2020-07-07 Blitz Contributor Call
- Attending: Brandon Bayer, Robert Rosenburg, Jeremy Liberman
- Brandon:
- Finishing up session managment code
- Waiting for review of session managment code from Rishabh
- Will be working on actual auth code (vs session management) like password hashing, password reset, social login, etc.
- Benefits of our session managment vs rails
- Dont have to redirect to login page
- Using top level error component that catches authentication errors
- You can login from anywhere, during sign up
- Robert:
- Waiting on Kirstinas website designs. Desktop design is finished, but she's working on mobile design
- Code snippet / sandbox of blitz code for the website
# 2020-06-23 Blitz Contributor Call
- Attending: Brandon Bayer, Robert Rosenberg, Justin Hall, Adam Markon
- Brandon:
- Server side session management code is mostly set up. Still need to integrate client side of RPC calls to expose session information
- Identity verification/Oauth integrations still need to be firmed up
- Once auth is wrapped up we should be ready to start on plugins
- Adam:
- Been experimenting with smart page generation based on the current schema model
- MDX installer recipes
- Robert:
- Waiting on designs from Kristina
- Prism component from theme ui customization? If not try and grab source code from docusaurus line highlighting component
- Justin:
- Updated the tutorial
- Helped with various bug fixes
# 2020-06-17 Blitz Contributor Call
- Attending: Brandon Bayer, Fran Zekan, Sigurd Wahl
- Brandon:
- Spent the past week implementing HTTP middlware which is now released!
- Now working on implementing session management!
- Fran:
- Finishing up the PR for adding `blitz db seed`
- Sigurd:
- New to the community, slowly learning the codebase
- Exicited to get a first PR in here sometime soon :)
# 2020-06-09 Blitz Contributor Call
- Attending: Brandon Bayer, Rudi Yardley, Fran Zekan, Adam Markon, Robert Rosenberg, Kristina Matuska
- Brandon:
- blitzjs.com published, docs + marketing site v0.1 live
- For now most of the docs copied from react-query and Next, we should eventually clean them up so they&#39;re stylistically similar to ours, but really easy to start
- HTTP middleware is almost done, just fixing a few edge cases
- Authentication is up next after that, translating pseudocode into actual code
- Kristina:
- Homepage design mostly wrapped up right now, have to finish up mobile and light mode and then ready to move on to the rest of the docs
- Syntax highlighting, we can customize colors
- Sidebar inspiration from tailwindcss
- Robert:
- Decided to wait to convert existing components to theme UI until the final design is done
- More docs content:
- More guides
- Improve the tutorial to incorporate relationship generation
- Add branches for canary and master
- If you add a feature you can add your documentation to the canary branch
- Adam:
- blitz generate model finished!
- Installer rewrite complete
- At similar place to what Gatsby has for installing stuff
- Next up:
- Support gatsby MDX recipes
- Make all code generators aware of actual model attributes
- Fran:
- Working on a package for getting the blitz config anywhere - getConfig()
- Prevent app from &quot;warming&quot; the server when deployed as server rather than serverless
- Testing examples - e2e with cypress and unit tests with Jest so we can link to a testing setup in the docs/getting started guide
- Rudi:
- Extracted out the @blitzjs/file-pipeline (previously synchronizer)
- Extracted out the @blitzjs/display package
- Working on various Next.js compatibility issues
- Debugging a bug in blitz start where it gets stuck at \_manifest.json
# 2020-05-26 Blitz Contributor Call
- Attending: Brandon Bayer, Robert Rosenberg, Adam Markon, Simon Debbarma
- Brandon:
- Kitze livestream last week went great — recording on youtube
- Codebase walkthrough yesterday went great — recording on youtube
- Website overhaul, installed Theme UI
- Adam:
- Opened PR for Prisma model generation from the CLI
- Working on Installer stuff and prepping for integration with Gatsby recipes
- Simon
- Working on custom illustrations for the web
- Robert
- Misc work on website
- Website
- Most website components are owned by us now instead of docusaurus, we&#39;ll need to be weary of api updates and any other important component updates
- Make sidebar like tailwind docs sidebar
- Dark theme needs to be fixed
- Theme switcher inconsistent
- Live code sandbox examples
- Code comparison between blitz and rails
- Auth
- Rishabh continuing to work on pseudo code for the session management library
- Brandon planning to build http middleware support this week
- CLI
- Adam working on new features, including generating prisma models and making existing templates aware of actual model attributes
- Plugin ideas / discussion once recipes are farther along. Will post an RFC for plugins at some point

320
README.md
View File

@@ -6,9 +6,9 @@
<img alt="" src="https://img.shields.io/badge/Join%20our%20community-6700EB.svg?style=for-the-badge&labelColor=000000&logoWidth=20&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQ9SURBVHgB7d3dVdtAEIbhcSpICUoH0IEogQqSVBBSAU4FSSpIOoAORAfQgSghHXzZ1U/YcMD4R9rZmf2ec3y448LyiNf27iLiGIAmPLrweC9Un3DhrzG6EarLNP09nlwJ1SOZ/lQr5N80/S/p2QMVCBf5N17XCfm1Y/rBHqjAG9PPHvBsz+mf9WAP+HLA9M/YA14cOP2payH7jpj+VCtk1wnTP+vj7xCy6cTpn7EHLMLp059iD1iD8eveJbVCNsSLheX1YA/YgOWnf8YeKB3Wmf7Ud6Fy4f/FHmtpxbl3YlC4MJ/Cj0bWdwPnPbARg+L0S54XQHS32WwuxClzd4CM0z9rPfeAuTtA5ulPXYQ7wZ04Y+oOoDD9KZc9YOoOoDj9s4dwFzgXR6w1wIPoOvPWA9buAHEJ173o3gWiy3AnuBUHLEbgmYwvAk1/wuM8vAgexThzbwPDkx7/DHwVXfFOxP2GmsKd4Ab6zPeAyU8CI7AHFmH2BRCBPXAyk18GzUrqAXCTiR4ssyj0VFw/oCU8+e+RZ33AWz6KMaYbIIWxB+JSLs1bsbkeMN0AqakHvoku9oA2sAfqBvbAQdw0QArsgb25aYBUQT3QgT2gB+yBuqGcHij2UCqXDZACe2Anlw2QYg/QAOyBuoE98CL3DZDCuK4/rh/Q7oGL6U+TOvcNkJoijN8X1C48+T+g75eQDrAH/qmqAVJgDwyqaoAUe4AGYA/UDZX3QLUNkEIZPRCd5+6BahsgVUgPROwBTSijB7jpVAvGHriHvmw9wAZ4BpX1ABvgmakHtPcbRuwBTWAPULgAV9D/jKDY9YRvwvgEaurD44uQHvAol7qBW7WKluVtIHiUS7GyvA0s6CiXDnxrpQfsgbqBS7GKk/2jYHCrVlGyfxTMrVo0ALdq1Q3sgSKofh0M9oA61a+D2QM0AHugbmAPqClmSRjK2apVVQ8UsySsoK1aHdgDesCtWnUDeyCrIpeFg1u3sylyWTi3btMA7IG6gT2wuuK3hoE9sKrit4YVslWLPaAN7IG6ocKt2zmY2h4O9sDiTG0PZw/QANy6XTewBxZj9ogYVHy025LMHhEz9cBn0We6B0yfERReBLfhx0/R1YQHPx/QBPbA0VwcEwf2wNFcHBPHHjiem3MC2QPHcXdSaJjA+KfgTPQ8hhfjBzHC40mhlzJ+Xq9lK4a4PCs43AVaGTed5mZq+iOXZwWHi3AnOj2wFWNcnxYe7gTxLtBKHuamP/J+Wnh8a5irB7ZC5Yk9gPX1QuXC+usHWqGyhYvUYR0a7zboUOFCNVhnk0krZAOW7wFOvzXhom2xnEbIHizTA1wEYhWW6YFGyC6c1gOcfg9wfA80Qj7g8B7g9HuCww+haIR8wf49wOn3Cvv9k8tGyC/s7gFOv3fY3QONkH+v9MBWqB7PeqDn9FcIT//kcitUn6kHOu/T/xfWzlQy3dEHhwAAAABJRU5ErkJggg==">
</a>
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<a aria-label="All Contributors" href="#contributors-"><img alt="" src="https://img.shields.io/badge/all_contributors-433-17BB8A.svg?style=for-the-badge&labelColor=000000"></a>
<a aria-label="All Contributors" href="#contributors-"><img alt="" src="https://img.shields.io/badge/all_contributors-304-17BB8A.svg?style=for-the-badge&labelColor=000000"></a>
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<a aria-label="License" href="https://github.com/blitz-js/blitz/blob/main/LICENSE">
<a aria-label="License" href="https://github.com/blitz-js/blitz/blob/canary/LICENSE">
<img alt="" src="https://img.shields.io/npm/l/blitz.svg?style=for-the-badge&labelColor=000000&color=blue">
</a>
<a aria-label="NPM version" href="https://www.npmjs.com/package/blitz">
@@ -19,12 +19,25 @@
<br>
<h1 align="center">The Missing Fullstack Toolkit for Next.js</h1>
<h1 align="center">The Fullstack React Framework</h1>
<h5 align="center">"Zero-API" Data Layer — Built on Next.js — Inspired by Ruby on Rails</h3>
<h3 align="center"><a href="https://blitzjs.com" target="_blank">Read the Documentation</a></h3>
<br>
“Zero-API” data layer **lets you import server code directly into your React components** instead of having to manually add API endpoints and do client-side fetching and caching.
New Blitz apps come with **all the boring stuff already set up for you!** Like ESLint, Prettier, Jest, user sign up, log in, and password reset.
Provides **helpful defaults and conventions** for things like routing, file structure, and authentication while also being extremely flexible.
<br>
### Quick Start
You need Node.js 12 or newer
#### Install Blitz
Run `npm install -g blitz` or `yarn global add blitz`
@@ -40,8 +53,37 @@ _You can alternatively use [`npx`](https://www.npmjs.com/package/npx)_
<br><br>
<a aria-label="Bytes Newsletter" href="https://ui.dev/bytes/?r=blitzjs">
<img alt="Bytes Newsletter" src="https://files-8wtskjofb.vercel.app/smarter-16x1.jpg">
</a>
<br><br>
### The Foundational Principles
1. Fullstack & Monolithic
2. API Not Required
3. Convention over Configuration
4. Loose Opinions
5. Easy to Start, Easy to Scale
6. Stability
7. Community over Code
[The Blitz Manifesto](https://blitzjs.com/docs/manifesto) explains these principles in detail.
<br>
### What is Blitz Designed For?
Blitz is designed for tiny to large database-backed applications that have one or more graphical user interfaces.
While we currently only support web, we are pursuing the dream of a single monolithic application that runs on web and mobile with maximum code sharing and minimal boilerplate.
<br>
## Welcome to the Blitz Community 👋
The Blitz community is warm, safe, diverse, inclusive, and fun! LGBTQ+, women, and minorities are especially welcome. Please read our [Code of Conduct](https://blitzjs.com/docs/code-of-conduct).
@@ -65,23 +107,20 @@ Your financial contributions help ensure Blitz continues to be developed and mai
<table>
<tr>
<td><a aria-label="React Bricks" href="https://reactbricks.com/?utm_source=blitzjs&utm_medium=sponsorship&utm_campaign=blitzjs_sponsorship">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/canary/assets/reactbricks_icon.svg" width="40px"/>
</a></td>
<td><a aria-label="Andreas Asprou" href="https://andreas.fyi">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/andreas.jpg" width="40px"/>
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/canary/assets/andreas.jpg" width="40px"/>
</a></td>
<td><a aria-label="Robert Malko" href="https://github.com/malkomalko">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/canary/assets/rob_blitz.jpg" width="40px"/>
</a></td>
<td><a aria-label="Digas" href="https://digsas.com">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/digsas.svg" width="40px"/>
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/canary/assets/digsas.svg" width="40px"/>
</a></td>
<td><a aria-label="userTrack" href="https://www.usertrack.net/?ref=blitzjs">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/usertrack.png" width="40px"/>
</a></td>
<td><a aria-label="MeetKai" href="https://meetkai.com/?ref=blitzjs">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/meetkai.png" width="40px"/>
</a></td>
<td><a aria-label="Simon Lammes" href="https://github.com/simon-lammes">
<img alt="" src="https://avatars.githubusercontent.com/u/46446421?v=4" width="40px"/>
</a></td>
<td><a aria-label="Route Optimizer and Route Planning Software" href="https://route4me.com">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/route4me.png" width="40px"/>
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/canary/assets/usertrack.png" width="40px"/>
</a></td>
</tr>
</table>
@@ -91,33 +130,21 @@ Your financial contributions help ensure Blitz continues to be developed and mai
<table>
<tr>
<td><a aria-label="Render.com" href="https://render.com?utm_source=BlitzJS&utm_medium=sponsorship&utm_campaign=BlitzJS_Sponsorship_2020">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/canary/assets/render-logo-color2.png" width="200px">
</a></td>
<td><a aria-label="RIT" href="https://rit-inc.co.jp/?utm_source=BlitzJS&utm_medium=sponsorship&utm_campaign=BlitzJS_Sponsorship_2021">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/rit_logo.png" width="200px">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/canary/assets/rit_logo.png" width="200px">
</a></td>
<td><a aria-label="Boostry" href="https://boostry.co.jp/?utm_source=BlitzJS&utm_medium=sponsorship&utm_campaign=BlitzJS_Sponsorship_2021">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/boostry.svg" width="200px">
</a></td>
<td>
<a aria-label="Byteflow" href="https://byteflow.app/?ref=blitzjs">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/byteflow.png" width="70px">
</a>
</td>
</tr>
</table>
### 🥈 Silver Sponsors
<table>
<tr>
<td>
<a aria-label="Fauna" href="https://dashboard.fauna.com/accounts/register?utm_source=BlitzJS&utm_medium=sponsorship&utm_campaign=BlitzJS_Sponsorship_2020">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/Fauna_Logo_Blue.png" width="300px">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/canary/assets/Fauna_Logo_Blue.png" width="300px">
</a>
</td>
</tr>
</table>
### 🏆 Gold Sponsors
@@ -127,15 +154,9 @@ Your financial contributions help ensure Blitz continues to be developed and mai
### 💎 Diamond Sponsors
<table>
<tr>
<td>
<a aria-label="Flightcontrol" href="https://www.flightcontrol.dev?ref=blitzjs">
<img alt="" src="https://raw.githubusercontent.com/blitz-js/blitz/main/assets/flightcontrol.png" width="400px">
</a>
</td>
</tr>
</table>
<a aria-label="Your Company" href="#">
<img alt="" src="https://dummyimage.com/1000x330/efe8ff/000000.png&text=Your+Logo+Here" width="500px">
</a>
<br>
@@ -145,16 +166,6 @@ Your financial contributions help ensure Blitz continues to be developed and mai
<table>
<tr>
<td align="center"><a href="https://twitter.com/flybayer"><img src="https://avatars3.githubusercontent.com/u/8813276?v=4" width="100px;" alt=""/><br /><sub><b>Brandon Bayer</b></sub></a><br />Creator</td>
<td align="center"><a href="http://twitter.com/dillonraphael"><img src="https://avatars.githubusercontent.com/u/3496193?v=4" width="100px;" alt=""/><br /><sub><b>Dillon Raphael</b></sub></a><br /></td>
<td align="center">
<a href="https://siddharthsuresh.vercel.app/">
<img src="https://avatars.githubusercontent.com/u/83594610?v=4" width="100px;" alt="Siddharth Suresh avatar" /><br />
<sub>
<b>Siddharth Suresh</b>
</sub>
</a>
</td>
</tr>
</table>
<!-- markdownlint-enable -->
@@ -171,8 +182,9 @@ _Code ownership, pull request approvals and merging, etc_ (see [Maintainers L2](
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="http://robdrosenberg.com"><img src="https://avatars0.githubusercontent.com/u/20813991?v=4" width="100px;" alt=""/><br /><sub><b>Robert Rosenberg</b></sub></a><br />Website/Docs</td>
<td align="center"><a href="http://simonknott.de"><img src="https://avatars1.githubusercontent.com/u/14912729?v=4" width="100px;" alt=""/><br /><sub><b>Simon Knott</b></sub></a><br />SuperJSON</td>
<td align="center"><a href="http://jins.dev"><img src="https://avatars.githubusercontent.com/u/39466936?v=4" width="100px;" alt=""/><br /><sub><b>JH.Lee</b></sub></a><br />SuperJSON</td>
<td align="center"><a href="https://juanm04.com"><img src="https://avatars0.githubusercontent.com/u/16712703?v=4" width="100px;" alt=""/><br /><sub><b>Juan Martín Seery</b></sub></a><br />Website/Docs</td>
</tr>
</table>
<!-- markdownlint-enable -->
@@ -190,6 +202,33 @@ _Issue triage, pull request triage, community encouragement and moderation, etc_
<table>
<tr>
<td align="center"><a href="http://jeremyliberman.com/"><img src="https://avatars3.githubusercontent.com/u/2754163?v=4" width="100px;" alt=""/><br /><sub><b>Jeremy Liberman</b></td>
<td align="center"><a href="https://twitter.com/nitaking_"><img src="https://avatars2.githubusercontent.com/u/10850034?v=4" width="100px;" alt=""/><br /><sub><b>Satoshi Nitawaki</b></sub></a></td>
<td align="center"><a href="https://github.com/engelkes-finstreet"><img src="https://avatars0.githubusercontent.com/u/36962022?s=460&u=34cfc4a3d6da0a87026f6068c371779c68daa3a2&v=4" width="100px;" alt=""/><br /><sub><b>Patrick Engelkes</b></sub></a></td>
<td align="center"><a href="https://twitter.com/myrondavis"><img src="https://avatars2.githubusercontent.com/u/1430136?v=4" width="100px;" alt=""/><br /><sub><b>Myron Davis</b></sub></a></td>
<td align="center"><a href="https://twitter.com/NaReto1125_"><img src="https://avatars.githubusercontent.com/reo777" width="100px;" alt=""/><br /><sub><b>Reo Ishiyama</b></sub></a></td>
<td align="center"><a href="https://github.com/malkomalko"><img src="https://avatars.githubusercontent.com/malkomalko" width="100px;" alt=""/><br /><sub><b>Robert Malko</b></sub></a></td>
</tr>
<tr>
<td align="center">
<a href="https://kevinlangleyjr.com">
<img
src="https://avatars.githubusercontent.com/u/877634?v=4"
width="100px;"
alt=""
/><br />
<sub>
<b>Kevin Langley Jr.</b>
</sub>
</a>
</td>
<td align="center">
<a href="https://mina.ca">
<img src="https://avatars.githubusercontent.com/mabadir" width="100px;" alt="Mina Abadir avatar" /><br />
<sub>
<b>Mina Abadir</b>
</sub>
</a>
</td>
</tr>
</table>
<!-- markdownlint-enable -->
@@ -334,7 +373,7 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
</tr>
<tr>
<td align="center"><a href="https://github.com/jschepmans"><img src="https://avatars2.githubusercontent.com/u/5782977?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Johan Schepmans</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=jschepmans" title="Code">💻</a></td>
<td align="center"><a href="https://twitter.com/dillonraphael"><img src="https://avatars0.githubusercontent.com/u/3496193?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dillon Raphael</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=dillonraphael" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=dillonraphael" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=dillonraphael" title="Tests">⚠️</a></td>
<td align="center"><a href="https://twitter.com/dillonraphael"><img src="https://avatars0.githubusercontent.com/u/3496193?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dillon Raphael</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=dillonraphael" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/clgeoio"><img src="https://avatars2.githubusercontent.com/u/37571416?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Cody G</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=clgeoio" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=clgeoio" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/madflow"><img src="https://avatars0.githubusercontent.com/u/183248?v=4?s=100" width="100px;" alt=""/><br /><sub><b>madflow</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=madflow" title="Documentation">📖</a></td>
<td align="center"><a href="https://twitter.com/nitaking_"><img src="https://avatars2.githubusercontent.com/u/10850034?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Satoshi Nitawaki</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=nitaking" title="Code">💻</a> <a href="#maintenance-nitaking" title="Maintenance">🚧</a> <a href="#question-nitaking" title="Answering Questions">💬</a> <a href="https://github.com/blitz-js/blitz/commits?author=nitaking" title="Documentation">📖</a></td>
@@ -409,12 +448,12 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
<td align="center"><a href="https://github.com/leggsimon"><img src="https://avatars2.githubusercontent.com/u/11544418?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Simon Legg</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=leggsimon" title="Documentation">📖</a></td>
<td align="center"><a href="https://robsoriano.com"><img src="https://avatars3.githubusercontent.com/u/13049130?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Robert Soriano</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=wobsoriano" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/benediktms"><img src="https://avatars2.githubusercontent.com/u/48836135?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Benedikt Schnatterbeck</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=benediktms" title="Code">💻</a></td>
<td align="center"><a href="http://taloranderson.com"><img src="https://avatars2.githubusercontent.com/u/11509865?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Talor Anderson</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Talor-A" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=Talor-A" title="Documentation">📖</a></td>
<td align="center"><a href="http://taloranderson.com"><img src="https://avatars2.githubusercontent.com/u/11509865?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Talor Anderson</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Talor-A" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/akirabaruah"><img src="https://avatars2.githubusercontent.com/u/6751517?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Akira Baruah</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=akirabaruah" title="Code">💻</a></td>
<td align="center"><a href="https://chriswray.dev/"><img src="https://avatars0.githubusercontent.com/u/53663762?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christopher Wray</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=cwray-tech" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/piotrski"><img src="https://avatars0.githubusercontent.com/u/244174?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Piotrek Tomczewski</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=piotrski" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=piotrski" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/piotrski"><img src="https://avatars0.githubusercontent.com/u/244174?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Piotrek Tomczewski</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=piotrski" title="Code">💻</a></td>
<td align="center"><a href="http://raph.site"><img src="https://avatars3.githubusercontent.com/u/1575946?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Raphaël Huchet</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=rap2hpoutre" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=rap2hpoutre" title="Tests">⚠️</a> <a href="https://github.com/blitz-js/blitz/commits?author=rap2hpoutre" title="Code">💻</a></td>
<td align="center"><a href="http://kattcorp.com"><img src="https://avatars1.githubusercontent.com/u/459267?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alex Johansson</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=KATT" title="Code">💻</a></td>
<td align="center"><a href="http://davidmazza.com"><img src="https://avatars0.githubusercontent.com/u/120893?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Mazza</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=dmzza" title="Code">💻</a></td>
@@ -477,7 +516,7 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
<td align="center"><a href="https://brianypliu.com"><img src="https://avatars.githubusercontent.com/u/3888780?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brian Liu</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=LBrian" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="http://aleksandra.codes"><img src="https://avatars.githubusercontent.com/u/9019397?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aleksandra Sikora</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=beerose" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=beerose" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=beerose" title="Tests">⚠️</a></td>
<td align="center"><a href="http://aleksandra.codes"><img src="https://avatars.githubusercontent.com/u/9019397?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aleksandra Sikora</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=beerose" title="Code">💻</a></td>
<td align="center"><a href="https://juanm04.com"><img src="https://avatars.githubusercontent.com/u/16712703?v=4?s=100" width="100px;" alt=""/><br /><sub><b>JuanM04</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=JuanM04" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=JuanM04" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=JuanM04" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/arenddeboer"><img src="https://avatars.githubusercontent.com/u/7022204?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Arend de Boer</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=arenddeboer" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/fmilani"><img src="https://avatars.githubusercontent.com/u/1580375?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Felipe Milani</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=fmilani" title="Documentation">📖</a></td>
@@ -518,7 +557,7 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
<td align="center"><a href="https://bhanuteja.dev/"><img src="https://avatars.githubusercontent.com/u/17903466?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bhanu Teja Pachipulusu</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=pbteja1998" title="Code">💻</a></td>
<td align="center"><a href="https://twitter.com/pavestru"><img src="https://avatars.githubusercontent.com/u/10186479?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pavel Struhar</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=pavestru" title="Code">💻</a></td>
<td align="center"><a href="https://in-thepink.com/"><img src="https://avatars.githubusercontent.com/u/42126368?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Reo Ishiyama</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=reo777" title="Code">💻</a></td>
<td align="center"><a href="https://macwright.com/"><img src="https://avatars.githubusercontent.com/u/32314?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tom MacWright</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=tmcw" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=tmcw" title="Tests">⚠️</a> <a href="https://github.com/blitz-js/blitz/commits?author=tmcw" title="Code">💻</a></td>
<td align="center"><a href="https://macwright.com/"><img src="https://avatars.githubusercontent.com/u/32314?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tom MacWright</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=tmcw" title="Documentation">📖</a></td>
<td align="center"><a href="https://francoisbest.com"><img src="https://avatars.githubusercontent.com/u/1174092?v=4?s=100" width="100px;" alt=""/><br /><sub><b>François Best</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=franky47" title="Code">💻</a></td>
</tr>
<tr>
@@ -594,174 +633,9 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
<td align="center"><a href="https://www.kevinpeters.net/about/"><img src="https://avatars.githubusercontent.com/u/12736734?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kevin Peters</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=igeligel" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="http://anolilab.de"><img src="https://avatars.githubusercontent.com/u/2716058?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Bannert</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=prisis" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=prisis" title="Documentation">📖</a></td>
<td align="center"><a href="http://anolilab.de"><img src="https://avatars.githubusercontent.com/u/2716058?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Bannert</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=prisis" title="Code">💻</a></td>
<td align="center"><a href="https://benjakugler96.github.io/"><img src="https://avatars.githubusercontent.com/u/53273645?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Benja Kugler</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=benjakugler96" title="Code">💻</a></td>
<td align="center"><a href="https://semeniuc.ml/"><img src="https://avatars.githubusercontent.com/u/3838856?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Eric Semeniuc</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=esemeniuc" title="Tests">⚠️</a> <a href="https://github.com/blitz-js/blitz/commits?author=esemeniuc" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/ricardo-rp"><img src="https://avatars.githubusercontent.com/u/30808767?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ricardo Romero</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=ricardo-rp" title="Documentation">📖</a></td>
<td align="center"><a href="exocortex.anothernode.com"><img src="https://avatars.githubusercontent.com/u/3286144?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Moritz Reiter</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=anothernode" title="Documentation">📖</a></td>
<td align="center"><a href="https://msich.dev"><img src="https://avatars.githubusercontent.com/u/38794918?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matt Sichterman</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=msichterman" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/medihack"><img src="https://avatars.githubusercontent.com/u/120626?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kai Schlamp</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=medihack" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=medihack" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://muyiwa.me"><img src="https://avatars.githubusercontent.com/u/6832244?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Muyiwa Olu</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=muyiwaolu" title="Code">💻</a></td>
<td align="center"><a href="http://2hr.me/"><img src="https://avatars.githubusercontent.com/u/4346154?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rabbi Hossain</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=rabbihossain" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/bravo-kernel"><img src="https://avatars.githubusercontent.com/u/230500?v=4?s=100" width="100px;" alt=""/><br /><sub><b>bravo-kernel</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=bravo-kernel" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=bravo-kernel" title="Documentation">📖</a></td>
<td align="center"><a href="https://samholmes.net"><img src="https://avatars.githubusercontent.com/u/8385528?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Holmes</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=sam3d" title="Code">💻</a></td>
<td align="center"><a href="https://doncicuto.medium.com"><img src="https://avatars.githubusercontent.com/u/30386061?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Miguel Cabrerizo</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=doncicuto" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=doncicuto" title="Documentation">📖</a></td>
<td align="center"><a href="http://zackhobson.com/"><img src="https://avatars.githubusercontent.com/u/12092?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Zack Hobson</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=zenhob" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=zenhob" title="Documentation">📖</a></td>
<td align="center"><a href="https://www.mokhtar.dev"><img src="https://avatars.githubusercontent.com/u/13026820?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mokhtar</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=m5r" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/kenkuan"><img src="https://avatars.githubusercontent.com/u/1924968?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ken Kuan</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=kenkuan" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/meehawk"><img src="https://avatars.githubusercontent.com/u/80167324?v=4?s=100" width="100px;" alt=""/><br /><sub><b>meehawk</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=meehawk" title="Code">💻</a></td>
<td align="center"><a href="rahulravindran.in"><img src="https://avatars.githubusercontent.com/u/10168946?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rahul Ravindran</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=ravindranrahul" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/s-r-x"><img src="https://avatars.githubusercontent.com/u/41614937?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ilya</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=s-r-x" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=s-r-x" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=s-r-x" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/hashimwarren"><img src="https://avatars.githubusercontent.com/u/6027587?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hashim Warren</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=hashimwarren" title="Documentation">📖</a></td>
<td align="center"><a href="https://damilolarandolph.com"><img src="https://avatars.githubusercontent.com/u/43427949?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Damilola Randolph</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=damilolarandolph" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/mwcampbell"><img src="https://avatars.githubusercontent.com/u/214820?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matt Campbell</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=mwcampbell" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/ratson"><img src="https://avatars.githubusercontent.com/u/2682937?v=4?s=100" width="100px;" alt=""/><br /><sub><b>(◕ᴥ◕)</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=ratson" title="Code">💻</a></td>
<td align="center"><a href="maciejmyslinski.com"><img src="https://avatars.githubusercontent.com/u/11421186?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mat Milbury</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=maciejmyslinski" title="Documentation">📖</a></td>
<td align="center"><a href="https://andreas.fyi"><img src="https://avatars.githubusercontent.com/u/8077469?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andreas Asprou</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=andreasasprou" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/kotx"><img src="https://avatars.githubusercontent.com/u/33439542?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kot</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=kotx" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=kotx" title="Tests">⚠️</a> <a href="https://github.com/blitz-js/blitz/commits?author=kotx" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/isaka1022"><img src="https://avatars.githubusercontent.com/u/28589716?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Amane</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=isaka1022" title="Documentation">📖</a></td>
<td align="center"><a href="johnleung.com"><img src="https://avatars.githubusercontent.com/u/20699?v=4?s=100" width="100px;" alt=""/><br /><sub><b>John Leung</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=fuzzthink" title="Documentation">📖</a></td>
<td align="center"><a href="roettgers.co"><img src="https://avatars.githubusercontent.com/u/29666239?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bruce</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=bcye" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/emilygracekz"><img src="https://avatars.githubusercontent.com/u/57361805?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Emily</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=emilygracekz" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/npverni"><img src="https://avatars.githubusercontent.com/u/3537?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nathan Verni</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=npverni" title="Documentation">📖</a></td>
<td align="center"><a href="https://davyengone.io"><img src="https://avatars.githubusercontent.com/u/4896002?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Davy Engone</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=davyengone" title="Documentation">📖</a></td>
<td align="center"><a href="https://fedeorlandau.dev/"><img src="https://avatars.githubusercontent.com/u/10283686?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Federico Joel Orlandau</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Fedeorlandau" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=Fedeorlandau" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/johnmurphy01"><img src="https://avatars.githubusercontent.com/u/2939548?v=4?s=100" width="100px;" alt=""/><br /><sub><b>John Murphy</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=johnmurphy01" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=johnmurphy01" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/martinsaxa"><img src="https://avatars.githubusercontent.com/u/33789474?v=4?s=100" width="100px;" alt=""/><br /><sub><b>martinsaxa</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=martinsaxa" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/ajwgeek"><img src="https://avatars.githubusercontent.com/u/2135600?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Austin Walhof</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=ajwgeek" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="g3offrey.dev"><img src="https://avatars.githubusercontent.com/u/11151445?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Geoffrey</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=g3offrey" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=g3offrey" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=g3offrey" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/keevan"><img src="https://avatars.githubusercontent.com/u/9924643?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kevin Pham</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=keevan" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/kimngan-bui"><img src="https://avatars.githubusercontent.com/u/20723478?v=4?s=100" width="100px;" alt=""/><br /><sub><b>kimngan-bui</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=kimngan-bui" title="Documentation">📖</a></td>
<td align="center"><a href="world.hey.com/bach"><img src="https://avatars.githubusercontent.com/u/11691670?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bahk Chanhee</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=9j" title="Code">💻</a></td>
<td align="center"><a href="http://www.afterecon.com/"><img src="https://avatars.githubusercontent.com/u/5559355?v=4?s=100" width="100px;" alt=""/><br /><sub><b>John Vandivier</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Vandivier" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=Vandivier" title="Tests">⚠️</a> <a href="https://github.com/blitz-js/blitz/commits?author=Vandivier" title="Documentation">📖</a></td>
<td align="center"><a href="http://namirsab.github.io"><img src="https://avatars.githubusercontent.com/u/6980777?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Namir</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=namirsab" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=namirsab" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=namirsab" title="Tests">⚠️</a></td>
<td align="center"><a href="https://twitter.com/scttcper"><img src="https://avatars.githubusercontent.com/u/1400464?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Scott Cooper</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=scttcper" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="abduttayyeb.github.io"><img src="https://avatars.githubusercontent.com/u/55306260?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Abduttayyeb M.r</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Abduttayyeb" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/maybebored"><img src="https://avatars.githubusercontent.com/u/20951181?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mayuran</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=maybebored" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/MuckHub"><img src="https://avatars.githubusercontent.com/u/54979136?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aleksei Vesselko</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=MuckHub" title="Documentation">📖</a></td>
<td align="center"><a href="https://p-siriphanthong.github.io/"><img src="https://avatars.githubusercontent.com/u/29949429?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Punn Siriphanthong</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=p-siriphanthong" title="Code">💻</a></td>
<td align="center"><a href="https://my-portfolio-292eb.web.app"><img src="https://avatars.githubusercontent.com/u/83679827?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Shawn Fetanat</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=shawn-fetanat" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/mochi-sann"><img src="https://avatars.githubusercontent.com/u/44772513?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Moyuru</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=mochi-sann" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=mochi-sann" title="Tests">⚠️</a> <a href="https://github.com/blitz-js/blitz/commits?author=mochi-sann" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/camsloanftc"><img src="https://avatars.githubusercontent.com/u/16295659?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Cam Sloan</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=camsloanftc" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://macieksitkowski.com"><img src="https://avatars.githubusercontent.com/u/58401630?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Maciek Sitkowski</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=sitek94" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/vivek7405"><img src="https://avatars.githubusercontent.com/u/24492244?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vivek</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=vivek7405" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=vivek7405" title="Code">💻</a></td>
<td align="center"><a href="http://cj.io"><img src="https://avatars.githubusercontent.com/u/1819?v=4?s=100" width="100px;" alt=""/><br /><sub><b>CJ Lazell</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=cj" title="Code">💻</a></td>
<td align="center"><a href="robertbroersma.com"><img src="https://avatars.githubusercontent.com/u/4519828?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Robert</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=RobertBroersma" title="Documentation">📖</a></td>
<td align="center"><a href="https://christianjensen.netlify.com"><img src="https://avatars.githubusercontent.com/u/12374723?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christian Jensen</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=cbejensen" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/dvnrsn"><img src="https://avatars.githubusercontent.com/u/9112811?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Devin Rasmussen</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=dvnrsn" title="Code">💻</a></td>
<td align="center"><a href="www.linkedin.com/in/devtom"><img src="https://avatars.githubusercontent.com/u/23282613?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Thomas Brenneur</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=devtombiz" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=devtombiz" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=devtombiz" title="Tests">⚠️</a></td>
</tr>
<tr>
<td align="center"><a href="https://lucasvazq.github.io/"><img src="https://avatars.githubusercontent.com/u/38964964?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lucas Vazquez</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=lucasvazq" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/chrisj-back2work"><img src="https://avatars.githubusercontent.com/u/68551954?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Chris Johnson</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=chrisj-back2work" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/thisdotrob"><img src="https://avatars.githubusercontent.com/u/12902589?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rob Stevenson</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=thisdotrob" title="Documentation">📖</a></td>
<td align="center"><a href="www.lucas.computer"><img src="https://avatars.githubusercontent.com/u/1363056?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lucas Heymès</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=lovethebomb" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=lovethebomb" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/NorfeldtAbtion"><img src="https://avatars.githubusercontent.com/u/53769763?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lasse Norfeldt</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=NorfeldtAbtion" title="Documentation">📖</a></td>
<td align="center"><a href="https://nyaripeter.hu/"><img src="https://avatars.githubusercontent.com/u/6048614?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Péter Nyári</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=netwarex" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=netwarex" title="Code">💻</a></td>
<td align="center"><a href="https://www.holgerfrohloff.de"><img src="https://avatars.githubusercontent.com/u/84148?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Holger Frohloff</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=5minpause" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/basilk76"><img src="https://avatars.githubusercontent.com/u/45275512?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Basil Khan</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=basilk76" title="Documentation">📖</a></td>
<td align="center"><a href="https://danestves.com/"><img src="https://avatars.githubusercontent.com/u/31737273?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Esteves</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=danestves" title="Documentation">📖</a></td>
<td align="center"><a href="http://www.bitnative.com"><img src="https://avatars.githubusercontent.com/u/1688997?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Cory House</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=coryhouse" title="Documentation">📖</a></td>
<td align="center"><a href="https://auspham.dev/"><img src="https://avatars.githubusercontent.com/u/16440123?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Austin (Thang Pham)</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=rockmanvnx6" title="Documentation">📖</a></td>
<td align="center"><a href="https://jammeryhq.com"><img src="https://avatars.githubusercontent.com/u/521777?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marcus Reinhardt</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=noxify" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=noxify" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/davidchristie"><img src="https://avatars.githubusercontent.com/u/12044333?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Christie</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=davidchristie" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/ajanth97"><img src="https://avatars.githubusercontent.com/u/50458502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ajanth</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=ajanth97" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/divpreet"><img src="https://avatars.githubusercontent.com/u/2805650?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Div</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=divpreet" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/david-arteaga"><img src="https://avatars.githubusercontent.com/u/7199015?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Arteaga</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=david-arteaga" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/MukulKolpe"><img src="https://avatars.githubusercontent.com/u/78664749?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mukul Kolpe</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=MukulKolpe" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/skotchpine"><img src="https://avatars.githubusercontent.com/u/13043909?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tyler</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=skotchpine" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/SofianeDjellouli"><img src="https://avatars.githubusercontent.com/u/38258952?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sofiane Djellouli</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=SofianeDjellouli" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/kreako"><img src="https://avatars.githubusercontent.com/u/65113001?v=4?s=100" width="100px;" alt=""/><br /><sub><b>kreako</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=kreako" title="Documentation">📖</a></td>
<td align="center"><a href="https://sarahdayan.dev"><img src="https://avatars.githubusercontent.com/u/5370675?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sarah Dayan</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=sarahdayan" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/c-ciobanu"><img src="https://avatars.githubusercontent.com/u/33382714?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Cristi Ciobanu</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=c-ciobanu" title="Documentation">📖</a></td>
<td align="center"><a href="https://arpitdalal.dev"><img src="https://avatars.githubusercontent.com/u/61059807?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Arpit Dalal</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=arpitdalal" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/robertrisch"><img src="https://avatars.githubusercontent.com/u/73828816?v=4?s=100" width="100px;" alt=""/><br /><sub><b>robertrisch</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=robertrisch" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/saadaltabari"><img src="https://avatars.githubusercontent.com/u/29986512?v=4?s=100" width="100px;" alt=""/><br /><sub><b>saadaltabari</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=saadaltabari" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=saadaltabari" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/iojcde"><img src="https://avatars.githubusercontent.com/u/31413538?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeeho Ahn</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=iojcde" title="Documentation">📖</a> <a href="#tool-iojcde" title="Tools">🔧</a> <a href="https://github.com/blitz-js/blitz/commits?author=iojcde" title="Code">💻</a></td>
<td align="center"><a href="https://linkedin.com/in/ryanwashburne"><img src="https://avatars.githubusercontent.com/u/12566087?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ryan Washburne</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=ryanwashburne" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/sherryxiao1988"><img src="https://avatars.githubusercontent.com/u/1202426?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Shundan Xiao</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=sherryxiao1988" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/tommywong-dev"><img src="https://avatars.githubusercontent.com/u/79971095?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tommywong-dev</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=tommywong-dev" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/datner"><img src="https://avatars.githubusercontent.com/u/22598347?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Datner</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=datner" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=datner" title="Code">💻</a></td>
<td align="center"><a href="https://chaiwattsw.com/"><img src="https://avatars.githubusercontent.com/u/30198386?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Chaiwat Trisuwan</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=chaiwattsw" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=chaiwattsw" title="Code">💻</a></td>
<td align="center"><a href="oltdaniel.eu"><img src="https://avatars.githubusercontent.com/u/53529846?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Oltmanns</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=oltdaniel" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=oltdaniel" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/edrickleong"><img src="https://avatars.githubusercontent.com/u/10529706?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Edrick Leong</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=edrickleong" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=edrickleong" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=edrickleong" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/siddhsuresh"><img src="https://avatars.githubusercontent.com/u/83594610?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Siddharth Suresh</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=siddhsuresh" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=siddhsuresh" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=siddhsuresh" title="Tests">⚠️</a> <a href="#maintenance-siddhsuresh" title="Maintenance">🚧</a></td>
<td align="center"><a href="http://jins.dev"><img src="https://avatars.githubusercontent.com/u/39466936?v=4?s=100" width="100px;" alt=""/><br /><sub><b>JH.Lee</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=orionmiz" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=orionmiz" title="Tests">⚠️</a> <a href="#maintenance-orionmiz" title="Maintenance">🚧</a> <a href="https://github.com/blitz-js/blitz/commits?author=orionmiz" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/corydeppen"><img src="https://avatars.githubusercontent.com/u/313264?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Cory Deppen</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=corydeppen" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/oloost"><img src="https://avatars.githubusercontent.com/u/72395941?v=4?s=100" width="100px;" alt=""/><br /><sub><b>oloost</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=oloost" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/janvennemann"><img src="https://avatars.githubusercontent.com/u/1406024?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jan Vennemann</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=janvennemann" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=janvennemann" title="Code">💻</a></td>
<td align="center"><a href="https://kevinjones.engineer"><img src="https://avatars.githubusercontent.com/u/20748598?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kevin Jones</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=joneskj55" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/paulm17"><img src="https://avatars.githubusercontent.com/u/387463?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Paul</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=paulm17" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=paulm17" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=paulm17" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/selcukfatihsevinc"><img src="https://avatars.githubusercontent.com/u/384836?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Selçuk Fatih Sevinç</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=selcukfatihsevinc" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=selcukfatihsevinc" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/usamaster"><img src="https://avatars.githubusercontent.com/u/5255330?v=4?s=100" width="100px;" alt=""/><br /><sub><b>usamaster</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=usamaster" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="a11rew.dev"><img src="https://avatars.githubusercontent.com/u/87580113?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrew Glago</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=a11rew" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=a11rew" title="Code">💻</a></td>
<td align="center"><a href="http://tobiasjordans.de"><img src="https://avatars.githubusercontent.com/u/111561?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tobias</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=tordans" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=tordans" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=tordans" title="Tests">⚠️</a></td>
<td align="center"><a href="https://www.linkedin.com/in/iagor-moraes/"><img src="https://avatars.githubusercontent.com/u/13892132?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Iagor Moraes</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=iagormoraes" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=iagormoraes" title="Code">💻</a></td>
<td align="center"><a href="https://twitter.com/trensik"><img src="https://avatars.githubusercontent.com/u/18584155?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dawid Urbaniak</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Trancever" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=Trancever" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/jhonnymichel"><img src="https://avatars.githubusercontent.com/u/7006387?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jhonny Michel</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=jhonnymichel" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=jhonnymichel" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=jhonnymichel" title="Tests">⚠️</a></td>
<td align="center"><a href="sweetliquid.me"><img src="https://avatars.githubusercontent.com/u/18693190?v=4?s=100" width="100px;" alt=""/><br /><sub><b>sweetliquid</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=sweetliquid" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/exKAZUu"><img src="https://avatars.githubusercontent.com/u/436237?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sakamoto, Kazunori</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=exKAZUu" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=exKAZUu" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/jeliasson"><img src="https://avatars.githubusercontent.com/u/865493?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Johan Eliasson</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=jeliasson" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/jafarlihi"><img src="https://avatars.githubusercontent.com/u/43515211?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hikmat Jafarli</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=jafarlihi" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=jafarlihi" title="Code">💻</a></td>
<td align="center"><a href="https://maotoramm.com"><img src="https://avatars.githubusercontent.com/u/5174884?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Maotora ᕙ(⇀‸↼‶)ᕗ</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=maotora" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=maotora" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/vitaliemiron"><img src="https://avatars.githubusercontent.com/u/45145592?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vitalie</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=vitaliemiron" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=vitaliemiron" title="Code">💻</a></td>
<td align="center"><a href="https://estevao.org"><img src="https://avatars.githubusercontent.com/u/19409687?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nelson Estevão</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=nelsonmestevao" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=nelsonmestevao" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/dbrxnds"><img src="https://avatars.githubusercontent.com/u/32268383?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=dbrxnds" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=dbrxnds" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=dbrxnds" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/gjmoed"><img src="https://avatars.githubusercontent.com/u/4458993?v=4?s=100" width="100px;" alt=""/><br /><sub><b>G.J. Moed</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=gjmoed" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=gjmoed" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://ghken.com"><img src="https://avatars.githubusercontent.com/u/5304351?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tetsuya Fukuda</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=GHKEN" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=GHKEN" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/nerixim"><img src="https://avatars.githubusercontent.com/u/26106502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nikita Kamaev</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=nerixim" title="Documentation">📖</a></td>
<td align="center"><a href="https://webredone.com/"><img src="https://avatars.githubusercontent.com/u/11588823?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nikola Ivanov</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=nikola-wd" title="Documentation">📖</a></td>
<td align="center"><a href="jayu.dev"><img src="https://avatars.githubusercontent.com/u/11561585?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jakub Mazurek</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=jayu" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=jayu" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/maciej-ka"><img src="https://avatars.githubusercontent.com/u/5403694?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Maciej Kasprzyk</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=maciej-ka" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=maciej-ka" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/justinsmid"><img src="https://avatars.githubusercontent.com/u/34271675?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Justin Smid</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=justinsmid" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=justinsmid" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/rodobre"><img src="https://avatars.githubusercontent.com/u/52138375?v=4?s=100" width="100px;" alt=""/><br /><sub><b>rodobre</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=rodobre" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=rodobre" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/Zamfi99"><img src="https://avatars.githubusercontent.com/u/19189337?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Zamfira Costin-Andrei</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Zamfi99" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=Zamfi99" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/potikhanovsergey"><img src="https://avatars.githubusercontent.com/u/71494201?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sergey</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=potikhanovsergey" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/papsavas"><img src="https://avatars.githubusercontent.com/u/50584606?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Savvas Papageorgiadis</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=papsavas" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=papsavas" title="Code">💻</a></td>
<td align="center"><a href="https://flow-office.eu/"><img src="https://avatars.githubusercontent.com/u/77194479?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Leonidas</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=LeonMueller-OneAndOnly" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=LeonMueller-OneAndOnly" title="Code">💻</a></td>
<td align="center"><a href="https://hacknex.us"><img src="https://avatars.githubusercontent.com/u/19937034?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Doc0x1</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=Doc0x1" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=Doc0x1" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/lmisea"><img src="https://avatars.githubusercontent.com/u/106825636?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Luis Isea</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=lmisea" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=lmisea" title="Code">💻</a></td>
<td align="center"><a href="https://www.gengjiawen.com"><img src="https://avatars.githubusercontent.com/u/3759816?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jiawen Geng</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=gengjiawen" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=gengjiawen" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://timn.tech"><img src="https://avatars.githubusercontent.com/u/6324199?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tim Neutkens</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=timneutkens" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=timneutkens" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=timneutkens" title="Tests">⚠️</a></td>
<td align="center"><a href="https://redyetidev.github.io"><img src="https://avatars.githubusercontent.com/u/38299977?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aviv Keller</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=RedYetiDev" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/bezalel6"><img src="https://avatars.githubusercontent.com/u/51681171?v=4?s=100" width="100px;" alt=""/><br /><sub><b>bezalel6</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=bezalel6" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=bezalel6" title="Code">💻</a></td>
<td align="center"><a href="cherniavskii.com"><img src="https://avatars.githubusercontent.com/u/13808724?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrew Cherniavskii</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=cherniavskii" title="Documentation">📖</a></td>
<td align="center"><a href="https://danielidoko-r3zt.vercel.app/"><img src="https://avatars.githubusercontent.com/u/95912955?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Idoko</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=doe-base" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=doe-base" title="Code">💻</a> <a href="https://github.com/blitz-js/blitz/commits?author=doe-base" title="Tests">⚠️</a></td>
<td align="center"><a href="https://garyfung.medium.com"><img src="https://avatars.githubusercontent.com/u/3803466?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gary Fung</b></sub></a><br /><a href="https://github.com/blitz-js/blitz/commits?author=fungilation" title="Documentation">📖</a> <a href="https://github.com/blitz-js/blitz/commits?author=fungilation" title="Code">💻</a></td>
</tr>
</table>

View File

@@ -7,3 +7,4 @@ TODO
## Reporting a Vulnerability
Email Brandon Bayer at b@bayer.ws to report a vulnerablity, and he will follow up with you asap.

3
__mocks__/fs.js Normal file
View File

@@ -0,0 +1,3 @@
const {fs} = require("memfs")
module.exports = fs

View File

@@ -1,7 +0,0 @@
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
DATABASE_URL="file:./dev.db"

View File

@@ -1,3 +0,0 @@
{
"extends": "next/core-web-vitals"
}

View File

@@ -1,38 +0,0 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env*.local
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
.vscode

View File

@@ -1,638 +0,0 @@
# next-blitz-auth
## 0.1.16
### Patch Changes
- Updated dependencies [ce23d4ed0]
- @blitzjs/next@2.1.4
- blitz@2.1.4
- @blitzjs/auth@2.1.4
- @blitzjs/rpc@2.1.4
- @blitzjs/config@2.1.4
## 0.1.15
### Patch Changes
- Updated dependencies [0b3286468]
- Updated dependencies [50f17d21c]
- @blitzjs/auth@2.1.3
- @blitzjs/next@2.1.3
- @blitzjs/rpc@2.1.3
- blitz@2.1.3
- @blitzjs/config@2.1.3
## 0.1.14
### Patch Changes
- blitz@2.1.2
- @blitzjs/auth@2.1.2
- @blitzjs/next@2.1.2
- @blitzjs/rpc@2.1.2
- @blitzjs/config@2.1.2
## 0.1.13
### Patch Changes
- Updated dependencies [9a0ba87d1]
- @blitzjs/rpc@2.1.1
- blitz@2.1.1
- @blitzjs/next@2.1.1
- @blitzjs/auth@2.1.1
- @blitzjs/config@2.1.1
## 0.1.12
### Patch Changes
- Updated dependencies [d53da39cb]
- Updated dependencies [3b10b13e6]
- blitz@2.1.0
- @blitzjs/auth@2.1.0
- @blitzjs/next@2.1.0
- @blitzjs/rpc@2.1.0
- @blitzjs/config@2.1.0
## 0.1.11
### Patch Changes
- Updated dependencies [318e9740d]
- @blitzjs/auth@2.0.10
- blitz@2.0.10
- @blitzjs/rpc@2.0.10
- @blitzjs/next@2.0.10
- @blitzjs/config@2.0.10
## 0.1.10
### Patch Changes
- Updated dependencies [5a14306f7]
- @blitzjs/next@2.0.9
- @blitzjs/rpc@2.0.9
- blitz@2.0.9
- @blitzjs/auth@2.0.9
- @blitzjs/config@2.0.9
## 0.1.9
### Patch Changes
- Updated dependencies [5e61a1681]
- Updated dependencies [77555468f]
- @blitzjs/next@2.0.8
- blitz@2.0.8
- @blitzjs/auth@2.0.8
- @blitzjs/rpc@2.0.8
- @blitzjs/config@2.0.8
## 0.1.8
### Patch Changes
- Updated dependencies [ee7bf87ec]
- Updated dependencies [178c152b2]
- blitz@2.0.7
- @blitzjs/next@2.0.7
- @blitzjs/rpc@2.0.7
- @blitzjs/auth@2.0.7
- @blitzjs/config@2.0.7
## 0.1.7
### Patch Changes
- Updated dependencies [76a2544f9]
- Updated dependencies [5a587a6c3]
- blitz@2.0.6
- @blitzjs/auth@2.0.6
- @blitzjs/next@2.0.6
- @blitzjs/rpc@2.0.6
- @blitzjs/config@2.0.6
## 0.1.6
### Patch Changes
- Updated dependencies [6f54841b7]
- Updated dependencies [8a417533f]
- @blitzjs/auth@2.0.5
- blitz@2.0.5
- @blitzjs/rpc@2.0.5
- @blitzjs/next@2.0.5
- @blitzjs/config@2.0.5
## 0.1.5
### Patch Changes
- Updated dependencies [dd604c767]
- Updated dependencies [28a79040e]
- @blitzjs/auth@2.0.4
- blitz@2.0.4
- @blitzjs/next@2.0.4
- @blitzjs/rpc@2.0.4
- @blitzjs/config@2.0.4
## 0.1.4
### Patch Changes
- Updated dependencies [2f5c8a3a0]
- @blitzjs/next@2.0.3
- @blitzjs/rpc@2.0.3
- blitz@2.0.3
- @blitzjs/auth@2.0.3
- @blitzjs/config@2.0.3
## 0.1.3
### Patch Changes
- Updated dependencies [e8fd12e4f]
- @blitzjs/rpc@2.0.2
- blitz@2.0.2
- @blitzjs/next@2.0.2
- @blitzjs/auth@2.0.2
- @blitzjs/config@2.0.2
## 0.1.2
### Patch Changes
- Updated dependencies [8782aae64]
- blitz@2.0.1
- @blitzjs/auth@2.0.1
- @blitzjs/next@2.0.1
- @blitzjs/rpc@2.0.1
- @blitzjs/config@2.0.1
## 0.1.1
### Patch Changes
- Updated dependencies [db7233db6]
- Updated dependencies [1569bd53e]
- Updated dependencies [cee2dec17]
- Updated dependencies [c5c727cb6]
- Updated dependencies [5166e5e03]
- Updated dependencies [72a4e594a]
- Updated dependencies [9db6c8855]
- Updated dependencies [1e1bb73b2]
- Updated dependencies [83b355900]
- Updated dependencies [4cad9cca2]
- Updated dependencies [c1e004063]
- Updated dependencies [365e67094]
- Updated dependencies [fd31e56bc]
- Updated dependencies [74a14b704]
- Updated dependencies [eda14fa8a]
- Updated dependencies [aec1bb076]
- Updated dependencies [a3c92cb86]
- Updated dependencies [270361886]
- Updated dependencies [c721c104d]
- Updated dependencies [82649f341]
- Updated dependencies [072929109]
- Updated dependencies [f397cc203]
- Updated dependencies [cadefb88e]
- Updated dependencies [271c58ac6]
- Updated dependencies [8f166a5db]
- Updated dependencies [8c247e26e]
- Updated dependencies [c5572bec6]
- Updated dependencies [69fb28034]
- Updated dependencies [86e8eb7c8]
- Updated dependencies [99205f52d]
- Updated dependencies [3f20a4740]
- Updated dependencies [82e8b64f5]
- Updated dependencies [6ece09613]
- Updated dependencies [9c2e7d372]
- Updated dependencies [928e840b5]
- Updated dependencies [9631c4583]
- Updated dependencies [6f18cbdc9]
- Updated dependencies [acc07ce94]
- Updated dependencies [ea7561b8e]
- Updated dependencies [1436e7618]
- Updated dependencies [2533caf48]
- Updated dependencies [696f48c4e]
- Updated dependencies [d98e4bac4]
- Updated dependencies [90f1741da]
- Updated dependencies [4a9aa9f7f]
- Updated dependencies [d692b4c1d]
- Updated dependencies [638f2319b]
- Updated dependencies [c213d521c]
- Updated dependencies [7817fe3a8]
- Updated dependencies [0e762fb55]
- Updated dependencies [9529dbd6f]
- Updated dependencies [3b213a35b]
- Updated dependencies [8b01175b4]
- Updated dependencies [3d004dc41]
- Updated dependencies [5ea068b28]
- Updated dependencies [1d863f352]
- Updated dependencies [8b4bf999c]
- Updated dependencies [1476a577b]
- Updated dependencies [a6e81f156]
- Updated dependencies [cacb65d63]
- Updated dependencies [ae0b714f6]
- Updated dependencies [c7ac86b85]
- Updated dependencies [d9fc5d8e2]
- Updated dependencies [ccb1af8d0]
- Updated dependencies [630c71812]
- Updated dependencies [bf1b2c824]
- Updated dependencies [240f3f347]
- Updated dependencies [55b1cb204]
- Updated dependencies [1742eb45d]
- Updated dependencies [54db8a46d]
- Updated dependencies [962eb58af]
- Updated dependencies [54a66a95d]
- Updated dependencies [9fe0cc546]
- Updated dependencies [55a43ce1f]
- Updated dependencies [0b94a4503]
- Updated dependencies [af58e2b23]
- Updated dependencies [78fd5c489]
- Updated dependencies [62bf12b5c]
- Updated dependencies [6ff9ec0d7]
- Updated dependencies [09e0c68db]
- Updated dependencies [abb1ad5d1]
- Updated dependencies [3a602b613]
- Updated dependencies [ceb7db274]
- Updated dependencies [2ade7268e]
- Updated dependencies [0edeaa37a]
- Updated dependencies [7b63f0f1f]
- Updated dependencies [03bad3175]
- Updated dependencies [f0ca738d5]
- Updated dependencies [bee19a259]
- Updated dependencies [0936cb38a]
- Updated dependencies [c11f0401c]
- Updated dependencies [989691ec8]
- Updated dependencies [4d7d126d9]
- Updated dependencies [8e5903c0f]
- Updated dependencies [30fd61316]
- Updated dependencies [6f4349896]
- Updated dependencies [942536d9a]
- Updated dependencies [666a3ae3e]
- Updated dependencies [a80d2a8f7]
- Updated dependencies [f6dac093d]
- Updated dependencies [3ddb57072]
- Updated dependencies [4e26ae21b]
- Updated dependencies [abe2afccd]
- Updated dependencies [da17cc8a2]
- Updated dependencies [b84c5bedb]
- Updated dependencies [a6f32d1d0]
- Updated dependencies [b97366c42]
- Updated dependencies [348fd6f5e]
- Updated dependencies [1bb3a6556]
- Updated dependencies [3bcbad1a9]
- Updated dependencies [0a8b0cb35]
- Updated dependencies [8490b0724]
- Updated dependencies [9ded8dacb]
- Updated dependencies [19898a488]
- Updated dependencies [93851d90c]
- Updated dependencies [f84d77a42]
- Updated dependencies [6811eab1a]
- Updated dependencies [a7e37c58d]
- Updated dependencies [20fc9f80f]
- Updated dependencies [8dedca1a2]
- Updated dependencies [3511d5b69]
- Updated dependencies [46a34c7b3]
- Updated dependencies [e82a79be5]
- Updated dependencies [890b0c0c9]
- Updated dependencies [11b548ede]
- Updated dependencies [ed2b0e22c]
- Updated dependencies [430f6ec78]
- Updated dependencies [df7cee84a]
- Updated dependencies [adabb11a0]
- Updated dependencies [38d945a3f]
- Updated dependencies [c3c789740]
- Updated dependencies [240f378b5]
- Updated dependencies [df3265b85]
- Updated dependencies [89bf993a1]
- Updated dependencies [2150dcc3e]
- Updated dependencies [0f4926fd1]
- Updated dependencies [3f9fe8f04]
- Updated dependencies [8aee25c58]
- Updated dependencies [fe8c937d2]
- Updated dependencies [0ac6e1712]
- Updated dependencies [c0a3b1ee3]
- Updated dependencies [5c5decbce]
- Updated dependencies [dc694cf1c]
- Updated dependencies [e5cd2c862]
- Updated dependencies [807a2b564]
- Updated dependencies [97469a126]
- Updated dependencies [931156c35]
- Updated dependencies [650a157e1]
- Updated dependencies [1d9804a61]
- Updated dependencies [41608c4c3]
- Updated dependencies [a0596279b]
- Updated dependencies [88caa18e6]
- Updated dependencies [022392c12]
- Updated dependencies [17ce29e5e]
- Updated dependencies [f52ca398e]
- Updated dependencies [c126b8191]
- Updated dependencies [c9cf7adc3]
- Updated dependencies [1b798d9a0]
- Updated dependencies [0f18c68d6]
- Updated dependencies [ea7561b8e]
- Updated dependencies [6ab9db780]
- Updated dependencies [727734955]
- Updated dependencies [80e1ead7c]
- Updated dependencies [f39ba1ff1]
- Updated dependencies [161270e3b]
- Updated dependencies [bec9512e3]
- Updated dependencies [b6b9a1c5a]
- Updated dependencies [1436e7618]
- Updated dependencies [1c809094f]
- Updated dependencies [145d5a02b]
- Updated dependencies [8bcb471a5]
- Updated dependencies [a3e6c49c4]
- Updated dependencies [490280240]
- Updated dependencies [15d22af24]
- Updated dependencies [454591293]
- Updated dependencies [6e88a847f]
- Updated dependencies [0025856b9]
- Updated dependencies [2073714f8]
- Updated dependencies [716e188d1]
- Updated dependencies [d87288a2e]
- Updated dependencies [8aa22a0b2]
- Updated dependencies [37aeaa7fa]
- Updated dependencies [b918055bf]
- Updated dependencies [aa34661fa]
- Updated dependencies [61888d1a3]
- Updated dependencies [dd5f51744]
- Updated dependencies [ce4536833]
- Updated dependencies [9ada0f666]
- Updated dependencies [fb32903bf]
- Updated dependencies [b33db0828]
- Updated dependencies [f15a51901]
- Updated dependencies [10f98c681]
- Updated dependencies [42a2cf951]
- Updated dependencies [9674efc0b]
- Updated dependencies [8e0c9d76b]
- Updated dependencies [9620ef6b1]
- Updated dependencies [d5b8faa86]
- Updated dependencies [a3bbe6ce3]
- Updated dependencies [b493c93f8]
- Updated dependencies [3b213a35b]
- Updated dependencies [8d9ea00e1]
- Updated dependencies [e2c18895d]
- Updated dependencies [00bd849ee]
- Updated dependencies [ffa7b5ccc]
- Updated dependencies [1f6b0b54c]
- Updated dependencies [527e48ac3]
- Updated dependencies [01f3a03ea]
- Updated dependencies [dfd2408e9]
- Updated dependencies [b0c21b070]
- Updated dependencies [25f4526f7]
- Updated dependencies [31d7a6f41]
- Updated dependencies [2cc888eff]
- Updated dependencies [29c2b029a]
- Updated dependencies [713aead93]
- blitz@2.0.0
- @blitzjs/auth@2.0.0
- @blitzjs/next@2.0.0
- @blitzjs/rpc@2.0.0
- @blitzjs/config@2.0.0
## 0.1.1-beta.13
### Patch Changes
- Updated dependencies [86e8eb7c8]
- Updated dependencies [b84c5bedb]
- Updated dependencies [e5cd2c862]
- @blitzjs/rpc@2.0.0-beta.37
- blitz@2.0.0-beta.37
- @blitzjs/auth@2.0.0-beta.37
- @blitzjs/next@2.0.0-beta.37
- @blitzjs/config@2.0.0-beta.37
## 0.1.1-beta.12
### Patch Changes
- Updated dependencies [09e0c68db]
- @blitzjs/auth@2.0.0-beta.36
- blitz@2.0.0-beta.36
- @blitzjs/rpc@2.0.0-beta.36
- @blitzjs/next@2.0.0-beta.36
- @blitzjs/config@2.0.0-beta.36
## 0.1.1-beta.11
### Patch Changes
- Updated dependencies [cee2dec17]
- Updated dependencies [aec1bb076]
- Updated dependencies [b97366c42]
- Updated dependencies [3bcbad1a9]
- @blitzjs/auth@2.0.0-beta.35
- blitz@2.0.0-beta.35
- @blitzjs/next@2.0.0-beta.35
- @blitzjs/rpc@2.0.0-beta.35
- @blitzjs/config@2.0.0-beta.35
## 0.1.1-beta.10
### Patch Changes
- Updated dependencies [30fd61316]
- Updated dependencies [3ddb57072]
- Updated dependencies [fe8c937d2]
- blitz@2.0.0-beta.34
- @blitzjs/auth@2.0.0-beta.34
- @blitzjs/next@2.0.0-beta.34
- @blitzjs/rpc@2.0.0-beta.34
- @blitzjs/config@2.0.0-beta.34
## 0.1.1-beta.9
### Patch Changes
- Updated dependencies [19898a488]
- Updated dependencies [6811eab1a]
- Updated dependencies [022392c12]
- @blitzjs/rpc@2.0.0-beta.33
- blitz@2.0.0-beta.33
- @blitzjs/next@2.0.0-beta.33
- @blitzjs/auth@2.0.0-beta.33
- @blitzjs/config@2.0.0-beta.33
## 0.1.1-beta.8
### Patch Changes
- Updated dependencies [82649f341]
- Updated dependencies [8b01175b4]
- blitz@2.0.0-beta.32
- @blitzjs/next@2.0.0-beta.32
- @blitzjs/auth@2.0.0-beta.32
- @blitzjs/rpc@2.0.0-beta.32
- @blitzjs/config@2.0.0-beta.32
## 0.1.1-beta.7
### Patch Changes
- Updated dependencies [90f1741da]
- Updated dependencies [df3265b85]
- @blitzjs/auth@2.0.0-beta.31
- blitz@2.0.0-beta.31
- @blitzjs/rpc@2.0.0-beta.31
- @blitzjs/next@2.0.0-beta.31
- @blitzjs/config@2.0.0-beta.31
## 0.1.1-beta.6
### Patch Changes
- Updated dependencies [c5572bec6]
- Updated dependencies [727734955]
- @blitzjs/auth@2.0.0-beta.30
- blitz@2.0.0-beta.30
- @blitzjs/rpc@2.0.0-beta.30
- @blitzjs/next@2.0.0-beta.30
- @blitzjs/config@2.0.0-beta.30
## 0.1.1-beta.5
### Patch Changes
- Updated dependencies [b6b9a1c5a]
- Updated dependencies [61888d1a3]
- @blitzjs/auth@2.0.0-beta.29
- blitz@2.0.0-beta.29
- @blitzjs/rpc@2.0.0-beta.29
- @blitzjs/next@2.0.0-beta.29
- @blitzjs/config@2.0.0-beta.29
## 0.1.1-beta.4
### Patch Changes
- Updated dependencies [5166e5e03]
- Updated dependencies [2533caf48]
- Updated dependencies [c7ac86b85]
- Updated dependencies [1bb3a6556]
- @blitzjs/auth@2.0.0-beta.28
- @blitzjs/next@2.0.0-beta.28
- @blitzjs/rpc@2.0.0-beta.28
- blitz@2.0.0-beta.28
- @blitzjs/config@2.0.0-beta.28
## 0.1.1-beta.3
### Patch Changes
- Updated dependencies [eda14fa8a]
- Updated dependencies [3d004dc41]
- Updated dependencies [29c2b029a]
- @blitzjs/next@2.0.0-beta.27
- @blitzjs/rpc@2.0.0-beta.27
- @blitzjs/auth@2.0.0-beta.27
- blitz@2.0.0-beta.27
- @blitzjs/config@2.0.0-beta.27
## 0.1.1-beta.2
### Patch Changes
- Updated dependencies [e82a79be5]
- Updated dependencies [38d945a3f]
- @blitzjs/auth@2.0.0-beta.26
- @blitzjs/next@2.0.0-beta.26
- @blitzjs/rpc@2.0.0-beta.26
- blitz@2.0.0-beta.26
- @blitzjs/config@2.0.0-beta.26
## 0.1.1-beta.1
### Patch Changes
- Updated dependencies [f84d77a42]
- @blitzjs/rpc@2.0.0-beta.25
- @blitzjs/next@2.0.0-beta.25
- @blitzjs/auth@2.0.0-beta.25
- @blitzjs/config@2.0.0-beta.25
- blitz@2.0.0-beta.25
## 0.1.1-beta.0
### Patch Changes
- 37aeaa7fa: feature: Nextjs 13 App Directory Utility Methods
### 🔧 New Blitz Auth Hook `useAuthenticatedBlitzContext`
This hook is implemented as the replacement of the [`BlitzPage` seurity auth utilities](https://blitzjs.com/docs/authorization#secure-your-pages) provided for the pages directory to work with React Server Components in the Nextjs 13 app directory
It can be used in any asynchronous server component be it in `page.ts` or in the layouts in `layout.ts`
It uses the new [`redirect` function](https://beta.nextjs.org/docs/api-reference/redirect) to provide the required authorization in server side
#### API
```ts
useAuthenticatedBlitzContext({
redirectTo,
redirectAuthenticatedTo,
role,
}: {
redirectTo?: string | RouteUrlObject
redirectAuthenticatedTo?: string | RouteUrlObject | ((ctx: Ctx) => string | RouteUrlObject)
role?: string | string[]
}): Promise<void>
```
#### Usage
**Example Usage in React Server Component in `app` directory in Next 13**
```ts
import {getAppSession, useAuthenticatedBlitzContext} from "src/blitz-server"
...
await useAuthenticatedBlitzContext({
redirectTo: "/auth/login",
role: ["admin"],
redirectAuthenticatedTo: "/dashboard",
})
```
### 🔧 New Blitz RPC Hook `invokeResolver`
#### API
```ts
invokeResolver<T extends (...args: any) => any, TInput = FirstParam<T>>(
queryFn: T,
params: TInput,
): Promise<PromiseReturnType<T>>
```
#### Example Usage
```ts
...
import {invokeResolver, useAuthenticatedBlitzContext} from "../src/blitz-server"
import getCurrentUser from "../src/users/queries/getCurrentUser"
export default async function Home() {
await useAuthenticatedBlitzContext({
redirectTo: "/auth/login",
})
const user = await invokeResolver(getCurrentUser, null)
...
```
- Updated dependencies [cadefb88e]
- Updated dependencies [6f18cbdc9]
- Updated dependencies [acc07ce94]
- Updated dependencies [ea7561b8e]
- Updated dependencies [9529dbd6f]
- Updated dependencies [ea7561b8e]
- Updated dependencies [6e88a847f]
- Updated dependencies [37aeaa7fa]
- blitz@2.0.0-beta.24
- @blitzjs/auth@2.0.0-beta.24
- @blitzjs/next@2.0.0-beta.24
- @blitzjs/rpc@2.0.0-beta.24
- @blitzjs/config@2.0.0-beta.24

View File

@@ -1,26 +0,0 @@
# Next.js 13 + Blitz Auth
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) + [`Blitz Auth`](https://blitzjs.com/docs/auth).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can go to the `/signup` page and create a new account.
## Learn More
To learn more about Next.js and Blitz.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Blitz.js Documentation](https://blitzjs.com/docs/) — learn about Blitz.js.
- [Blitz Auth Documentation](https://blitzjs.com/docs/auth) — learn about Blitz Auth plugin.

View File

@@ -1,14 +0,0 @@
const {withBlitz} = require("@blitzjs/next")
const loaderClient = require.resolve("@blitzjs/rpc/dist/loader-client.cjs")
const loaderServer = require.resolve("@blitzjs/rpc/dist/loader-server.cjs")
const loaderServerResolvers = require.resolve("@blitzjs/rpc/dist/loader-server-resolvers.cjs")
console.log("loaderClient", loaderClient)
console.log("loaderServer", loaderServer)
console.log("loaderServerResolvers", loaderServerResolvers)
/** @type {import('next').NextConfig} */
const nextConfig = {}
module.exports = withBlitz(nextConfig)

View File

@@ -1,41 +0,0 @@
{
"name": "next-blitz-auth",
"version": "0.1.16",
"private": true,
"scripts": {
"blitz:dev": "next dev",
"blitz:build": "next build",
"blitz:start": "next start",
"lint": "next lint"
},
"prisma": {
"schema": "prisma/schema.prisma"
},
"dependencies": {
"@blitzjs/auth": "2.1.4",
"@blitzjs/config": "2.1.4",
"@blitzjs/next": "2.1.4",
"@blitzjs/rpc": "2.1.4",
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "^4.5.0",
"@tanstack/react-query": "4.0.10",
"blitz": "2.1.4",
"flatted": "3.2.7",
"next": "14.2.15",
"prisma": "^4.5.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "7.39.1",
"superjson": "1.11.0",
"zod": "3.23.8"
},
"devDependencies": {
"@types/node": "18.11.7",
"@types/react": "18.0.23",
"@types/react-dom": "18.0.7",
"eslint": "8.26.0",
"eslint-config-next": "13.0.0",
"typescript": "4.8.4"
}
}

Binary file not shown.

View File

@@ -1,5 +0,0 @@
import {PrismaClient} from "@prisma/client"
export * from "@prisma/client"
const db = new PrismaClient()
export default db

View File

@@ -1,47 +0,0 @@
-- CreateTable
CREATE TABLE "User" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL,
"name" TEXT,
"email" TEXT NOT NULL,
"hashedPassword" TEXT,
"role" TEXT NOT NULL DEFAULT 'USER'
);
-- CreateTable
CREATE TABLE "Session" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL,
"expiresAt" DATETIME,
"handle" TEXT NOT NULL,
"hashedSessionToken" TEXT,
"antiCSRFToken" TEXT,
"publicData" TEXT,
"privateData" TEXT,
"userId" INTEGER,
CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE SET NULL ON UPDATE CASCADE
);
-- CreateTable
CREATE TABLE "Token" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL,
"hashedToken" TEXT NOT NULL,
"type" TEXT NOT NULL,
"expiresAt" DATETIME NOT NULL,
"sentTo" TEXT NOT NULL,
"userId" INTEGER NOT NULL,
CONSTRAINT "Token_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
);
-- CreateIndex
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
-- CreateIndex
CREATE UNIQUE INDEX "Session_handle_key" ON "Session"("handle");
-- CreateIndex
CREATE UNIQUE INDEX "Token_hashedToken_type_key" ON "Token"("hashedToken", "type");

View File

@@ -1,48 +0,0 @@
/*
Warnings:
- You are about to drop the `Token` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the column `createdAt` on the `User` table. All the data in the column will be lost.
- You are about to drop the column `role` on the `User` table. All the data in the column will be lost.
- You are about to drop the column `updatedAt` on the `User` table. All the data in the column will be lost.
- You are about to drop the column `createdAt` on the `Session` table. All the data in the column will be lost.
- You are about to drop the column `updatedAt` on the `Session` table. All the data in the column will be lost.
*/
-- DropIndex
DROP INDEX "Token_hashedToken_type_key";
-- DropTable
PRAGMA foreign_keys=off;
DROP TABLE "Token";
PRAGMA foreign_keys=on;
-- RedefineTables
PRAGMA foreign_keys=OFF;
CREATE TABLE "new_User" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"name" TEXT,
"email" TEXT NOT NULL,
"hashedPassword" TEXT
);
INSERT INTO "new_User" ("email", "hashedPassword", "id", "name") SELECT "email", "hashedPassword", "id", "name" FROM "User";
DROP TABLE "User";
ALTER TABLE "new_User" RENAME TO "User";
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
CREATE TABLE "new_Session" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"expiresAt" DATETIME,
"handle" TEXT NOT NULL,
"hashedSessionToken" TEXT,
"antiCSRFToken" TEXT,
"publicData" TEXT,
"privateData" TEXT,
"userId" INTEGER,
CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE SET NULL ON UPDATE CASCADE
);
INSERT INTO "new_Session" ("antiCSRFToken", "expiresAt", "handle", "hashedSessionToken", "id", "privateData", "publicData", "userId") SELECT "antiCSRFToken", "expiresAt", "handle", "hashedSessionToken", "id", "privateData", "publicData", "userId" FROM "Session";
DROP TABLE "Session";
ALTER TABLE "new_Session" RENAME TO "Session";
CREATE UNIQUE INDEX "Session_handle_key" ON "Session"("handle");
PRAGMA foreign_key_check;
PRAGMA foreign_keys=ON;

View File

@@ -1,3 +0,0 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"

View File

@@ -1,33 +0,0 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
name String?
email String @unique
hashedPassword String?
sessions Session[]
}
model Session {
id Int @id @default(autoincrement())
expiresAt DateTime?
handle String @unique
hashedSessionToken String?
antiCSRFToken String?
publicData String?
privateData String?
user User? @relation(fields: [userId], references: [id])
userId Int?
}

View File

@@ -1,4 +0,0 @@
import {rpcAppHandler} from "@blitzjs/rpc"
import {withBlitzAuth} from "src/blitz-server"
export const {GET, POST, HEAD} = withBlitzAuth(rpcAppHandler())

View File

@@ -1,8 +0,0 @@
import {useAuthenticatedBlitzContext} from "../../blitz-server"
export default async function RootLayout({children}: {children: React.ReactNode}) {
await useAuthenticatedBlitzContext({
redirectAuthenticatedTo: "/",
})
return <>{children}</>
}

View File

@@ -1,13 +0,0 @@
"use client"
import {LoginForm} from "../../../auth/components/LoginForm"
import {useRouter} from "next/navigation"
import {useSearchParams} from "next/navigation"
const LoginPage = () => {
const router = useRouter()
const searchParams = useSearchParams()
return <LoginForm onSuccess={(_user) => {}} />
}
export default LoginPage

View File

@@ -1,11 +0,0 @@
"use client"
import {useRouter} from "next/navigation"
import SignupForm from "../../../auth/components/SignupForm"
const SignUp = () => {
const router = useRouter()
return <SignupForm onSuccess={() => router.push("/")} />
}
export default SignUp

View File

@@ -1,24 +0,0 @@
"use client" // Error components must be Client components
import React, {useEffect} from "react"
export default function Error({error, reset}: {error: Error; reset: () => void}) {
useEffect(() => {
// Log the error to an error reporting service
console.error(error)
}, [error])
return (
<div>
<h2>Something went wrong!</h2>
<button
onClick={
// Attempt to recover by trying to re-render the segment
() => reset()
}
>
Try again
</button>
</div>
)
}

View File

@@ -1,57 +0,0 @@
import "src/styles/globals.css"
import {BlitzProvider} from "../blitz-client"
import styles from "src/styles/Home.module.css"
export default function RootLayout({children}: {children: React.ReactNode}) {
return (
<html lang="en">
<head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</head>
<body>
<BlitzProvider>
<div className={styles.globe} />
<div className={styles.container}>
<div className={styles.toastContainer}>
<p>
<strong>Congrats!</strong> Your app is ready, including user sign-up and log-in.
</p>
</div>
<main className={styles.main}>
<div className={styles.wrapper}>
<div className={styles.header}>
<div className={styles.logo}>
<svg viewBox="0 0 165 66">
<path d="M104.292 56.033C104.292 56.408 104.206 56.6636 104.036 56.8C103.9 56.9363 103.627 57.0045 103.218 57.0045H99.7409C99.4001 57.0045 99.1615 56.9533 99.0251 56.8511C98.8888 56.7147 98.8206 56.4932 98.8206 56.1864L98.9229 19.8324C98.9229 19.3211 99.1444 19.0654 99.5876 19.0654H103.627C103.839 19.0654 104.292 19.0672 104.292 19.0672V19.8324V56.033ZM64.3531 57.0081C64.1145 57.0081 63.927 56.9399 63.7906 56.8035C63.6543 56.6672 63.5861 56.4968 63.5861 56.2922V19.9383C63.5861 19.3588 63.8588 19.069 64.4042 19.069H76.829C81.533 19.069 85.1463 19.9212 87.6687 21.6256C90.1912 23.2958 91.4524 25.7331 91.4524 28.9373C91.4524 30.9484 90.924 32.6528 89.8673 34.0504C88.8106 35.4138 87.1063 36.5217 84.7543 37.3739C84.6179 37.4079 84.5497 37.4932 84.5497 37.6295C84.5497 37.7318 84.6179 37.7999 84.7543 37.834C87.2767 38.5158 89.1686 39.5895 90.4298 41.0553C91.7251 42.521 92.3727 44.4469 92.3727 46.833C92.3727 50.2418 91.0945 52.7983 88.5379 54.5027C85.9814 56.1729 82.2318 57.0081 77.2892 57.0081H64.3531ZM77.5448 35.5843C79.6923 35.5843 81.516 35.1071 83.0158 34.1526C84.5157 33.1982 85.2656 31.6983 85.2656 29.6531C85.2656 27.6079 84.5157 26.0569 83.0158 25.0002C81.5501 23.9435 79.5219 23.4151 76.9313 23.4151H70.5399C70.0286 23.4151 69.7729 23.6367 69.7729 24.0798V34.8684C69.7729 35.3457 69.9604 35.5843 70.3354 35.5843H77.5448ZM77.0335 52.662C82.9647 52.662 85.9303 50.5997 85.9303 46.4751C85.9303 44.3276 85.1633 42.7255 83.6294 41.6688C82.0955 40.6121 80.0673 40.0838 77.5448 40.0838H70.591C70.2843 40.0838 70.0627 40.1349 69.9263 40.2372C69.8241 40.3394 69.7729 40.5099 69.7729 40.7485V51.895C69.7729 52.4063 69.9604 52.662 70.3354 52.662H77.0335ZM142.707 56.8624C142.81 56.9647 142.997 57.0158 143.27 57.0158H163.876C164.387 57.0158 164.643 56.7772 164.643 56.3V53.948V53.3344H163.978H149.866C149.593 53.3344 149.457 53.2492 149.457 53.0788C149.457 52.9765 149.508 52.8572 149.61 52.7208L163.876 33.8536C164.251 33.2741 164.438 32.7628 164.438 32.3197V30.479V29.9144C164.438 29.9144 164.051 29.9165 163.876 29.9165H144.241C143.866 29.9165 143.679 30.121 143.679 30.5301V32.831C143.679 33.1037 143.713 33.2911 143.781 33.3934C143.883 33.4957 144.071 33.5468 144.344 33.5468H157.075C157.382 33.5468 157.535 33.632 157.535 33.8025L157.382 34.1092L143.219 52.9765C142.946 53.3515 142.759 53.6412 142.656 53.8457C142.588 54.0502 142.554 54.3059 142.554 54.6127V56.3C142.554 56.5727 142.605 56.7602 142.707 56.8624ZM116.929 19.0676H111.51V27.7684C114.503 27.7684 116.929 25.3419 116.929 22.3486V19.0676ZM116.926 56.0308C116.926 56.4058 116.841 56.6614 116.67 56.7978C116.534 56.9341 116.278 57.0023 115.903 57.0023H112.427C112.086 57.0023 111.847 56.9512 111.711 56.8489C111.574 56.7126 111.506 56.491 111.506 56.1842V30.6699C111.506 30.3972 111.557 30.2098 111.66 30.1075C111.762 29.9712 111.949 29.903 112.222 29.903H117.028L116.926 56.0308ZM132.183 34.3137C132.183 33.9728 132.336 33.8024 132.643 33.8024H138.779C139.256 33.8024 139.495 33.5979 139.495 33.1888V30.4789V29.9165H138.881H132.745C132.439 29.9165 132.285 29.7631 132.285 29.4563V21.531V20.713L131.621 20.7129H128.093C127.752 20.7129 127.547 20.9515 127.479 21.4288L126.865 29.4563C126.865 29.7631 126.729 29.9165 126.456 29.9165H122.366C121.957 29.9165 121.752 30.1039 121.752 30.4789V33.1888C121.752 33.5979 121.974 33.8024 122.417 33.8024H126.252C126.593 33.8024 126.763 34.0069 126.763 34.416V50.6244C126.763 52.806 127.309 54.4252 128.399 55.4819C129.49 56.5045 131.16 57.0158 133.41 57.0158C135.796 57.0158 137.535 56.9306 138.625 56.7601C139.137 56.6579 139.392 56.3681 139.392 55.8909V53.6923V53.0787H138.779H135.507C134.348 53.0787 133.495 52.806 132.95 52.2606C132.439 51.7152 132.183 50.7267 132.183 49.295V34.3137Z"></path>
<path d="M0.241243 33.2639H10.9742C15.0585 33.2639 18.9054 35.1835 21.3612 38.4471L31.9483 52.5165C32.1484 52.7824 32.1786 53.1393 32.026 53.435L25.9232 65.2592C25.6304 65.8265 24.8455 65.8932 24.4612 65.3835L0.241243 33.2639Z"></path>
<path d="M42.4727 33.2822H31.7398C27.6555 33.2822 23.8086 31.3626 21.3528 28.0991L10.7656 14.0297C10.5656 13.7638 10.5354 13.4068 10.688 13.1111L16.7908 1.28696C17.0836 0.719654 17.8684 0.652924 18.2528 1.16266L42.4727 33.2822Z"></path>
</svg>
</div>
<div className={styles.buttonContainer}></div>
</div>
<div className={styles.body}>{children} </div>
</div>
</main>
<footer className={styles.footer}>
<span>Powered by</span>
<a
href="https://blitzjs.com?utm_source=blitz-new&utm_medium=app-template&utm_campaign=blitz-new"
target="_blank"
rel="noopener noreferrer"
className={styles.textLink}
>
Blitz.js
</a>
</footer>
</div>
</BlitzProvider>
</body>
</html>
)
}

View File

@@ -1,46 +0,0 @@
import Link from "next/link"
import styles from "src/styles/Home.module.css"
import Test from "./react-query"
import {invoke, useAuthenticatedBlitzContext} from "../blitz-server"
import getCurrentUser from "../users/queries/getCurrentUser"
export default async function Home() {
await useAuthenticatedBlitzContext({
redirectTo: "/auth/login",
})
const user = await invoke(getCurrentUser, null)
return (
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
flexDirection: "column",
width: "100%",
}}
>
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
flexDirection: "column",
}}
>
<Link href={"/auth/signup"} className={styles.button}>
<strong>Sign Up</strong>
</Link>
<Link href={"/auth/login"} className={styles.loginButton}>
<strong>Login</strong>
</Link>
<div style={{height: 20}} />
<p>Server Session</p>
<p>UserId: {user?.id}</p>
<p>Email: {user?.email}</p>
<div style={{height: 20}} />
<p>Client Session</p>
<Test />
</div>
</div>
)
}

View File

@@ -1,34 +0,0 @@
"use client"
import {useQuery, useMutation} from "@blitzjs/rpc"
import logout from "../auth/mutations/logout"
import getCurrentUser from "../users/queries/getCurrentUser"
import {useTransition} from "react"
import {useRouter} from "next/navigation"
export default function Test() {
const router = useRouter()
const [user] = useQuery(getCurrentUser, null)
const [isPending, startTransition] = useTransition()
const [logoutMutation] = useMutation(logout)
console.log(user)
return (
<div>
<h1>Test</h1>
<p>{user?.email}</p>
<button
className="button small"
onClick={async () => {
await logoutMutation()
startTransition(() => {
// Refresh the current route and fetch new data from the server without
// losing client-side browser or React state.
router.refresh()
})
}}
>
Logout
</button>
</div>
)
}

View File

@@ -1,61 +0,0 @@
import {AuthenticationError, PromiseReturnType} from "blitz"
import Link from "next/link"
import {LabeledTextField} from "../../core/components/LabeledTextField"
import {Form, FORM_ERROR} from "../../core/components/Form"
import login from "../../auth/mutations/login"
import {Login} from "../../auth/validations"
import {useMutation} from "@blitzjs/rpc"
import {startTransition} from "react"
import {useRouter} from "next/navigation"
type LoginFormProps = {
onSuccess?: (user: PromiseReturnType<typeof login>) => void
}
export const LoginForm = (props: LoginFormProps) => {
const [loginMutation] = useMutation(login)
const router = useRouter()
return (
<div>
<h1>Login</h1>
<Form
submitText="Login"
schema={Login}
initialValues={{email: "", password: ""}}
onSubmit={async (values) => {
try {
const user = await loginMutation(values)
props.onSuccess?.(user)
startTransition(() => {
// Refresh the current route and fetch new data from the server without
// losing client-side browser or React state.
router.refresh()
})
} catch (error: any) {
if (error instanceof AuthenticationError) {
return {[FORM_ERROR]: "Sorry, those credentials are invalid"}
} else {
return {
[FORM_ERROR]:
"Sorry, we had an unexpected error. Please try again. - " + error.toString(),
}
}
}
}}
>
<LabeledTextField name="email" label="Email" placeholder="Email" />
<LabeledTextField name="password" label="Password" placeholder="Password" type="password" />
<div>
<a>Forgot your password?</a>
</div>
</Form>
<div style={{marginTop: "1rem"}}>
Or <Link href={"/auth/signup"}>Sign Up</Link>
</div>
</div>
)
}
export default LoginForm

View File

@@ -1,51 +0,0 @@
import {LabeledTextField} from "../../core/components/LabeledTextField"
import {Form, FORM_ERROR} from "../../core/components/Form"
import signup from "../../auth/mutations/signup"
import {Signup} from "../../auth/validations"
import {useMutation} from "@blitzjs/rpc"
import {startTransition} from "react"
import {useRouter} from "next/navigation"
type SignupFormProps = {
onSuccess?: () => void
}
export const SignupForm = (props: SignupFormProps) => {
const [signupMutation] = useMutation(signup)
const router = useRouter()
return (
<div>
<h1>Create an Account</h1>
<Form
submitText="Create Account"
schema={Signup}
initialValues={{email: "", password: ""}}
onSubmit={async (values) => {
try {
await signupMutation(values)
props.onSuccess?.()
startTransition(() => {
// Refresh the current route and fetch new data from the server without
// losing client-side browser or React state.
router.refresh()
})
} catch (error: any) {
if (error.code === "P2002" && error.meta?.target?.includes("email")) {
// Error "P2002" comes from Prisma (https://www.prisma.io/docs/reference/api-reference/error-reference#p2002)
return {email: "This email is already being used"}
} else {
return {[FORM_ERROR]: error.toString()}
}
}
}}
>
<LabeledTextField name="email" label="Email" placeholder="Email" />
<LabeledTextField name="password" label="Password" placeholder="Password" type="password" />
</Form>
</div>
)
}
export default SignupForm

View File

@@ -1,26 +0,0 @@
import {NotFoundError} from "blitz"
import db from "../../../prisma"
// import {authenticateUser} from "./login"
import {ChangePassword} from "../validations"
import {resolver} from "@blitzjs/rpc"
// import {SecurePassword} from "@blitzjs/auth"
export default resolver.pipe(
//@ts-ignore
resolver.zod(ChangePassword),
resolver.authorize(),
async ({currentPassword, newPassword}, ctx) => {
const user = await db.user.findFirst({where: {id: ctx.session.userId}})
if (!user) throw new NotFoundError()
// await authenticateUser(user.email, currentPassword)
// const hashedPassword = await SecurePassword.hash(newPassword.trim())
await db.user.update({
where: {id: user.id},
data: {hashedPassword: newPassword},
})
return true
},
)

View File

@@ -1,64 +0,0 @@
import {vi, describe, it, beforeEach} from "vitest"
import db from "db"
import {hash256} from "@blitzjs/auth"
import forgotPassword from "./forgotPassword"
import previewEmail from "preview-email"
import {Ctx} from "@blitzjs/next"
beforeEach(async () => {
await db.$reset()
})
const generatedToken = "plain-token"
vi.mock("@blitzjs/auth", async () => {
const auth = await vi.importActual<Record<string, unknown>>("@blitzjs/auth")!
return {
...auth,
generateToken: () => generatedToken,
}
})
vi.mock("preview-email", () => ({default: vi.fn()}))
describe("forgotPassword mutation", () => {
it("does not throw error if user doesn't exist", async () => {
await expect(forgotPassword({email: "no-user@email.com"}, {} as Ctx)).resolves.not.toThrow()
})
it("works correctly", async () => {
// Create test user
const user = await db.user.create({
data: {
email: "user@example.com",
tokens: {
// Create old token to ensure it's deleted
create: {
type: "RESET_PASSWORD",
hashedToken: "token",
expiresAt: new Date(),
sentTo: "user@example.com",
},
},
},
include: {tokens: true},
})
// Invoke the mutation
await forgotPassword({email: user.email}, {} as Ctx)
const tokens = await db.token.findMany({where: {userId: user.id}})
const token = tokens[0]
if (!user.tokens[0]) throw new Error("Missing user token")
if (!token) throw new Error("Missing token")
// delete's existing tokens
expect(tokens.length).toBe(1)
expect(token.id).not.toBe(user.tokens[0].id)
expect(token.type).toBe("RESET_PASSWORD")
expect(token.sentTo).toBe(user.email)
expect(token.hashedToken).toBe(hash256(generatedToken))
expect(token.expiresAt > new Date()).toBe(true)
expect(previewEmail).toBeCalled()
})
})

View File

@@ -1,40 +0,0 @@
import {generateToken, hash256} from "@blitzjs/auth"
import {resolver} from "@blitzjs/rpc"
import db from "../../../prisma"
import {ForgotPassword} from "../validations"
const RESET_PASSWORD_TOKEN_EXPIRATION_IN_HOURS = 4
//@ts-ignore
export default resolver.pipe(resolver.zod(ForgotPassword), async ({email}) => {
// 1. Get the user
const user = await db.user.findFirst({where: {email: email.toLowerCase()}})
// 2. Generate the token and expiration date.
const token = generateToken()
const hashedToken = hash256(token)
const expiresAt = new Date()
expiresAt.setHours(expiresAt.getHours() + RESET_PASSWORD_TOKEN_EXPIRATION_IN_HOURS)
// 3. If user with this email was found
if (user) {
// 4. Delete any existing password reset tokens
await db.token.deleteMany({where: {type: "RESET_PASSWORD", userId: user.id}})
// 5. Save this new token in the database.
await db.token.create({
data: {
user: {connect: {id: user.id}},
type: "RESET_PASSWORD",
expiresAt,
hashedToken,
sentTo: user.email,
},
})
// 6. Send the email
} else {
// 7. If no user found wait the same time so attackers can't tell the difference
await new Promise((resolve) => setTimeout(resolve, 750))
}
// 8. Return the same result whether a password reset email was sent or not
return
})

View File

@@ -1,31 +0,0 @@
import {resolver} from "@blitzjs/rpc"
// import {AuthenticationError} from "blitz"
import db from "../../../prisma"
import {Login} from "../validations"
// export const authenticateUser = async (rawEmail: string, rawPassword: string) => {
// const {email, password} = Login.parse({email: rawEmail, password: rawPassword})
// const user = await db.user.findFirst({where: {email}})
// if (!user) throw new AuthenticationError()
// const result = await SecurePassword.verify(user.hashedPassword, password)
// if (result === SecurePassword.VALID_NEEDS_REHASH) {
// // Upgrade hashed password with a more secure hash
// const improvedHash = await SecurePassword.hash(password)
// await db.user.update({where: {id: user.id}, data: {hashedPassword: improvedHash}})
// }
// const {hashedPassword, ...rest} = user
// return rest
// }
//@ts-ignore
export default resolver.pipe(resolver.zod(Login), async ({email, password}, ctx) => {
// This throws an error if credentials are invalid
// const user = await authenticateUser(email, password)
const user = await db.user.findFirst({where: {email}})
//@ts-ignore
await ctx.session.$create({userId: user.id, role: user.role})
console.log("user", user)
return user
})

View File

@@ -1,83 +0,0 @@
import {vi, describe, it, beforeEach, expect} from "vitest"
import resetPassword from "./resetPassword"
import db from "db"
import {SecurePassword, hash256} from "@blitzjs/auth"
beforeEach(async () => {
await db.$reset()
})
const mockCtx: any = {
session: {
$create: vi.fn(),
},
}
describe("resetPassword mutation", () => {
it("works correctly", async () => {
expect(true).toBe(true)
// Create test user
const goodToken = "randomPasswordResetToken"
const expiredToken = "expiredRandomPasswordResetToken"
const future = new Date()
future.setHours(future.getHours() + 4)
const past = new Date()
past.setHours(past.getHours() - 4)
const user = await db.user.create({
data: {
email: "user@example.com",
tokens: {
// Create old token to ensure it's deleted
create: [
{
type: "RESET_PASSWORD",
hashedToken: hash256(expiredToken),
expiresAt: past,
sentTo: "user@example.com",
},
{
type: "RESET_PASSWORD",
hashedToken: hash256(goodToken),
expiresAt: future,
sentTo: "user@example.com",
},
],
},
},
include: {tokens: true},
})
const newPassword = "newPassword"
// Non-existent token
await expect(
resetPassword({token: "no-token", password: "", passwordConfirmation: ""}, mockCtx),
).rejects.toThrowError()
// Expired token
await expect(
resetPassword(
{token: expiredToken, password: newPassword, passwordConfirmation: newPassword},
mockCtx,
),
).rejects.toThrowError()
// Good token
await resetPassword(
{token: goodToken, password: newPassword, passwordConfirmation: newPassword},
mockCtx,
)
// Delete's the token
const numberOfTokens = await db.token.count({where: {userId: user.id}})
expect(numberOfTokens).toBe(0)
// Updates user's password
const updatedUser = await db.user.findFirst({where: {id: user.id}})
expect(await SecurePassword.verify(updatedUser!.hashedPassword, newPassword)).toBe(
SecurePassword.VALID,
)
})
})

View File

@@ -1,50 +0,0 @@
import {hash256} from "@blitzjs/auth"
import db from "../../../prisma"
import {ResetPassword} from "../validations"
import login from "./login"
export class ResetPasswordError extends Error {
name = "ResetPasswordError"
message = "Reset password link is invalid or it has expired."
}
export default async function resetPassword(input: any, ctx: any) {
ResetPassword.parse(input)
// 1. Try to find this token in the database
const hashedToken = hash256(input.token)
const possibleToken = await db.token.findFirst({
where: {hashedToken, type: "RESET_PASSWORD"},
include: {user: true},
})
// 2. If token not found, error
if (!possibleToken) {
throw new ResetPasswordError()
}
const savedToken = possibleToken
// 3. Delete token so it can't be used again
await db.token.delete({where: {id: savedToken.id}})
// 4. If token has expired, error
if (savedToken.expiresAt < new Date()) {
throw new ResetPasswordError()
}
// 5. Since token is valid, now we can update the user's password
// const hashedPassword = await SecurePassword.hash(input.password.trim())
const user = await db.user.update({
where: {id: savedToken.userId},
data: {
hashedPassword: input.password,
},
})
// 6. Revoke all existing login sessions for this user
await db.session.deleteMany({where: {userId: user.id}})
// 7. Now log the user in with the new credentials
await login({email: user.email, password: input.password}, ctx)
return true
}

View File

@@ -1,18 +0,0 @@
import db from "../../../prisma"
import {SecurePassword} from "@blitzjs/auth/secure-password"
export default async function signup(input: {password: string; email: string}, ctx: any) {
const blitzContext = ctx
const hashedPassword = await SecurePassword.hash((input.password as string) || "test-password")
const email = input.email
const user = await db.user.create({
data: {email, hashedPassword},
})
await blitzContext.session.$create({
userId: user.id,
role: "user",
})
return {userId: blitzContext.session.userId, ...user, email: input.email}
}

View File

@@ -1,42 +0,0 @@
import {z} from "zod"
export const email = z
.string()
.email()
.transform((str) => str.toLowerCase().trim())
export const password = z
.string()
.min(10)
.max(100)
.transform((str) => str.trim())
export const Signup = z.object({
email,
password,
})
export const Login = z.object({
email,
password: z.string(),
})
export const ForgotPassword = z.object({
email,
})
export const ResetPassword = z
.object({
password: password,
passwordConfirmation: password,
token: z.string(),
})
.refine((data) => data.password === data.passwordConfirmation, {
message: "Passwords don't match",
path: ["passwordConfirmation"], // set the path of the error
})
export const ChangePassword = z.object({
currentPassword: z.string(),
newPassword: password,
})

View File

@@ -1,13 +0,0 @@
"use client"
import {AuthClientPlugin} from "@blitzjs/auth"
import {setupBlitzClient} from "@blitzjs/next"
import {BlitzRpcPlugin} from "@blitzjs/rpc"
export const {withBlitz, useSession, queryClient, BlitzProvider} = setupBlitzClient({
plugins: [
AuthClientPlugin({
cookiePrefix: "web-cookie-prefix",
}),
BlitzRpcPlugin({}),
],
})

View File

@@ -1,33 +0,0 @@
import type {BlitzCliConfig} from "blitz"
import {setupBlitzServer} from "@blitzjs/next"
import {AuthServerPlugin, PrismaStorage} from "@blitzjs/auth"
import db from "../prisma"
import {simpleRolesIsAuthorized} from "@blitzjs/auth"
import {BlitzLogger} from "blitz"
import {RpcServerPlugin} from "@blitzjs/rpc"
const {api, getBlitzContext, useAuthenticatedBlitzContext, invoke, withBlitzAuth} =
setupBlitzServer({
plugins: [
AuthServerPlugin({
cookiePrefix: "web-cookie-prefix",
storage: PrismaStorage(db),
isAuthorized: simpleRolesIsAuthorized,
}),
RpcServerPlugin({
logging: {
disablelevel: "debug",
},
onInvokeError(error) {
console.log("onInvokeError", error)
},
}),
],
logger: BlitzLogger({}),
})
export {api, getBlitzContext, useAuthenticatedBlitzContext, invoke, withBlitzAuth}
export const cliConfig: BlitzCliConfig = {
customTemplates: "src/templates",
}

View File

@@ -1,83 +0,0 @@
import {useState, ReactNode, PropsWithoutRef} from "react"
import {FormProvider, useForm, UseFormProps} from "react-hook-form"
import {zodResolver} from "@hookform/resolvers/zod"
import {z} from "zod"
export interface FormProps<S extends z.ZodType<any, any>>
extends Omit<PropsWithoutRef<JSX.IntrinsicElements["form"]>, "onSubmit"> {
/** All your form fields */
children?: ReactNode
/** Text to display in the submit button */
submitText?: string
schema?: S
onSubmit: (values: z.infer<S>) => Promise<void | OnSubmitResult>
initialValues?: UseFormProps<z.infer<S>>["defaultValues"]
}
interface OnSubmitResult {
FORM_ERROR?: string
[prop: string]: any
}
export const FORM_ERROR = "FORM_ERROR"
export function Form<S extends z.ZodType<any, any>>({
children,
submitText,
schema,
initialValues,
onSubmit,
...props
}: FormProps<S>) {
const ctx = useForm<z.infer<S>>({
mode: "onBlur",
resolver: schema ? zodResolver(schema) : undefined,
defaultValues: initialValues,
})
const [formError, setFormError] = useState<string | null>(null)
return (
<FormProvider {...ctx}>
<form
onSubmit={ctx.handleSubmit(async (values) => {
const result = (await onSubmit(values)) || {}
for (const [key, value] of Object.entries(result)) {
if (key === FORM_ERROR) {
setFormError(value)
} else {
ctx.setError(key as any, {
type: "submit",
message: value,
})
}
}
})}
className="form"
{...props}
>
{/* Form fields supplied as children are rendered here */}
{children}
{formError && (
<div role="alert" style={{color: "red"}}>
{formError}
</div>
)}
{submitText && (
<button type="submit" disabled={ctx.formState.isSubmitting}>
{submitText}
</button>
)}
<style global jsx>{`
.form > * + * {
margin-top: 1rem;
}
`}</style>
</form>
</FormProvider>
)
}
export default Form

View File

@@ -1,63 +0,0 @@
import {forwardRef, PropsWithoutRef, ComponentPropsWithoutRef} from "react"
import {useFormContext} from "react-hook-form"
import {ErrorMessage} from "@hookform/error-message"
export interface LabeledTextFieldProps extends PropsWithoutRef<JSX.IntrinsicElements["input"]> {
/** Field name. */
name: string
/** Field label. */
label: string
/** Field type. Doesn't include radio buttons and checkboxes */
type?: "text" | "password" | "email" | "number"
outerProps?: PropsWithoutRef<JSX.IntrinsicElements["div"]>
labelProps?: ComponentPropsWithoutRef<"label">
}
export const LabeledTextField = forwardRef<HTMLInputElement, LabeledTextFieldProps>(
({label, outerProps, labelProps, name, ...props}, ref) => {
const {
register,
formState: {isSubmitting, errors},
} = useFormContext()
return (
<div {...outerProps}>
<label {...labelProps}>
{label}
<input disabled={isSubmitting} {...register(name)} {...props} />
</label>
<ErrorMessage
render={({message}) => (
<div role="alert" style={{color: "red"}}>
{message}
</div>
)}
errors={errors}
name={name}
/>
<style jsx>{`
label {
display: flex;
flex-direction: column;
align-items: start;
font-size: 1rem;
}
input {
font-size: 1rem;
padding: 0.25rem 0.5rem;
border-radius: 3px;
border: 1px solid purple;
appearance: none;
margin-top: 0.5rem;
}
`}</style>
</div>
)
},
)
LabeledTextField.displayName = "LabeledTextField"
export default LabeledTextField

View File

@@ -1,8 +0,0 @@
import {api} from "../../../blitz-server"
export default api((req, res, ctx) => {
// console.log("session", ctx.session)
//get cookie
console.dir("cookie", req.headers.cookie)
res.json({session: ctx.session.userId})
})

View File

@@ -1,303 +0,0 @@
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
.main {
flex: 1;
padding: 0rem 1rem;
display: flex;
flex-direction: column;
}
.wrapper {
display: flex;
flex-direction: column;
gap: 2rem;
}
.frost {
background: rgba(255, 255, 255, 0.2);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.31);
}
.header {
display: flex;
flex-direction: column;
padding: 4rem 0rem 2rem 0rem;
text-align: center;
gap: 2rem;
}
.header h1 {
max-width: 620px;
align-self: center;
}
.body {
composes: frost;
border-radius: var(--border-radius);
display: flex;
padding: 1rem;
width: 100%;
flex-direction: row;
align-self: center;
max-width: var(--screen-width);
}
.instructions {
display: inline-flex;
flex-direction: column;
padding: 1rem;
width: 100%;
}
.globe {
position: fixed;
width: 350vmin;
height: 75vmin;
left: 20%;
top: 50%;
transform: translate(-50%, calc(-50% + 40px));
z-index: -1;
border-radius: 100%;
background-image: radial-gradient(
95.63% 95.63% at 95.92% 0%,
rgba(255, 255, 255, 0.62) 0%,
#8155ff38 60.42%,
#002fff5c 169%
);
filter: blur(8vmin);
}
.footer {
display: flex;
padding: 2rem 0;
justify-content: center;
align-items: center;
}
.footer span {
margin-right: 0.2rem;
}
.code {
display: flex;
align-items: center;
gap: 0.5rem;
}
.code span {
background: rgba(124, 58, 237, 50%);
border-radius: 50rem;
font-size: 14px;
font-weight: 500;
padding: 17px;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
color: rgb(57, 33, 97);
}
.code pre {
background: rgba(124, 58, 237, 12%);
border-radius: 4px;
padding: 0.7em 1.4em;
text-align: center;
}
.code code {
font-size: 0.86em;
font-weight: bold;
color: rgb(124, 58, 237);
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
Bitstream Vera Sans Mono, Courier New, monospace;
}
.toastContainer {
border: 1px solid #edff;
padding: 0 1rem;
background: #eeff;
color: #62af;
text-align: center;
}
.toastContainer strong {
color: rgb(124, 58, 237);
}
.textLink {
color: rgb(124, 58, 237);
background: linear-gradient(to right, rgba(231, 216, 246, 1), rgba(231, 216, 246, 1)),
linear-gradient(to right, rgba(99, 1, 235, 1), rgba(124, 58, 237, 1), rgba(231, 216, 246, 1));
background-size: 100% 1px, 0 1px;
background-position: 100% 100%, 0 100%;
background-repeat: no-repeat;
transition: background-size 400ms;
}
.textLink:hover,
.textLink:focus,
.textLink:active {
background-size: 0 1px, 100% 1px;
}
.arrowIcon {
box-sizing: border-box;
display: block;
width: 8px;
height: 8px;
border-top: 2px solid;
transform: scale(var(--ggs, 1));
border-right: 2px solid;
position: absolute;
right: 6px;
top: 6px;
color: #b1a5c4;
}
.arrowIcon::after {
content: "";
display: block;
box-sizing: border-box;
position: absolute;
width: 8px;
height: 2px;
background: currentColor;
transform: rotate(-45deg);
top: 2px;
right: -1px;
}
.buttonContainer {
display: flex;
flex-direction: row;
gap: 1rem;
justify-content: center;
align-items: center;
flex: 1;
}
.button {
background: linear-gradient(to top, rgb(124, 58, 237), rgb(117, 81, 236));
border: 1px solid rgb(231, 216, 246);
color: white;
text-shadow: rgba(0, 0, 0, 0.25) 0px 3px 8px;
padding: 0 24px;
height: 48px;
width: 200px;
max-width: 300px;
position: relative;
display: inline-flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
user-select: none;
white-space: nowrap;
border-radius: 0.75rem;
border-bottom-left-radius: 0px;
font-size: 15px;
transition: all 0.3s ease 0s;
cursor: pointer;
}
.button:hover {
color: white;
text-shadow: rgb(0 0 0 / 56%) 0px 3px 12px;
box-shadow: rgb(80 63 205 / 50%) 0px 1px 40px;
}
.loginButton {
composes: button;
background: rgb(248 250 252);
border: 1px solid rgb(231, 216, 246);
color: rgb(30 41 59);
text-shadow: none;
}
.loginButton:hover {
color: rgb(30 41 59);
text-shadow: none;
}
.card:hover .arrowIcon {
color: #7450ec;
}
.linkGrid {
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 1rem;
}
.card {
composes: frost;
padding: 1rem 0rem;
text-align: center;
color: inherit;
text-decoration: none;
border-radius: 10px;
border-bottom-left-radius: 0px;
transition: color 0.15s ease, border-color 0.15s ease;
max-width: 200px;
min-width: 200px;
display: flex;
flex-direction: row;
justify-content: center;
}
.card:hover,
.card:focus,
.card:active {
color: #7450ec;
border-color: #7450ec;
}
.card h2 {
margin: 0 0 1rem 0;
font-size: 1.5rem;
}
.card p {
margin: 0;
font-size: 1.25rem;
line-height: 1.5;
}
.logo {
flex: 1;
padding: 1rem 2rem;
}
.logo svg {
height: 100%;
width: 200px;
fill: #7450ec;
}
/* MOBILE */
@media (max-width: 800px) {
.linkGrid {
width: 100%;
}
.card {
max-width: 100%;
}
.body {
flex-wrap: wrap;
}
.buttonContainer {
flex-wrap: wrap;
}
}

View File

@@ -1,25 +0,0 @@
:root {
--border-radius: 0.75rem;
--screen-width: 90vmin;
}
html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
a {
color: inherit;
text-decoration: none;
}
i {
font-size: 0.8rem;
}
* {
box-sizing: border-box;
}

View File

@@ -1,7 +0,0 @@
import {useQuery} from "@blitzjs/rpc"
import getCurrentUser from "../../../src/users/queries/getCurrentUser"
export const useCurrentUser = () => {
const [user] = useQuery(getCurrentUser, null)
return user
}

View File

@@ -1,16 +0,0 @@
import {Ctx} from "blitz"
import db from "../../../prisma"
export default async function getCurrentUser(input: null, ctx: Ctx) {
if (!ctx.session.userId) return null
const user = await db.user.findFirst({
where: {id: ctx.session.userId},
select: {id: true, name: true, email: true},
})
return user
}
export const config = {
httpMethod: "POST",
}

View File

@@ -1,26 +0,0 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

View File

@@ -1,12 +0,0 @@
import {SimpleRolesIsAuthorized} from "@blitzjs/auth"
import {User} from "./prisma"
declare module "@blitzjs/auth" {
export interface Session {
isAuthorized: SimpleRolesIsAuthorized
PublicData: {
userId: User["id"]
email: User["email"]
}
}
}

View File

@@ -1 +0,0 @@
module.exports = require("@blitzjs/next/eslint")

View File

@@ -1,56 +0,0 @@
# dependencies
node_modules
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnp.*
.npm
web_modules/
# blitz
/.blitz/
/.next/
*.sqlite
*.sqlite-journal
.now
.blitz**
blitz-log.log
# misc
.DS_Store
# local env files
.env.local
.env.*.local
.envrc
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Testing
.coverage
*.lcov
.nyc_output
lib-cov
# Caches
*.tsbuildinfo
.eslintcache
.node_repl_history
.yarn-integrity
# Serverless directories
.serverless/
# Stores VSCode versions used for testing VSCode extensions
.vscode-test

View File

@@ -1,8 +0,0 @@
save-exact=true
legacy-peer-deps=true
public-hoist-pattern[]=@tanstack/react-query
public-hoist-pattern[]=next
public-hoist-pattern[]=secure-password
public-hoist-pattern[]=*jest*
public-hoist-pattern[]=@testing-library/*

View File

@@ -1,9 +0,0 @@
.gitkeep
.env*
*.ico
*.lock
db/migrations
.next
.yarn
.pnp.*
node_modules

View File

@@ -1,2 +0,0 @@
# toolkit-app-passportjs

View File

@@ -1,175 +0,0 @@
TODO
[![Blitz.js](https://raw.githubusercontent.com/blitz-js/art/master/github-cover-photo.png)](https://blitzjs.com)
This is a [Blitz.js](https://github.com/blitz-js/blitz) app.
# \***\*name\*\***
## Getting Started
Run your app in the development mode.
```
blitz dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Environment Variables
Ensure the `.env.local` file has required environment variables:
```
DATABASE_URL=postgresql://<YOUR_DB_USERNAME>@localhost:5432/__name__
```
Ensure the `.env.test.local` file has required environment variables:
```
DATABASE_URL=postgresql://<YOUR_DB_USERNAME>@localhost:5432/__name___test
```
## Tests
Runs your tests using Jest.
```
yarn test
```
Blitz comes with a test setup using [Jest](https://jestjs.io/) and [react-testing-library](https://testing-library.com/).
## Commands
Blitz comes with a powerful CLI that is designed to make development easy and fast. You can install it with `npm i -g blitz`
```
blitz [COMMAND]
dev Start a development server
build Create a production build
start Start a production server
export Export your Blitz app as a static application
prisma Run prisma commands
generate Generate new files for your Blitz project
console Run the Blitz console REPL
install Install a recipe
help Display help for blitz
test Run project tests
```
You can read more about it on the [CLI Overview](https://blitzjs.com/docs/cli-overview) documentation.
## What's included?
Here is the starting structure of your app.
```
__name__
├── src/
│ ├── api/
│ ├── auth/
│ │ ├── components/
│ │ │ ├── LoginForm.tsx
│ │ │ └── SignupForm.tsx
│ │ ├── mutations/
│ │ │ ├── changePassword.ts
│ │ │ ├── forgotPassword.test.ts
│ │ │ ├── forgotPassword.ts
│ │ │ ├── login.ts
│ │ │ ├── logout.ts
│ │ │ ├── resetPassword.test.ts
│ │ │ ├── resetPassword.ts
│ │ │ └── signup.ts
│ │ ├── pages/
│ │ │ ├── forgot-password.tsx
│ │ │ ├── login.tsx
│ │ │ ├── reset-password.tsx
│ │ │ └── signup.tsx
│ │ └── validations.ts
│ ├── core/
│ │ ├── components/
│ │ │ ├── Form.tsx
│ │ │ └── LabeledTextField.tsx
│ │ └── layouts/
│ │ └── Layout.tsx
│ ├── pages/
│ │ ├── _app.tsx
│ │ ├── _document.tsx
│ │ ├── 404.tsx
│ │ ├── index.test.tsx
│ │ └── index.tsx
│ └── users/
│ ├── hooks/
│ │ └── useCurrentUser.ts
│ └── queries/
│ └── getCurrentUser.ts
├── db/
│ ├── migrations/
│ ├── index.ts
│ ├── schema.prisma
│ └── seeds.ts
├── integrations/
├── mailers/
│ └── forgotPasswordMailer.ts
├── public/
│ ├── favicon.ico
│ └── logo.png
├── test/
│ ├── setup.ts
│ └── utils.tsx
├── .eslintrc.js
├── babel.config.js
├── blitz.config.ts
├── jest.config.ts
├── package.json
├── README.md
├── tsconfig.json
└── types.ts
```
These files are:
- The `src/` folder is a container for most of your project. This is where youll put any pages or API routes.
- `db/` is where your database configuration goes. If youre writing models or checking migrations, this is where to go.
- `public/` is a folder where you will put any static assets. If you have images, files, or videos which you want to use in your app, this is where to put them.
- `integrations/` is a folder to put all third-party integrations like with Stripe, Sentry, etc.
- `test/` is a folder where you can put test utilities and integration tests.
- `package.json` contains information about your dependencies and devDependencies. If youre using a tool like `npm` or `yarn`, you wont have to worry about this much.
- `tsconfig.json` is our recommended setup for TypeScript.
- `.babel.config.js`, `.eslintrc.js`, `.env`, etc. ("dotfiles") are configuration files for various bits of JavaScript tooling.
- `blitz.config.ts` is for advanced custom configuration of Blitz. [Here you can learn how to use it](https://blitzjs.com/docs/blitz-config).
- `jest.config.js` contains config for Jest tests. You can [customize it if needed](https://jestjs.io/docs/en/configuration).
You can read more about it in the [File Structure](https://blitzjs.com/docs/file-structure) section of the documentation.
### Tools included
Blitz comes with a set of tools that corrects and formats your code, facilitating its future maintenance. You can modify their options and even uninstall them.
- **ESLint**: It lints your code: searches for bad practices and tell you about it. You can customize it via the `.eslintrc.js`, and you can install (or even write) plugins to have it the way you like it. It already comes with the [`blitz`](https://github.com/blitz-js/blitz/tree/canary/packages/eslint-config) config, but you can remove it safely. [Learn More](https://blitzjs.com/docs/eslint-config).
- **Husky**: It adds [githooks](https://git-scm.com/docs/githooks), little pieces of code that get executed when certain Git events are triggerd. For example, `pre-commit` is triggered just before a commit is created. You can see the current hooks inside `.husky/`. If are having problems commiting and pushing, check out ther [troubleshooting](https://typicode.github.io/husky/#/?id=troubleshoot) guide. [Learn More](https://blitzjs.com/docs/husky-config).
- **Prettier**: It formats your code to look the same everywhere. You can configure it via the `.prettierrc` file. The `.prettierignore` contains the files that should be ignored by Prettier; useful when you have large files or when you want to keep a custom formatting. [Learn More](https://blitzjs.com/docs/prettier-config).
## Learn more
Read the [Blitz.js Documentation](https://blitzjs.com/docs/getting-started) to learn more.
The Blitz community is warm, safe, diverse, inclusive, and fun! Feel free to reach out to us in any of our communication channels.
- [Website](https://blitzjs.com)
- [Discord](https://blitzjs.com/discord)
- [Report an issue](https://github.com/blitz-js/blitz/issues/new/choose)
- [Forum discussions](https://github.com/blitz-js/blitz/discussions)
- [How to Contribute](https://blitzjs.com/docs/contributing)
- [Sponsor or donate](https://github.com/blitz-js/blitz#sponsors-and-donations)

View File

@@ -1,8 +0,0 @@
import { enhancePrisma } from "blitz"
import { PrismaClient } from "@prisma/client"
const EnhancedPrisma = enhancePrisma(PrismaClient)
export * from "@prisma/client"
const db = new EnhancedPrisma()
export default db

View File

@@ -1,47 +0,0 @@
-- CreateTable
CREATE TABLE "User" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL,
"name" TEXT,
"email" TEXT NOT NULL,
"hashedPassword" TEXT,
"role" TEXT NOT NULL DEFAULT 'USER'
);
-- CreateTable
CREATE TABLE "Session" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL,
"expiresAt" DATETIME,
"handle" TEXT NOT NULL,
"hashedSessionToken" TEXT,
"antiCSRFToken" TEXT,
"publicData" TEXT,
"privateData" TEXT,
"userId" INTEGER,
CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE SET NULL ON UPDATE CASCADE
);
-- CreateTable
CREATE TABLE "Token" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL,
"hashedToken" TEXT NOT NULL,
"type" TEXT NOT NULL,
"expiresAt" DATETIME NOT NULL,
"sentTo" TEXT NOT NULL,
"userId" INTEGER NOT NULL,
CONSTRAINT "Token_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
);
-- CreateIndex
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
-- CreateIndex
CREATE UNIQUE INDEX "Session_handle_key" ON "Session"("handle");
-- CreateIndex
CREATE UNIQUE INDEX "Token_hashedToken_type_key" ON "Token"("hashedToken", "type");

View File

@@ -1,3 +0,0 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"

View File

@@ -1,65 +0,0 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
datasource db {
provider = "sqlite"
url = "file:./db.sqlite"
}
generator client {
provider = "prisma-client-js"
}
// --------------------------------------
model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
name String?
email String @unique
hashedPassword String?
role String @default("USER")
tokens Token[]
sessions Session[]
}
model Session {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
expiresAt DateTime?
handle String @unique
hashedSessionToken String?
antiCSRFToken String?
publicData String?
privateData String?
user User? @relation(fields: [userId], references: [id])
userId Int?
}
model Token {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
hashedToken String
type String
// See note below about TokenType enum
// type TokenType
expiresAt DateTime
sentTo String
user User @relation(fields: [userId], references: [id])
userId Int
@@unique([hashedToken, type])
}
// NOTE: It's highly recommended to use an enum for the token type
// but enums only work in Postgres.
// See: https://blitzjs.com/docs/database-overview#switch-to-postgre-sql
// enum TokenType {
// RESET_PASSWORD
// }

View File

@@ -1,21 +0,0 @@
import db from "./index"
/*
* This seed function is executed when you run `blitz db seed`.
*
* Probably you want to use a library like https://chancejs.com
* to easily generate realistic data.
*/
const seed = async () => {
await db.$reset()
for (let i = 0; i < 1; i++) {
await db.user.create({
data: {
email: "test@test.com",
},
})
}
}
export default seed

View File

@@ -1,11 +0,0 @@
const nextJest = require("@blitzjs/next/jest")
const createJestConfig = nextJest({
dir: "./",
})
const customJestConfig = {
testEnvironment: "jest-environment-jsdom",
}
module.exports = createJestConfig(customJestConfig)

View File

@@ -1,45 +0,0 @@
/* TODO - You need to add a mailer integration in `integrations/` and import here.
*
* The integration file can be very simple. Instantiate the email client
* and then export it. That way you can import here and anywhere else
* and use it straight away.
*/
type ResetPasswordMailer = {
to: string
token: string
}
export function forgotPasswordMailer({ to, token }: ResetPasswordMailer) {
// In production, set APP_ORIGIN to your production server origin
const origin = process.env.APP_ORIGIN || process.env.BLITZ_DEV_SERVER_ORIGIN
const resetUrl = `${origin}/auth/reset-password?token=${token}`
const msg = {
from: "TODO@example.com",
to,
subject: "Your Password Reset Instructions",
html: `
<h1>Reset Your Password</h1>
<h3>NOTE: You must set up a production email integration in mailers/forgotPasswordMailer.ts</h3>
<a href="${resetUrl}">
Click here to set a new password
</a>
`,
}
return {
async send() {
if (process.env.NODE_ENV === "production") {
// TODO - send the production email, like this:
// await postmark.sendEmail(msg)
throw new Error("No production email implementation in mailers/forgotPasswordMailer")
} else {
// Preview email in the browser
const previewEmail = (await import("preview-email")).default
await previewEmail(msg)
}
},
}
}

View File

@@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@@ -1,15 +0,0 @@
// @ts-check
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
})
const { withBlitz } = require("@blitzjs/next")
/**
* @type {import('@blitzjs/next').BlitzConfig}
**/
const config = {
reactStrictMode: true,
}
module.exports = withBlitz(withBundleAnalyzer(config))

View File

@@ -1,66 +0,0 @@
{
"name": "toolkit-app-passport",
"version": "1.0.1-alpha.16",
"scripts": {
"start:dev": "pnpm run prisma:start && blitz dev",
"buildapp": "pnpm blitz codegen && pnpm prisma generate && next build",
"start": "next start",
"lint": "next lint",
"prisma:start": "prisma generate && prisma migrate deploy",
"prisma:studio": "prisma studio",
"test:local": "jest"
},
"prisma": {
"schema": "db/schema.prisma"
},
"prettier": {
"semi": false,
"printWidth": 100
},
"lint-staged": {
"*.{js}": [
"eslint --fix"
]
},
"dependencies": {
"@blitzjs/auth": "2.1.4",
"@blitzjs/config": "2.1.4",
"@blitzjs/next": "2.1.4",
"@blitzjs/rpc": "2.1.4",
"@hookform/error-message": "2.0.0",
"@hookform/resolvers": "2.9.10",
"@prisma/client": "6.1.0",
"blitz": "2.1.4",
"next": "14.2.15",
"openid-client": "5.2.1",
"prisma": "6.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "7.39.1",
"ts-node": "10.9.1",
"zod": "3.23.8"
},
"devDependencies": {
"@next/bundle-analyzer": "12.0.8",
"@testing-library/react": "13.4.0",
"@testing-library/react-hooks": "8.0.1",
"@types/jest": "29.2.2",
"@types/node": "18.11.9",
"@types/preview-email": "2.0.1",
"@types/react": "18.0.25",
"@typescript-eslint/eslint-plugin": "5.42.1",
"eslint": "8.27.0",
"eslint-config-next": "12.3.1",
"eslint-config-prettier": "8.5.0",
"husky": "8.0.2",
"jest": "29.3.0",
"jest-environment-jsdom": "29.3.0",
"lint-staged": "13.0.3",
"prettier": "^2.7.1",
"prettier-plugin-prisma": "4.4.0",
"pretty-quick": "3.1.3",
"preview-email": "3.0.7",
"typescript": "^4.8.4"
},
"private": true
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -1,54 +0,0 @@
import { AuthenticationError, PromiseReturnType } from "blitz"
import Link from "next/link"
import { LabeledTextField } from "src/core/components/LabeledTextField"
import { Form, FORM_ERROR } from "src/core/components/Form"
import login from "src/auth/mutations/login"
import { Login } from "src/auth/validations"
import { useMutation } from "@blitzjs/rpc"
import { Routes } from "@blitzjs/next"
type LoginFormProps = {
onSuccess?: (user: PromiseReturnType<typeof login>) => void
}
export const LoginForm = (props: LoginFormProps) => {
const [loginMutation] = useMutation(login)
return (
<div>
<h1>Login</h1>
<Form
submitText="Login"
schema={Login}
initialValues={{ email: "", password: "" }}
onSubmit={async (values) => {
try {
const user = await loginMutation(values)
props.onSuccess?.(user)
} catch (error: any) {
if (error instanceof AuthenticationError) {
return { [FORM_ERROR]: "Sorry, those credentials are invalid" }
} else {
return {
[FORM_ERROR]:
"Sorry, we had an unexpected error. Please try again. - " + error.toString(),
}
}
}
}}
>
<LabeledTextField name="email" label="Email" placeholder="Email" />
<LabeledTextField name="password" label="Password" placeholder="Password" type="password" />
<div>
<Link href={Routes.ForgotPasswordPage()}>Forgot your password?</Link>
</div>
</Form>
<div style={{ marginTop: "1rem" }}>
Or <Link href={Routes.SignupPage()}>Sign Up</Link>
</div>
</div>
)
}
export default LoginForm

View File

@@ -1,42 +0,0 @@
import { LabeledTextField } from "src/core/components/LabeledTextField"
import { Form, FORM_ERROR } from "src/core/components/Form"
import signup from "src/auth/mutations/signup"
import { Signup } from "src/auth/validations"
import { useMutation } from "@blitzjs/rpc"
type SignupFormProps = {
onSuccess?: () => void
}
export const SignupForm = (props: SignupFormProps) => {
const [signupMutation] = useMutation(signup)
return (
<div>
<h1>Create an Account</h1>
<Form
submitText="Create Account"
schema={Signup}
initialValues={{ email: "", password: "" }}
onSubmit={async (values) => {
try {
await signupMutation(values)
props.onSuccess?.()
} catch (error: any) {
if (error.code === "P2002" && error.meta?.target?.includes("email")) {
// This error comes from Prisma
return { email: "This email is already being used" }
} else {
return { [FORM_ERROR]: error.toString() }
}
}
}}
>
<LabeledTextField name="email" label="Email" placeholder="Email" />
<LabeledTextField name="password" label="Password" placeholder="Password" type="password" />
</Form>
</div>
)
}
export default SignupForm

View File

@@ -1,25 +0,0 @@
import { NotFoundError } from "blitz"
import db from "db"
import { authenticateUser } from "./login"
import { ChangePassword } from "../validations"
import { resolver } from "@blitzjs/rpc"
import { SecurePassword } from "@blitzjs/auth/secure-password"
export default resolver.pipe(
resolver.zod(ChangePassword),
resolver.authorize(),
async ({ currentPassword, newPassword }, ctx) => {
const user = await db.user.findFirst({ where: { id: ctx.session.userId } })
if (!user) throw new NotFoundError()
await authenticateUser(user.email, currentPassword)
const hashedPassword = await SecurePassword.hash(newPassword.trim())
await db.user.update({
where: { id: user.id },
data: { hashedPassword },
})
return true
}
)

View File

@@ -1,42 +0,0 @@
import { generateToken, hash256 } from "@blitzjs/auth"
import { resolver } from "@blitzjs/rpc"
import db from "db"
import { forgotPasswordMailer } from "mailers/forgotPasswordMailer"
import { ForgotPassword } from "../validations"
const RESET_PASSWORD_TOKEN_EXPIRATION_IN_HOURS = 4
export default resolver.pipe(resolver.zod(ForgotPassword), async ({ email }) => {
// 1. Get the user
const user = await db.user.findFirst({ where: { email: email.toLowerCase() } })
// 2. Generate the token and expiration date.
const token = generateToken()
const hashedToken = hash256(token)
const expiresAt = new Date()
expiresAt.setHours(expiresAt.getHours() + RESET_PASSWORD_TOKEN_EXPIRATION_IN_HOURS)
// 3. If user with this email was found
if (user) {
// 4. Delete any existing password reset tokens
await db.token.deleteMany({ where: { type: "RESET_PASSWORD", userId: user.id } })
// 5. Save this new token in the database.
await db.token.create({
data: {
user: { connect: { id: user.id } },
type: "RESET_PASSWORD",
expiresAt,
hashedToken,
sentTo: user.email,
},
})
// 6. Send the email
await forgotPasswordMailer({ to: user.email, token }).send()
} else {
// 7. If no user found wait the same time so attackers can't tell the difference
await new Promise((resolve) => setTimeout(resolve, 750))
}
// 8. Return the same result whether a password reset email was sent or not
return
})

View File

@@ -1,32 +0,0 @@
import { SecurePassword } from "@blitzjs/auth/secure-password"
import { resolver } from "@blitzjs/rpc"
import { AuthenticationError } from "blitz"
import db from "db"
import { Role } from "types"
import { Login } from "../validations"
export const authenticateUser = async (rawEmail: string, rawPassword: string) => {
const { email, password } = Login.parse({ email: rawEmail, password: rawPassword })
const user = await db.user.findFirst({ where: { email } })
if (!user) throw new AuthenticationError()
const result = await SecurePassword.verify(user.hashedPassword, password)
if (result === SecurePassword.VALID_NEEDS_REHASH) {
// Upgrade hashed password with a more secure hash
const improvedHash = await SecurePassword.hash(password)
await db.user.update({ where: { id: user.id }, data: { hashedPassword: improvedHash } })
}
const { hashedPassword, ...rest } = user
return rest
}
export default resolver.pipe(resolver.zod(Login), async ({ email, password }, ctx) => {
// This throws an error if credentials are invalid
const user = await authenticateUser(email, password)
await ctx.session.$create({ userId: user.id, role: user.role as Role })
return user
})

View File

@@ -1,49 +0,0 @@
import { hash256 } from "@blitzjs/auth"
import db from "db"
import { ResetPassword } from "../validations"
import { SecurePassword } from "@blitzjs/auth/secure-password"
import login from "./login"
export class ResetPasswordError extends Error {
name = "ResetPasswordError"
message = "Reset password link is invalid or it has expired."
}
export default async function resetPassword(input, ctx) {
ResetPassword.parse(input)
// 1. Try to find this token in the database
const hashedToken = hash256(input.token)
const possibleToken = await db.token.findFirst({
where: { hashedToken, type: "RESET_PASSWORD" },
include: { user: true },
})
// 2. If token not found, error
if (!possibleToken) {
throw new ResetPasswordError()
}
const savedToken = possibleToken
// 3. Delete token so it can't be used again
await db.token.delete({ where: { id: savedToken.id } })
// 4. If token has expired, error
if (savedToken.expiresAt < new Date()) {
throw new ResetPasswordError()
}
// 5. Since token is valid, now we can update the user's password
const hashedPassword = await SecurePassword.hash(input.password.trim())
const user = await db.user.update({
where: { id: savedToken.userId },
data: { hashedPassword },
})
// 6. Revoke all existing login sessions for this user
await db.session.deleteMany({ where: { userId: user.id } })
// 7. Now log the user in with the new credentials
await login({ email: user.email, password: input.password }, ctx)
return true
}

View File

@@ -1,21 +0,0 @@
import db from "db"
import { SecurePassword } from "@blitzjs/auth/secure-password"
import { Role } from "types"
export default async function signup(input, ctx) {
const blitzContext = ctx
const hashedPassword = await SecurePassword.hash((input.password as string) || "test-password")
const email = (input.email as string) || "test" + Math.random() + "@test.com"
const user = await db.user.create({
data: { email, hashedPassword, role: "user" },
select: { id: true, name: true, email: true, role: true },
})
await blitzContext.session.$create({
userId: user.id,
role: user.role as Role,
})
return { userId: blitzContext.session.userId, ...user, email: input.email }
}

View File

@@ -1,42 +0,0 @@
import { z } from "zod"
export const email = z
.string()
.email()
.transform((str) => str.toLowerCase().trim())
export const password = z
.string()
.min(10)
.max(100)
.transform((str) => str.trim())
export const Signup = z.object({
email,
password,
})
export const Login = z.object({
email,
password: z.string(),
})
export const ForgotPassword = z.object({
email,
})
export const ResetPassword = z
.object({
password: password,
passwordConfirmation: password,
token: z.string(),
})
.refine((data) => data.password === data.passwordConfirmation, {
message: "Passwords don't match",
path: ["passwordConfirmation"], // set the path of the error
})
export const ChangePassword = z.object({
currentPassword: z.string(),
newPassword: password,
})

View File

@@ -1,12 +0,0 @@
import { AuthClientPlugin } from "@blitzjs/auth"
import { setupBlitzClient } from "@blitzjs/next"
import { BlitzRpcPlugin } from "@blitzjs/rpc"
export const { withBlitz } = setupBlitzClient({
plugins: [
AuthClientPlugin({
cookiePrefix: "web-cookie-prefix",
}),
BlitzRpcPlugin({}),
],
})

View File

@@ -1,18 +0,0 @@
import { setupBlitzServer } from "@blitzjs/next"
import { AuthServerPlugin, PrismaStorage } from "@blitzjs/auth"
import db from "db"
import { simpleRolesIsAuthorized } from "@blitzjs/auth"
import { BlitzLogger } from "blitz"
const { gSSP, gSP, api } = setupBlitzServer({
plugins: [
AuthServerPlugin({
cookiePrefix: "web-cookie-prefix",
storage: PrismaStorage(db),
isAuthorized: simpleRolesIsAuthorized,
}),
],
logger: BlitzLogger({}),
})
export { gSSP, gSP, api }

View File

@@ -1,83 +0,0 @@
import { useState, ReactNode, PropsWithoutRef } from "react"
import { FormProvider, useForm, UseFormProps } from "react-hook-form"
import { zodResolver } from "@hookform/resolvers/zod"
import { z } from "zod"
export interface FormProps<S extends z.ZodType<any, any>>
extends Omit<PropsWithoutRef<JSX.IntrinsicElements["form"]>, "onSubmit"> {
/** All your form fields */
children?: ReactNode
/** Text to display in the submit button */
submitText?: string
schema?: S
onSubmit: (values: z.infer<S>) => Promise<void | OnSubmitResult>
initialValues?: UseFormProps<z.infer<S>>["defaultValues"]
}
interface OnSubmitResult {
FORM_ERROR?: string
[prop: string]: any
}
export const FORM_ERROR = "FORM_ERROR"
export function Form<S extends z.ZodType<any, any>>({
children,
submitText,
schema,
initialValues,
onSubmit,
...props
}: FormProps<S>) {
const ctx = useForm<z.infer<S>>({
mode: "onBlur",
resolver: schema ? zodResolver(schema) : undefined,
defaultValues: initialValues,
})
const [formError, setFormError] = useState<string | null>(null)
return (
<FormProvider {...ctx}>
<form
onSubmit={ctx.handleSubmit(async (values) => {
const result = (await onSubmit(values)) || {}
for (const [key, value] of Object.entries(result)) {
if (key === FORM_ERROR) {
setFormError(value)
} else {
ctx.setError(key as any, {
type: "submit",
message: value,
})
}
}
})}
className="form"
{...props}
>
{/* Form fields supplied as children are rendered here */}
{children}
{formError && (
<div role="alert" style={{ color: "red" }}>
{formError}
</div>
)}
{submitText && (
<button type="submit" disabled={ctx.formState.isSubmitting}>
{submitText}
</button>
)}
<style global jsx>{`
.form > * + * {
margin-top: 1rem;
}
`}</style>
</form>
</FormProvider>
)
}
export default Form

View File

@@ -1,61 +0,0 @@
import { forwardRef, PropsWithoutRef, ComponentPropsWithoutRef } from "react"
import { useFormContext } from "react-hook-form"
import { ErrorMessage } from "@hookform/error-message"
export interface LabeledTextFieldProps extends PropsWithoutRef<JSX.IntrinsicElements["input"]> {
/** Field name. */
name: string
/** Field label. */
label: string
/** Field type. Doesn't include radio buttons and checkboxes */
type?: "text" | "password" | "email" | "number"
outerProps?: PropsWithoutRef<JSX.IntrinsicElements["div"]>
labelProps?: ComponentPropsWithoutRef<"label">
}
export const LabeledTextField = forwardRef<HTMLInputElement, LabeledTextFieldProps>(
({ label, outerProps, labelProps, name, ...props }, ref) => {
const {
register,
formState: { isSubmitting, errors },
} = useFormContext()
return (
<div {...outerProps}>
<label {...labelProps}>
{label}
<input disabled={isSubmitting} {...register(name)} {...props} />
</label>
<ErrorMessage
render={({ message }) => (
<div role="alert" style={{ color: "red" }}>
{message}
</div>
)}
errors={errors}
name={name}
/>
<style jsx>{`
label {
display: flex;
flex-direction: column;
align-items: start;
font-size: 1rem;
}
input {
font-size: 1rem;
padding: 0.25rem 0.5rem;
border-radius: 3px;
border: 1px solid purple;
appearance: none;
margin-top: 0.5rem;
}
`}</style>
</div>
)
}
)
export default LabeledTextField

View File

@@ -1,21 +0,0 @@
import React from "react"
import Head from "next/head"
import { BlitzLayout } from "@blitzjs/next"
const Layout: BlitzLayout<{ title?: string; children?: React.ReactNode }> = ({
title,
children,
}) => {
return (
<>
<Head>
<title>{title || "__name__"}</title>
<link rel="icon" href="/favicon.ico" />
</Head>
{children}
</>
)
}
export default Layout

View File

@@ -1,20 +0,0 @@
import Head from "next/head"
import { ErrorComponent } from "@blitzjs/next"
// ------------------------------------------------------
// This page is rendered if a route match is not found
// ------------------------------------------------------
export default function Page404() {
const statusCode = 404
const title = "This page could not be found"
return (
<>
<Head>
<title>
{statusCode}: {title}
</title>
</Head>
<ErrorComponent statusCode={statusCode} title={title} />
</>
)
}

View File

@@ -1,34 +0,0 @@
import { ErrorFallbackProps, ErrorComponent, ErrorBoundary, AppProps } from "@blitzjs/next"
import { AuthenticationError, AuthorizationError } from "blitz"
import React from "react"
import { withBlitz } from "src/blitz-client"
function RootErrorFallback({ error }: ErrorFallbackProps) {
if (error instanceof AuthenticationError) {
return <div>Error: You are not authenticated</div>
} else if (error instanceof AuthorizationError) {
return (
<ErrorComponent
statusCode={error.statusCode}
title="Sorry, you are not authorized to access this"
/>
)
} else {
return (
<ErrorComponent
statusCode={(error as any)?.statusCode || 400}
title={error.message || error.name}
/>
)
}
}
function MyApp({ Component, pageProps }: AppProps) {
return (
<ErrorBoundary FallbackComponent={RootErrorFallback}>
<Component {...pageProps} />
</ErrorBoundary>
)
}
export default withBlitz(MyApp)

Some files were not shown because too many files have changed in this diff Show More