Releases: alineacms/alinea
Releases · alineacms/alinea
v0.1.17
- The alinea serve command will try another port if the chosen port is in use
(#179) - Avoid duplicate entries after publishing in the development server (#214)
- The generated types for pages depended on a type that would be namespaced
when usingtypeNamespace
. It did not take the namespace into account, but
does now. - The connection with Alinea Cloud should now handle previewing drafts
correctly.
v0.1.16
v0.1.15
-
The alinea cli will now forward commands placed after the serve or generate
commands. It will wait until the alinea package is generated before doing so
to make sure userland code can always depend on the package being available.
It also simplifies running the dashboard and development server without
requiring tools like npm-run-all. In practice, for a next.js website, this
means one can configure scripts like so:{ "scripts": { "dev": "alinea serve -- next dev", "build": "alinea generate -- next build" } }
v0.1.14
v0.1.13
-
Added a button to mark text as small within the rich text editor
-
New UI buttons to insert rows in any position in a list field
-
User preferences get a dedicated popover
-
Previews can register a listener and implement their own refetch mechanism.
The communication happens via messages which work cross-origin.// For any environment import {registerPreview} from '@alinea/preview' registerPreview({ refetch() { // Reload server data } })
// A react hook is available import {usePreview} from '@alinea/preview/react' const {isPreviewing} = usePreview({ refetch() { // Reload server data & redraw } })
// A hook specifically for next.js, which refetches static/server props import {useNextPreview} from '@alinea/preview/next' const {isPreviewing} = useNextPreview()
v0.1.12
v0.1.11
v0.1.10
- Avoid errors during the serve command that would stop the process with
"memory access out of bounds". - Detect if we're serving a preview cross origin and cannot use the iframe's
history. If so we adjust the UI to hide the back/forward buttons and change
the reload button to refresh the iframe source instead of a history reload.