Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

v2.0.0

Choose a tag to compare

@bjoerge bjoerge released this 22 Jun 11:00
· 29 commits to main since this release
19b02ca

This changes the template manifest version to cater for Vercel as deployment provider.

This changes the template manifest version to cater for Vercel as deployment provider.

Notable changes:

  • Bumping manifest spec version from v0/v1 to v2. Since we have had no strict validation of version up until now there's already several templates out there with version: 1, so these changes becomes v2 instead. As an added bonus the manifest version now also match the npm package version.
  • Defined the template manifest typings using the excellent zod-package. Which means we can import the manifest type and get type safe templates in applications that reads them.
  • Added a cli command for migrating from v0/v1 to v2 by running npx sanity-template migrate from the template repository root folder.
  • Added typescript to the project itself (although there's still a few js files left)

All commits:

  • Readme/docs edits c51df29
  • Support defining a studio base path 2bcb7fa
  • Regenerate package lock eeffdd8
  • Add sanity-template migrate command af8f8ab
  • Use zod for defining template manifest types f76994b
  • Add .npmignore 2ed52e9
  • Add TypeScript definitions for manifest 8dccfa9
  • Change from v0 to v1 5bfc273
  • Fix: throw error instead of calling (undefined) reject 1623466
  • Move commands into own subdir f2cab51
  • Add prettier as dev dependency 85c020b
  • Add the lockfiles command to readme 5d18602
  • Update spec and improve check 88ae4c7
  • Add success message d37a4a7
  • Remove TODO items e2f92d8
  • Add lockfiles test eb0cafc

v1.0.3...v2.0.0