Elliot DeNolf
36f4f23463
chore(release): v3.0.0-beta.44 [skip ci]
2024-06-11 09:46:31 -04:00
Alessio Gravili
7b7dc71845
fix: get auto type-gen to work on turbo, by running type gen in a child process outside turbo/webpack ( #6714 )
...
Before on turbo: https://github.com/vercel/next.js/issues/66723
2024-06-10 22:03:12 +00:00
Elliot DeNolf
7309d474ee
feat!: type auto-generation ( #6657 )
...
Types are now auto-generated by default.
You can opt-out of this behavior by setting:
```ts
buildConfig({
// Rest of config
typescript: {
autoGenerate: false
},
})
```
2024-06-10 13:42:44 -04:00
Elliot DeNolf
8b95218577
chore(release): v3.0.0-beta.43 [skip ci]
2024-06-07 17:45:28 -04:00
Jarrod Flesch
52c81ad525
feat: adds draft validation option ( #6677 )
...
## Description
Allows draft validation to be enabled at the config level.
You can enable this by:
```ts
// ...collectionConfig
versions: {
drafts: {
validate: true // defaults to false
}
}
```
2024-06-07 15:22:03 -04:00
Paul
8ec836737e
chore: add turbo resolveAlias mock alias to hide webpack warnings ( #6676 )
2024-06-07 17:23:35 +00:00
Jacob Fletcher
7c8d562f03
fix(next): live preview device position when using zoom ( #6665 )
2024-06-07 10:17:49 -04:00
Alessio Gravili
9bd9e7a986
feat!: upgrade minimum node 20 version from 20.6.0 to 20.9.0 ( #6659 )
...
**BREAKING**:
- This bumps the minimum required node version from node 20.6.0 to node
20.9.0. This is because 20.6.0 breaks type generation due to a CJS node
bug, and 20.9.0 is the next v20 LTS version. The minimum node 18 version
stays the same (18.20.2)
2024-06-06 17:15:21 +00:00
Elliot DeNolf
66e00f8172
chore(release): v3.0.0-beta.42 [skip ci]
2024-06-06 12:21:02 -04:00
Elliot DeNolf
aee3ee21d1
chore(release): v3.0.0-beta.41 [skip ci]
2024-06-05 16:25:52 -04:00
Alessio Gravili
2077da8665
fix: update file-type dependency and fix dependency version mismatch ( #6638 )
2024-06-05 10:55:02 -04:00
Alessio Gravili
b2751f75d5
feat: support Next.js basePath config property ( #6628 )
2024-06-04 21:38:28 -04:00
Elliot DeNolf
6659fd1b97
chore(release): v3.0.0-beta.40 [skip ci]
2024-06-03 22:37:24 -04:00
Alessio Gravili
59cde0dbb3
feat: match next.js env file loading behavior in bin scripts & importConfig, clean up installed packages & mismatching package versions ( #6601 )
2024-06-03 21:23:05 +00:00
Elliot DeNolf
c68189788c
chore(release): v3.0.0-beta.39 [skip ci]
2024-05-30 14:26:03 -04:00
Jacob Fletcher
e603c83f55
fix(next): ssr live preview was not dispatching document save events ( #6572 )
2024-05-30 14:20:22 -04:00
Elliot DeNolf
b86d4c647f
chore(release): v3.0.0-beta.38 [skip ci]
2024-05-30 11:24:12 -04:00
Jacob Fletcher
92f458dad2
feat(next,ui): improves loading states ( #6434 )
2024-05-29 14:01:13 -04:00
Jacob Fletcher
321e97f9fe
feat: extracts buildFormState logic from endpoint for reuse ( #6501 )
2024-05-29 12:51:16 -04:00
Elliot DeNolf
4e0dfd410d
chore(release): v3.0.0-beta.37 [skip ci]
2024-05-29 10:54:45 -04:00
Alessio Gravili
c383f391e3
feat(richtext-lexical): i18n support ( #6524 )
2024-05-28 09:10:39 -04:00
Alessio Gravili
96181d91a6
chore(ui): add ability to compile using react compiler ( #6483 )
...
This does not enable the react compiler by default
2024-05-27 22:54:36 -04:00
Alessio Gravili
eff5129a5f
fix(next): unable to pass custom view client components ( #6513 )
2024-05-27 22:48:41 -04:00
Dan Ribbens
ff4ea1eecc
chore: getPayloadHMR conditionally call db.connect ( #6510 )
2024-05-25 22:17:27 +00:00
Elliot DeNolf
e3222f2ac3
chore(release): v3.0.0-beta.36 [skip ci]
2024-05-23 13:35:19 -04:00
Alessio Gravili
35f961fecb
feat!: next.js 15, react 19, react compiler support ( #6429 )
...
**BREAKING:**
- bumps minimum required next.js version from `14.3.0-canary.68` to
`15.0.0-rc.0`
- bumps minimum required react and react-dom versions to `19.0.0
`(`19.0.0-rc-f994737d14-20240522` should be used)
- `@types/react` and `@types/react-dom` have to be bumped to
`npm:types-react@19.0.0-beta.2` using overrides and pnpm overrides, if
you want correct types. You can find an example of this here:
https://github.com/payloadcms/payload/pull/6429/files#diff-10cb9e57a77733f174ee2888587281e94c31f79e434aa3f932a8ec72fa7a5121L32
## Issues
- Bunch of todos for our react-select package which is having type
issues. Works fine, just type issues. Their type defs are importing JSX
in a weird way, we likely just have to wait until they fix them in a
future update.
2024-05-23 13:30:12 -04:00
Jarrod Flesch
72c0534008
fix: adds host to initPage req creation ( #6476 )
2024-05-23 11:04:35 -04:00
Jacob Fletcher
1fe9790d0d
feat(next): server-side theme detection ( #6452 )
2024-05-22 10:19:38 -04:00
Jacob Fletcher
2b941b7e2c
fix(next,ui): fixes global doc permissions and optimizes publish access data loading ( #6451 )
2024-05-22 10:03:12 -04:00
Elliot DeNolf
3d7c8277d7
chore(release): v3.0.0-beta.35 [skip ci]
2024-05-21 10:51:19 -04:00
Paul
a8a2dc2347
chore!: export DefaultListView as ListView ( #6432 )
...
Change the exports of DefaultListView and DefaultEditView to be renamed
without "Default" as ListView
```ts
// before
import { DefaultEditView } from '@payloadcms/next/views'
import { DefaultListView } from '@payloadcms/next/views'
// after
import { EditView } from '@payloadcms/next/views'
import { ListView } from '@payloadcms/next/views'
```
2024-05-21 10:22:44 -04:00
Elliot DeNolf
36fda30c61
feat: store focal point on uploads ( #6436 )
...
Store focal point data on uploads as `focalX` and `focalY`
Addresses https://github.com/payloadcms/payload/discussions/4082
Mirrors #6364 for beta branch.
2024-05-20 15:57:52 -04:00
Paul
3fc2ff1ef9
chore: export DefaultListView for reuse ( #6422 )
...
Exports `DefaultListView` so other plugins or custom implementations can
re-use it
2024-05-20 11:53:36 -03:00
Elliot DeNolf
0d544dacdb
chore(release): v3.0.0-beta.34 [skip ci]
2024-05-17 16:12:46 -04:00
Alessio Gravili
147b50e719
fix: page metadata generation not working in turbopack ( #6417 )
...
In turbo, payloadFaviconDark is a string, not an object with src
2024-05-17 15:44:12 -04:00
Elliot DeNolf
eeb689dd55
chore(release): v3.0.0-beta.33 [skip ci]
2024-05-17 14:59:23 -04:00
Jacob Fletcher
18009349c0
fix(ui): properly sets hasSavePermission on nested documents ( #6394 )
2024-05-17 13:41:38 -04:00
Alessio Gravili
9d5c0d350c
feat!: upgrade minimum next version to 14.3.0-canary.68 & upgrade react packages, react-toastify ( #6387 )
...
**BREAKING:**
- The minimum required next version is now 14.3.0-canary.68. This is
because we are migrating away from the deprecated
experimental.serverComponentsExternalPackages next config key to
experimental.serverExternalPackages, which is not available in older
next canaries
- The minimum `react` and `react-dom` versions have been bumped to
^18.2.0 or ^19.0.0. This matches the minimum react version recommended
by next
2024-05-17 12:48:37 -04:00
Alessio Gravili
276213193b
feat: allow client components and extra rsc props for custom edit and list views ( #6395 )
2024-05-17 11:25:33 -04:00
Jacob Fletcher
553bb4b530
fix(next)!: removes initPage export from barrel file ( #6403 )
2024-05-17 09:37:54 -04:00
Jacob Fletcher
9556d1bd42
feat!: replaces admin.meta.ogImage with admin.meta.openGraph.images ( #6227 )
2024-05-16 12:40:15 -04:00
Patrik
a4deaf07d6
fix(next): incorrect stepnav breadcrumbs after selecting existing upload ( #6372 )
...
## Description
Fixes [this](https://github.com/payloadcms/payload-3.0-demo/issues/202 )
v3 demo issue
- [x] I have read and understand the
[CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md )
document in this repository.
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
## Checklist:
- [x] Existing test suite passes locally with my changes
2024-05-16 10:23:32 -04:00
Jacob Fletcher
4adf01ab04
fix(next): does not wrap custom views with template by default ( #6379 )
2024-05-16 09:10:27 -04:00
Jarrod Flesch
aa2073f9e9
chore: adjusts how file uploads are handled, consolidates reading to busboy ( #6346 )
2024-05-15 11:42:04 -04:00
Elliot DeNolf
0e9bbecbee
chore(release): v3.0.0-beta.32 [skip ci]
2024-05-14 17:33:28 -04:00
Alessio Gravili
79f4907cb3
feat!: add missing server-only props to custom RSCs, improve req.user type, clean-up ui imports ( #6355 )
2024-05-14 17:27:15 -04:00
Jacob Fletcher
6a0fffe002
feat!: consolidates admin.logoutRoute and admin.inactivityRoute into admin.routes ( #6354 )
2024-05-14 21:18:19 +00:00
Elliot DeNolf
f52607f3b5
chore(release): v3.0.0-beta.31 [skip ci]
2024-05-14 12:37:38 -04:00
Alessio Gravili
f716122eab
feat!: typed i18n ( #6343 )
2024-05-14 11:10:31 -04:00
Jessica Chowdhury
57b072edfc
chore: fix indentation in API tab json for empty nested objects/arrays ( #6150 )
2024-05-14 14:44:10 +00:00