Releases: prismicio/slice-machine
1.23.1
Hey! 🎉
We're excited to announce the release of Slice Machine v1.23.1, adding a few bug fixes.
🐛 Bug fixes
- We fixed an issue that prevented users to set group fields as non-repeatable, using the property
"repeat": false
- We fixed an issue that displayed an error related to Segment that should not impact the experience
1.23.0
Heya! 🎉
We're excited to announce the release of Slice Machine v1.23.0, bringing you a fantastic feature and a minor bug fix.
✨ Auto-save while editing models
- You no longer need to worry about manually saving your progress when editing types and slices! Slice Machine will take care of it for you automatically—no more "Save" button necessary! Enjoy uninterrupted productivity as you create your amazing projects.
🐛 Bug fixes: Improved user experience!
- We have also addressed the display issue in the add slices dropdown to make sure your workflow remains smooth and efficient. Happy coding! 🚀
1.22.2
Hey! 👋
Today we are happy to release a small patch release to add on top of our v1.22.1. This release includes a couple of small bug fixes relative to environments.
Small bug fixes
- Fix a bug that allowed users not part of an environment to select it
- Fix the display of the environments switch
1.22.1
Hey there!
Today we are happy to release a small patch release to add on top of our recent v1.22.0. This release includes a couple of small bug fixes.
Small bug fixes
- Correctly display your personal sandbox (an upcoming feature!).
- Prevent an error where Slice Machine crashes when incorrect dependency versions are installed.
1.22.0
Hey! 👋
Today we are happy to bring support for SvelteKit 2!
How to update an existing SvelteKit project
Upgrading to SvelteKit 2 does not require any changes to your Prismic code. It does, however, require updating your packages.
-
Update your Prismic packages:
npm install --save-dev slice-machine-ui@latest @slicemachine/adapter-sveltekit@latest npm install @prismicio/svelte@latest
-
Migrate your project to SvelteKit 2 using the official migration guide.
Better support for bootstrapping SvelteKit projects
In addition to supporting SvelteKit 2, we also updated @slicemachine/init
to bootstrap existing SvelteKit projects with better Prismic preview support.
Add Prismic to existing projects by running the following command:
npx @slicemachine/init@latest
Note
We recommend starting projects with a Prismic starter.
Starters already contain the configuration needed for a fully-featured website. The updates to @slicemachine/init
are for projects that did not start with a Prismic starter.
1.21.3
Hey there!
Today we are happy to release a small patch release to add on top of our recent v1.21.2. This release adds a few UI improvements and small bug fixes.
Small UI improvements and bug fixes
- We fixed a few UI issues on environments support in Slice Machine
- We fixed a UI issue on the button to add a new slice variation
1.21.2
Hey there!
Today we are happy to release a small patch release to add on top of our recent v1.21.1 This release adds a few UI improvements and small bug fixes.
Small UI improvements and bug fixes
- We have enhanced error handling for both login and repository access. Users will now receive distinct error messages in cases where they are not logged in or do not have access to the repository.
- We fixed a few UI issues in the nav bar.
1.21.1
Hey there!
Today we are happy to release a small patch release to add on top of our recent v1.21.0. This release adds a few improvements and small bug fixes.
Small improvements and bug fixes
- Fix
npm audit
reporting a moderate vulnerability with a sub-dependency of Slice Machine - Added the support of environments for newly created Next and Sveltekit projects
- Fixed minor UI styling issues
1.21.0
Heya! 🎉
Big progress this week. We're delighted to release Slice Machine v1.21.0 today, introducing 2 really nice additions to the Slice Machine UI
👩🏽💻 Developper collaboration - switch environments within Slice Machine UI
Prismic environments (available as a paid add-on to Platinum plans) allow you to clone your entire repository for development. With the release of 1.21, Slice Machine now supports environments, meaning you can switch between your production and development repositories using a toggle in the Slice Machine interface.
Environments allow large teams to safely and smoothly create new models in Prismic, avoiding conflicts and collaboration issues.
To make environments work in Slice Machine, follow these steps:
- Update
slice-machine-ui
- Update your adapter
- Update your API configuration
- Update your
.gitignore
Here are the steps for each framework:
Next.js
Update packages:
npm i -D slice-machine-ui@latest @slicemachine/adapter-next@latest
Update prismicio.js
:
- export const repositoryName = config.repositoryName;
+ export const repositoryName =
+ process.env.NEXT_PUBLIC_PRISMIC_ENVIRONMENT || config.repositoryName;
Update .gitignore
:
+ .env.local
Nuxt
Update packages (Nuxt 2):
npm i -D slice-machine-ui@latest @slicemachine/adapter-nuxt2@latest
Update packages (Nuxt 3):
npm i -D slice-machine-ui@latest @slicemachine/adapter-nuxt@latest
In Nuxt, you don’t need to update your API config. @nuxtjs/prismic
will handle the config automatically.
Make sure you have the latest version of @nuxtjs/prismic
Update .gitignore
:
+ .env
SvelteKit
npm i -D slice-machine-ui@latest @slicemachine/adapter-next@latest
prismicio.js
- export const repositoryName = config.repositoryName;
+ export const repositoryName =
+ import.meta.env.VITE_PRISMIC_ENVIRONMENT || config.repositoryName;
.gitignore
+ .env.local
Behind the scenes, Slice Machine will update your environment variables to the currently-selected Prismic environment. You don't need to edit your environment variables (though, as previously stated, you must ensure that they are .gitignore
’d so you don’t accidentally deploy your staging environment).
Learn more in the environments documentation.
Teaser: this is only the beginning of a series of initiatives toward improving collaboration in a Prismic project 🔥
🚤 In-app guidance: "5 minutes to render a page".
- New users can now get access to a brand new video in-app guide to let them learn how to create and render a page in under 5 minutes.
1.20.0
Heya! 🎉
We're delighted to release Slice Machine v1.20.0 today, introducing the rename and delete of Slice Variations
🎨 Delete and Rename Slice Variations
- Users can now rename and delete locally their Slices variations, from the Slice Machine UI.
🚀 Enhancements
- We improved the init command to better handle repositories featuring lots of custom types and slices. The process should now complete successfully even if you have large amount of models to download.
- We improved the way adapters handle file system interaction for projects featuring many custom types and slices. Slice Machine should not fail anymore to load if you have large amount of models to handle.