Compare commits
14 Commits
@blitzjs/c
...
fix-javasc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33f649f64c | ||
|
|
8542c14952 | ||
|
|
7e0e0f984c | ||
|
|
d814c2d2d8 | ||
|
|
29c2b029ac | ||
|
|
ed22706e5f | ||
|
|
3e8f04ed03 | ||
|
|
e82a79be50 | ||
|
|
b1fdb63470 | ||
|
|
38d945a3fb | ||
|
|
ac587b6ac3 | ||
|
|
c07a13eefb | ||
|
|
9f316d73f5 | ||
|
|
f84d77a425 |
@@ -3866,6 +3866,36 @@
|
||||
"doc",
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "maotora",
|
||||
"name": "Maotora ᕙ(⇀‸↼‶)ᕗ",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/5174884?v=4",
|
||||
"profile": "https://maotoramm.com",
|
||||
"contributions": [
|
||||
"doc",
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "vitaliemiron",
|
||||
"name": "Vitalie",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/45145592?v=4",
|
||||
"profile": "https://github.com/vitaliemiron",
|
||||
"contributions": [
|
||||
"doc",
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "nelsonmestevao",
|
||||
"name": "Nelson Estevão",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/19409687?v=4",
|
||||
"profile": "https://estevao.org",
|
||||
"contributions": [
|
||||
"doc",
|
||||
"code"
|
||||
]
|
||||
}
|
||||
],
|
||||
"contributorsPerLine": 7,
|
||||
|
||||
7
.changeset/many-fans-fetch.md
Normal file
7
.changeset/many-fans-fetch.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@blitzjs/recipe-chakra-ui": patch
|
||||
"@blitzjs/recipe-next-ui": patch
|
||||
"@blitzjs/recipe-tailwind": patch
|
||||
---
|
||||
|
||||
This change reflects the directory change from app/pages to src/pages for the receipts chakra-ui, next-ui, tailwind. It checks for which directories exists and is compatible with either versions.
|
||||
5
.changeset/nice-boxes-travel.md
Normal file
5
.changeset/nice-boxes-travel.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@blitzjs/rpc": patch
|
||||
---
|
||||
|
||||
Fix return type of the `invoke` method from returning type function to return the type of resolved data
|
||||
5
.changeset/nine-bags-rhyme.md
Normal file
5
.changeset/nine-bags-rhyme.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@blitzjs/generator": patch
|
||||
---
|
||||
|
||||
fix: add missing key prop to LabelSelectField
|
||||
9
.changeset/ninety-pots-learn.md
Normal file
9
.changeset/ninety-pots-learn.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
"@blitzjs/auth": patch
|
||||
"@blitzjs/next": patch
|
||||
"@blitzjs/rpc": patch
|
||||
"blitz": patch
|
||||
"@blitzjs/generator": patch
|
||||
---
|
||||
|
||||
Update the version of next in the new template from 13.2 to 13.3.0
|
||||
5
.changeset/plenty-gifts-provide.md
Normal file
5
.changeset/plenty-gifts-provide.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"blitz": patch
|
||||
---
|
||||
|
||||
The issue is that the version provided, "13.2", is not a valid SemVer version. A valid SemVer version must have three components: major, minor, and patch (e.g., "13.2.0").
|
||||
@@ -178,6 +178,7 @@
|
||||
"lucky-cows-try",
|
||||
"lucky-months-guess",
|
||||
"lucky-years-turn",
|
||||
"many-fans-fetch",
|
||||
"mean-ears-speak",
|
||||
"mean-gorillas-reply",
|
||||
"modern-cameras-pull",
|
||||
@@ -191,12 +192,14 @@
|
||||
"nervous-dolls-rule",
|
||||
"new-coats-turn",
|
||||
"new-olives-protect",
|
||||
"nice-boxes-travel",
|
||||
"nice-deers-dream",
|
||||
"nice-starfishes-live",
|
||||
"nine-birds-confess",
|
||||
"nine-onions-admire",
|
||||
"ninety-lies-press",
|
||||
"ninety-pets-heal",
|
||||
"ninety-pots-learn",
|
||||
"ninety-rice-tickle",
|
||||
"odd-bears-run",
|
||||
"olive-bees-buy",
|
||||
@@ -210,6 +213,7 @@
|
||||
"perfect-eyes-repeat",
|
||||
"perfect-trains-double",
|
||||
"plenty-bottles-swim",
|
||||
"plenty-gifts-provide",
|
||||
"plenty-kiwis-greet",
|
||||
"polite-lizards-love",
|
||||
"poor-peas-lick",
|
||||
|
||||
5
.changeset/wise-lies-relate.md
Normal file
5
.changeset/wise-lies-relate.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@blitzjs/auth": patch
|
||||
---
|
||||
|
||||
Fix: Add missing entry to expose next-auth adapter in Blitz Auth
|
||||
40
.github/workflows/main.yml
vendored
40
.github/workflows/main.yml
vendored
@@ -109,9 +109,44 @@ jobs:
|
||||
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
|
||||
|
||||
|
||||
Generator:
|
||||
name: :"Generator Test ${{matrix.language}}"
|
||||
strategy:
|
||||
matrix:
|
||||
language:
|
||||
- javascript
|
||||
- typescript
|
||||
os:
|
||||
- ubuntu-latest
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup PNPM
|
||||
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
|
||||
with:
|
||||
version: 7.11.0
|
||||
- name: Setup node@${{ matrix.NODE_VERSION }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.NODE_VERSION }}
|
||||
cache: "pnpm"
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
shell: bash
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
shell: bash
|
||||
- name: Generate
|
||||
run: |
|
||||
mkdir test
|
||||
cd test
|
||||
pnpm blitz new . --language=${{matrix.language}}
|
||||
|
||||
Integration-Tests:
|
||||
name: "Integration Test: ${{matrix.folder}} @ ${{ matrix.os }} "
|
||||
name: "Integration Test: ${{matrix.folder}} @ ${{matrix.os}} "
|
||||
needs: [find-integration-tests]
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -119,7 +154,6 @@ jobs:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- run: echo ${{matrix.folder}}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<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-408-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-411-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">
|
||||
<img alt="" src="https://img.shields.io/npm/l/blitz.svg?style=for-the-badge&labelColor=000000&color=blue">
|
||||
@@ -721,6 +721,9 @@ Thanks to these wonderful people ([emoji key](https://allcontributors.org/docs/e
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -1,5 +1,28 @@
|
||||
# next-blitz-auth
|
||||
|
||||
## 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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "next-blitz-auth",
|
||||
"version": "0.1.1-beta.0",
|
||||
"version": "0.1.1-beta.2",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"blitz:dev": "next dev",
|
||||
@@ -19,7 +19,7 @@
|
||||
"@tanstack/react-query": "4.0.10",
|
||||
"blitz": "workspace:*",
|
||||
"flatted": "3.2.7",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"prisma": "^4.5.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
"@hookform/error-message": "2.0.0",
|
||||
"@hookform/resolvers": "2.9.10",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"next": "13.2.4",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"next": "13.3.0",
|
||||
"openid-client": "5.2.1",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
"@hookform/error-message": "2.0.0",
|
||||
"@hookform/resolvers": "2.9.10",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"next": "13.2.4",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"next": "13.3.0",
|
||||
"next-auth": "4.18.7",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"blitz": "workspace:*",
|
||||
"jest": "29.3.0",
|
||||
"jest-environment-jsdom": "29.3.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"passport-mock-strategy": "2.0.0",
|
||||
"passport-twitter": "1.0.4",
|
||||
"prisma": "4.6.1",
|
||||
|
||||
@@ -17,16 +17,16 @@
|
||||
"prisma:studio": "prisma studio"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"@hookform/error-message": "2.0.0",
|
||||
"@hookform/resolvers": "2.9.10",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"delay": "5.0.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -15,7 +15,8 @@ let appPort: number
|
||||
|
||||
const runTests = () => {
|
||||
describe("Auth", () => {
|
||||
describe("custom plugin", () => {
|
||||
/* TODO - Add a non flaky Integration Test for custom plugin
|
||||
describe("custom plugin", () => {
|
||||
it("custom plugin - events", async () => {
|
||||
const browser = await webdriver(appPort, "/custom-plugin")
|
||||
let text = await browser.elementByCss("#page").text()
|
||||
@@ -34,7 +35,7 @@ const runTests = () => {
|
||||
await waitFor(100)
|
||||
let text = await browser.elementByCss("#before-req").text()
|
||||
expect(text).toBe("customHeaderValue")
|
||||
await waitFor(1000)
|
||||
await waitFor(2000)
|
||||
text = await browser.elementByCss("#before-res").text()
|
||||
expect(text).toBe("55")
|
||||
if (browser) {
|
||||
@@ -42,6 +43,7 @@ const runTests = () => {
|
||||
}
|
||||
})
|
||||
})
|
||||
*/
|
||||
describe("unauthenticated", () => {
|
||||
it("should render result for open query", async () => {
|
||||
const browser = await webdriver(appPort, "/noauth-query")
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
"prisma:studio": "prisma studio"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"lowdb": "3.0.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -16,19 +16,19 @@
|
||||
"schema": "db/schema.prisma"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"lowdb": "3.0.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@next/bundle-analyzer": "12.0.8",
|
||||
"@types/express": "4.17.13",
|
||||
"@types/fs-extra": "9.0.13",
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"next": "13.2.4",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"next": "13.3.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
"prisma:studio": "prisma studio"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"lowdb": "3.0.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -16,19 +16,19 @@
|
||||
"prisma:studio": "prisma studio"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"lowdb": "3.0.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@next/bundle-analyzer": "12.0.8",
|
||||
"@types/express": "4.17.13",
|
||||
"@types/fs-extra": "9.0.13",
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"@prisma/client": "4.6.1",
|
||||
"@tanstack/react-query": "4.0.10",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"next": "13.2.4",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"next": "13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
|
||||
@@ -16,18 +16,18 @@
|
||||
"schema": "db/schema.prisma"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"lowdb": "3.0.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@next/bundle-analyzer": "12.0.8",
|
||||
"@types/express": "4.17.13",
|
||||
"@types/fs-extra": "9.0.13",
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"next": "13.2.4",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"next": "13.3.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"next": "13.2.4",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"next": "13.3.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
|
||||
@@ -16,19 +16,19 @@
|
||||
"schema": "db/schema.prisma"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/auth": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/next": "workspace:2.0.0-beta.26",
|
||||
"@blitzjs/rpc": "workspace:2.0.0-beta.26",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "workspace:2.0.0-beta.24",
|
||||
"blitz": "workspace:2.0.0-beta.26",
|
||||
"lowdb": "3.0.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@next/bundle-analyzer": "12.0.8",
|
||||
"@types/express": "4.17.13",
|
||||
"@types/fs-extra": "9.0.13",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"husky": "8.0.2",
|
||||
"jsdom": "^19.0.0",
|
||||
"lint-staged": "13.0.3",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"only-allow": "1.1.0",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-plugin-prisma": "4.4.0",
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# @blitzjs/auth
|
||||
|
||||
## 2.0.0-beta.26
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- e82a79be5: Update the version of next in the new template from 13.2 to 13.3.0
|
||||
- Updated dependencies [e82a79be5]
|
||||
- Updated dependencies [38d945a3f]
|
||||
- blitz@2.0.0-beta.26
|
||||
|
||||
## 2.0.0-beta.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- blitz@2.0.0-beta.25
|
||||
|
||||
## 2.0.0-beta.24
|
||||
|
||||
### Major Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/auth",
|
||||
"version": "2.0.0-beta.24",
|
||||
"version": "2.0.0-beta.26",
|
||||
"homepage": "https://blitzjs.com/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -23,7 +23,8 @@
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"dist/**",
|
||||
"secure-password.*"
|
||||
"secure-password.*",
|
||||
"next-auth.*"
|
||||
],
|
||||
"dependencies": {
|
||||
"@types/b64-lite": "1.3.0",
|
||||
@@ -47,7 +48,7 @@
|
||||
"url": "0.11.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"next": "*",
|
||||
"next-auth": "*",
|
||||
"secure-password": "4.0.0"
|
||||
@@ -64,7 +65,7 @@
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@testing-library/react": "13.4.0",
|
||||
"@testing-library/react-hooks": "8.0.1",
|
||||
"@types/cookie": "0.4.1",
|
||||
@@ -72,8 +73,8 @@
|
||||
"@types/jsonwebtoken": "8.5.8",
|
||||
"@types/react": "18.0.25",
|
||||
"@types/react-dom": "17.0.14",
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"next": "13.2.4",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"next": "13.3.0",
|
||||
"next-auth": "4.18.7",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# @blitzjs/next
|
||||
|
||||
## 2.0.0-beta.26
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- e82a79be5: Update the version of next in the new template from 13.2 to 13.3.0
|
||||
- Updated dependencies [e82a79be5]
|
||||
- Updated dependencies [38d945a3f]
|
||||
- @blitzjs/rpc@2.0.0-beta.26
|
||||
- blitz@2.0.0-beta.26
|
||||
|
||||
## 2.0.0-beta.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f84d77a42]
|
||||
- @blitzjs/rpc@2.0.0-beta.25
|
||||
- blitz@2.0.0-beta.25
|
||||
|
||||
## 2.0.0-beta.24
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/next",
|
||||
"version": "2.0.0-beta.24",
|
||||
"version": "2.0.0-beta.26",
|
||||
"homepage": "https://blitzjs.com/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -29,7 +29,7 @@
|
||||
"eslint.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"@blitzjs/rpc": "2.0.0-beta.24",
|
||||
"@blitzjs/rpc": "2.0.0-beta.26",
|
||||
"@types/hoist-non-react-statics": "3.3.1",
|
||||
"debug": "4.3.3",
|
||||
"fs-extra": "10.0.1",
|
||||
@@ -38,12 +38,12 @@
|
||||
"supports-color": "8.1.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"next": "*",
|
||||
"react": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@testing-library/dom": "8.13.0",
|
||||
"@testing-library/jest-dom": "5.16.3",
|
||||
"@testing-library/react": "13.4.0",
|
||||
@@ -53,10 +53,10 @@
|
||||
"@types/react": "18.0.25",
|
||||
"@types/react-dom": "17.0.14",
|
||||
"@types/testing-library__react-hooks": "4.0.0",
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"cross-spawn": "7.0.3",
|
||||
"find-up": "4.1.0",
|
||||
"next": "13.2.4",
|
||||
"next": "13.3.0",
|
||||
"next-router-mock": "0.9.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @blitzjs/rpc
|
||||
|
||||
## 2.0.0-beta.26
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- e82a79be5: Update the version of next in the new template from 13.2 to 13.3.0
|
||||
- Updated dependencies [e82a79be5]
|
||||
- Updated dependencies [38d945a3f]
|
||||
- blitz@2.0.0-beta.26
|
||||
|
||||
## 2.0.0-beta.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- f84d77a42: Fix return type of the `invoke` method from returning type function to return the type of resolved data
|
||||
- blitz@2.0.0-beta.25
|
||||
|
||||
## 2.0.0-beta.24
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/rpc",
|
||||
"version": "2.0.0-beta.24",
|
||||
"version": "2.0.0-beta.26",
|
||||
"homepage": "https://blitzjs.com/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -37,19 +37,19 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tanstack/query-core": "4.24.4",
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"next": "*",
|
||||
"react": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/auth": "2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/auth": "2.0.0-beta.26",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@tanstack/query-core": "4.24.4",
|
||||
"@types/debug": "4.1.7",
|
||||
"@types/react": "18.0.25",
|
||||
"@types/react-dom": "17.0.14",
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"next": "13.2.4",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"next": "13.3.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"typescript": "^4.8.4",
|
||||
|
||||
@@ -4,17 +4,17 @@ import {RpcClient} from "./rpc"
|
||||
export async function invoke<T extends (...args: any) => any, TInput = FirstParam<T>>(
|
||||
queryFn: T,
|
||||
params: TInput,
|
||||
): Promise<T>
|
||||
): Promise<PromiseReturnType<T>>
|
||||
export async function invoke<T extends (...args: any) => any, TInput = FirstParam<T>>(
|
||||
queryFn: T,
|
||||
params: TInput,
|
||||
isServer: boolean,
|
||||
): Promise<T>
|
||||
): Promise<PromiseReturnType<T>>
|
||||
export async function invoke<T extends (...args: any) => any, TInput = FirstParam<T>>(
|
||||
queryFn: T,
|
||||
params: TInput,
|
||||
isServer = typeof window === "undefined" ? true : false,
|
||||
): Promise<T> {
|
||||
): Promise<PromiseReturnType<T>> {
|
||||
if (typeof queryFn === "undefined") {
|
||||
throw new Error(
|
||||
"invoke is missing the first argument - it must be a query or mutation function",
|
||||
@@ -28,15 +28,15 @@ export async function invoke<T extends (...args: any) => any, TInput = FirstPara
|
||||
)
|
||||
})
|
||||
const ctx = await getBlitzContext()
|
||||
return queryFn(params, ctx)
|
||||
return queryFn(params, ctx) as PromiseReturnType<T>
|
||||
}
|
||||
|
||||
if (isClient) {
|
||||
const fn = queryFn as unknown as RpcClient
|
||||
return fn(params, {fromInvoke: true}) as ReturnType<T>
|
||||
return fn(params, {fromInvoke: true}) as PromiseReturnType<T>
|
||||
} else {
|
||||
const fn = queryFn as unknown as RpcClient
|
||||
return fn(params) as ReturnType<T>
|
||||
return fn(params) as PromiseReturnType<T>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# blitz
|
||||
|
||||
## 2.0.0-beta.26
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- e82a79be5: Update the version of next in the new template from 13.2 to 13.3.0
|
||||
- 38d945a3f: The issue is that the version provided, "13.2", is not a valid SemVer version. A valid SemVer version must have three components: major, minor, and patch (e.g., "13.2.0").
|
||||
- Updated dependencies [e82a79be5]
|
||||
- @blitzjs/generator@2.0.0-beta.26
|
||||
|
||||
## 2.0.0-beta.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @blitzjs/generator@2.0.0-beta.25
|
||||
|
||||
## 2.0.0-beta.24
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "blitz",
|
||||
"version": "2.0.0-beta.24",
|
||||
"version": "2.0.0-beta.26",
|
||||
"homepage": "https://blitzjs.com/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -30,7 +30,7 @@
|
||||
"blitz": "bin/blitz"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blitzjs/generator": "2.0.0-beta.24",
|
||||
"@blitzjs/generator": "2.0.0-beta.26",
|
||||
"@mrleebo/prisma-ast": "0.2.6",
|
||||
"@types/global-agent": "2.1.1",
|
||||
"arg": "5.0.1",
|
||||
@@ -80,7 +80,7 @@
|
||||
"watchpack": "2.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.24",
|
||||
"@blitzjs/config": "workspace:2.0.0-beta.26",
|
||||
"@types/cookie": "0.4.1",
|
||||
"@types/cross-spawn": "6.0.2",
|
||||
"@types/debug": "4.1.7",
|
||||
|
||||
@@ -18,7 +18,8 @@ export const codegenTasks = async () => {
|
||||
const nextClientIndex = join(nextDir, "../..", "client", "index.js")
|
||||
const readFile = await fs.readFile(nextClientIndex)
|
||||
const packageJson = await getPackageJson()
|
||||
const nextVersion = packageJson.dependencies.next
|
||||
const version = packageJson.dependencies.next
|
||||
const nextVersion = semver.clean(version, {loose: true}) || semver.valid(semver.coerce(version))
|
||||
|
||||
if (nextVersion && /^([~^])?12/.test(nextVersion)) {
|
||||
const updatedFile = readFile
|
||||
|
||||
@@ -8,6 +8,7 @@ import resolveFrom from "resolve-from"
|
||||
import Watchpack from "watchpack"
|
||||
import {isInternalBlitzMonorepoDevelopment} from "./helpers"
|
||||
import {findNodeModulesRoot} from "./find-node-modules"
|
||||
const debug = require("debug")("blitz")
|
||||
export const CONFIG_FILE = ".blitz.config.compiled.js"
|
||||
export const NEXT_CONFIG_FILE = "next.config.js"
|
||||
export const PHASE_PRODUCTION_SERVER = "phase-production-server"
|
||||
@@ -160,7 +161,7 @@ export const loadConfig = (pagesDir: string) => {
|
||||
// eslint-disable-next-line no-eval -- block webpack from following this module path
|
||||
userConfigModule = eval("require")(path)
|
||||
} catch {
|
||||
console.log("Did not find custom config file")
|
||||
debug("Did not find custom config file")
|
||||
// In case user does not have custom config
|
||||
userConfigModule = {}
|
||||
}
|
||||
|
||||
@@ -18,14 +18,28 @@ function getBlitzPath(type: string) {
|
||||
}
|
||||
}
|
||||
|
||||
function getAppSourceDir() {
|
||||
const srcPath = "src/pages"
|
||||
const srcDir = fs.existsSync(path.resolve(srcPath))
|
||||
|
||||
if (srcDir) {
|
||||
return "src"
|
||||
} else {
|
||||
return "app"
|
||||
}
|
||||
}
|
||||
|
||||
function findPageDir() {
|
||||
const srcPagePath = `src/pages`
|
||||
const srcPage = fs.existsSync(path.resolve(srcPagePath))
|
||||
const srcPage = getAppSourceDir()
|
||||
|
||||
if (srcPage) {
|
||||
return srcPagePath
|
||||
} else {
|
||||
return `pages`
|
||||
switch (srcPage) {
|
||||
case "src": {
|
||||
return srcPagePath
|
||||
}
|
||||
default: {
|
||||
return `pages`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +50,9 @@ export const paths = {
|
||||
app() {
|
||||
return `${findPageDir()}/_app${ext(true)}`
|
||||
},
|
||||
appSrcDirectory() {
|
||||
return getAppSourceDir()
|
||||
},
|
||||
blitzServer() {
|
||||
return getBlitzPath("server")
|
||||
},
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @blitzjs/codemod
|
||||
|
||||
## 2.0.0-beta.26
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [e82a79be5]
|
||||
- Updated dependencies [38d945a3f]
|
||||
- blitz@2.0.0-beta.26
|
||||
- @blitzjs/generator@2.0.0-beta.26
|
||||
|
||||
## 2.0.0-beta.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @blitzjs/generator@2.0.0-beta.25
|
||||
- blitz@2.0.0-beta.25
|
||||
|
||||
## 2.0.0-beta.24
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/codemod",
|
||||
"version": "2.0.0-beta.24",
|
||||
"version": "2.0.0-beta.26",
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"dev": "watch unbuild src --wait=0.2",
|
||||
@@ -25,9 +25,9 @@
|
||||
"@babel/plugin-proposal-class-properties": "7.17.12",
|
||||
"@babel/plugin-syntax-jsx": "7.17.12",
|
||||
"@babel/plugin-syntax-typescript": "7.17.12",
|
||||
"@blitzjs/generator": "2.0.0-beta.24",
|
||||
"@blitzjs/generator": "2.0.0-beta.26",
|
||||
"arg": "5.0.1",
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"chalk": "^4.1.0",
|
||||
"cross-spawn": "7.0.3",
|
||||
"debug": "4.3.3",
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# @blitzjs/config
|
||||
|
||||
## 2.0.0-beta.26
|
||||
|
||||
## 2.0.0-beta.25
|
||||
|
||||
## 2.0.0-beta.24
|
||||
|
||||
## 2.0.0-beta.23
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@blitzjs/config",
|
||||
"private": true,
|
||||
"version": "2.0.0-beta.24",
|
||||
"version": "2.0.0-beta.26",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "5.42.1",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @blitzjs/generator
|
||||
|
||||
## 2.0.0-beta.26
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- e82a79be5: Update the version of next in the new template from 13.2 to 13.3.0
|
||||
|
||||
## 2.0.0-beta.25
|
||||
|
||||
## 2.0.0-beta.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blitzjs/generator",
|
||||
"version": "2.0.0-beta.24",
|
||||
"version": "2.0.0-beta.26",
|
||||
"homepage": "https://blitzjs.com/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -54,7 +54,7 @@
|
||||
"zod": "3.20.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "2.0.0-beta.24",
|
||||
"@blitzjs/config": "2.0.0-beta.26",
|
||||
"@juanm04/cpx": "2.0.1",
|
||||
"@types/babel__core": "7.1.19",
|
||||
"@types/diff": "5.0.2",
|
||||
|
||||
@@ -27,7 +27,7 @@ export const LabeledSelectField = forwardRef<HTMLSelectElement, LabeledSelectFie
|
||||
<label>
|
||||
{label}
|
||||
<select {...input} disabled={submitting} {...props} ref={ref}>
|
||||
{options && options.map((value) => <option value={value.id}>{value[name]}</option>)}
|
||||
{options && options.map((value) => <option key={value.id} value={value.id}>{value[name]}</option>)}
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@@ -57,4 +57,4 @@ export const LabeledSelectField = forwardRef<HTMLSelectElement, LabeledSelectFie
|
||||
}
|
||||
)
|
||||
|
||||
export default LabeledSelectField
|
||||
export default LabeledSelectField
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"@blitzjs/rpc": "latest",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "latest",
|
||||
"next": "13.2",
|
||||
"next": "^13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"@blitzjs/rpc": "latest",
|
||||
"@prisma/client": "4.6.1",
|
||||
"blitz": "latest",
|
||||
"next": "13.2",
|
||||
"next": "^13.3.0",
|
||||
"prisma": "4.6.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"dependencies": {
|
||||
"@blitzjs/next": "latest",
|
||||
"blitz": "latest",
|
||||
"next": "13.2",
|
||||
"next": "^13.3.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"ts-node": "10.9.1"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"dependencies": {
|
||||
"@blitzjs/next": "latest",
|
||||
"blitz": "latest",
|
||||
"next": "13.2",
|
||||
"next": "^13.3.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"ts-node": "10.9.1"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@typescript-eslint/parser": "5.9.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blitzjs/config": "2.0.0-beta.24",
|
||||
"@blitzjs/config": "2.0.0-beta.26",
|
||||
"@types/react": "18.0.25",
|
||||
"@types/react-dom": "17.0.14",
|
||||
"react": "18.2.0",
|
||||
|
||||
669
pnpm-lock.yaml
generated
669
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import {addImport, paths, Program, RecipeBuilder} from "blitz/installer"
|
||||
import type {NodePath} from "ast-types/lib/node-path"
|
||||
import j from "jscodeshift"
|
||||
|
||||
function wrapComponentWithBumbagProvider(program: Program) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -139,7 +139,7 @@ export default RecipeBuilder()
|
||||
stepId: "updateLabeledTextField",
|
||||
stepName: "Update the `LabeledTextField` with Chakra UI's `Input` component",
|
||||
explanation: `The LabeledTextField component uses Chakra UI's input component`,
|
||||
singleFileSearch: "src/core/components/LabeledTextField.tsx",
|
||||
singleFileSearch: `${paths.appSrcDirectory()}/core/components/LabeledTextField.tsx`,
|
||||
transform(program) {
|
||||
// Add ComponentPropsWithoutRef import
|
||||
program.find(j.ImportDeclaration, {source: {value: "react"}}).forEach((path) => {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24"
|
||||
"blitz": "2.0.0-beta.26"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24"
|
||||
"blitz": "2.0.0-beta.26"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0",
|
||||
"uuid": "^8.3.1"
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -111,7 +111,7 @@ export default RecipeBuilder()
|
||||
stepId: "updateLabeledTextField",
|
||||
stepName: "Update the `LabeledTextField` with Next UI's `Input` component",
|
||||
explanation: `The LabeledTextField component uses Next UI's input component`,
|
||||
singleFileSearch: "src/core/components/LabeledTextField.tsx",
|
||||
singleFileSearch: `${paths.appSrcDirectory()}/core/components/LabeledTextField.tsx`,
|
||||
transform(program) {
|
||||
// Add ComponentPropsWithoutRef import
|
||||
program.find(j.ImportDeclaration, {source: {value: "react"}}).forEach((path) => {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24"
|
||||
"blitz": "2.0.0-beta.26"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24"
|
||||
"blitz": "2.0.0-beta.26"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24"
|
||||
"blitz": "2.0.0-beta.26"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0",
|
||||
"uuid": "^8.3.1"
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// tailwind.config.js
|
||||
module.exports = {
|
||||
content: ["{pages,app}/**/*.{js,ts,jsx,tsx}"],
|
||||
content: ["./{src,app,pages}/**/*.{js,ts,jsx,tsx}"],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/blitz-js/blitz#readme",
|
||||
"dependencies": {
|
||||
"blitz": "2.0.0-beta.24",
|
||||
"blitz": "2.0.0-beta.26",
|
||||
"jscodeshift": "0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user