profile
viewpoint
Bjørge Næss bjoerge @sanity-io Oslo, Norway http://sanity.io Frontend engineer @sanity-io

bjoerge/debounce-promise 167

Create a debounced version of a promise returning function

bjoerge/cut-release 108

A tool that helps you make faster npm releases

bjoerge/git-upstream-watch 5

Get notified when one or more local git repos diverge from the upstream tracking branch

bjoerge/airbrake-notice 2

Easy creation of Airbrake (or errbit) error notifications from Node.js or the browser

bjoerge/circular-at 2

Access array items at any positive or negative index. If the index is out of bounds, it will be wrapped around the length of the array

bjoerge/dfrrd.js 2

An ultra-simple Deferred implementation for Node and the browser

bjoerge/blacklistify 1

Protect files from accidental browserify bundling

bjoerge/commonjs.rb 1

Common JS for Ruby

bjoerge/deferred.js 1

A simple Promises/A implementation for Node and the browser

bjoerge/es_attachment_poc 1

Proof of concept indexing attachments (binary and other formats) in elasticsearch using tire

MemberEvent

push eventbjoerge/sanity-template-community-example

Bjørge Næss

commit sha f249cea6969b20bd0cc87f1f7ced5c363dda77ea

Create README.md

view details

push time in 24 days

PR opened sanity-io/sanity

Reviewers
Support overriding validation on array subtypes. Fixes #1774

This makes subtypes of array types override validation rules from its parent type, fixing the issue described in #1774.

Type of change (check at least one)

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Documentation (fix or update to documentation)
  • [ ] Maintenance
  • [ ] Other, please describe:

Does this change require a documentation update? (Check one)

  • [ ] Yes
  • [x] No

Note for release

  • Fixed an issue with subtypes of arrays not overriding validation rules from its parent type
+22 -3

0 comment

3 changed files

pr created time in 24 days

create barnchsanity-io/sanity

branch : support-override-validation-on-array-subtypes

created branch time in 24 days

push eventbjoerge/sanity-template-community-example

Bjørge Næss

commit sha fa64041da2be0fc0da25fe2f5555382a7c59b859

Add preview

view details

push time in 25 days

push eventbjoerge/community-template-example

Bjørge Næss

commit sha 6e377ea5daff2432df1e43cdf5c2f5fb9f873c24

Make manifest valid

view details

push time in a month

push eventbjoerge/community-template-example

Bjørge Næss

commit sha 4d9f39c7438811bb341e4ca695b299a39418d3ff

Rename template-manifest => sanity-template

view details

push time in a month

create barnchbjoerge/community-template-example

branch : master

created branch time in a month

created repositorybjoerge/community-template-example

An example of a sanity.io starter template

created time in a month

push eventsanity-io/sanity

Bjørge Næss

commit sha 46df4ad5beb448a65a1ef7f7fcb6bfcf34102fad

Report lastActiveAt on presence location

view details

push time in a month

push eventbjoerge/sanity-gridsome-blog-test2

Sanity.io

commit sha be3c6ce13963eb6d1f56bd33cbf84db9307b3e5c

Initial commit

view details

push time in a month

delete branch bjoerge/sanity-gridsome-blog-test2

delete branch : master

delete time in a month

create barnchbjoerge/sanity-gridsome-blog-test2

branch : production

created branch time in a month

create barnchbjoerge/sanity-gridsome-blog-test2

branch : master

created branch time in a month

created repositorybjoerge/sanity-gridsome-blog-test2

Blog with Gridsome

created time in a month

push eventbjoerge/sanity-kitchen-sinks

Sanity.io

commit sha 6980b560c8324f0d85cbabb46da66faadf4cb300

Initial commit

view details

push time in a month

delete branch bjoerge/sanity-kitchen-sinks

delete branch : master

delete time in a month

create barnchbjoerge/sanity-kitchen-sinks

branch : production

created branch time in a month

create barnchbjoerge/sanity-kitchen-sinks

branch : master

created branch time in a month

created repositorybjoerge/sanity-kitchen-sinks

Kitchen Sink

created time in a month

push eventsanity-io/sanity

Bjørge Næss

commit sha fa0cc28ad506515c822861fa5def0f9470ae4978

Fix timestamp => lastActiveAt

view details

push time in a month

push eventsanity-io/sanity-template-gridsome-blog

Bjørge Næss

commit sha 3ce22da43bccf80d62cdc61bc0f2bdce39b3c4be

Upgrade React

view details

Bjørge Næss

commit sha 56b553318a95db10a87ed170f13ddd19daba59cc

Generate lockfiles

view details

push time in a month

create barnchbjoerge/sanity-sapper-blog

branch : production

created branch time in a month

create barnchbjoerge/sanity-sapper-blog

branch : master

created branch time in a month

created repositorybjoerge/sanity-sapper-blog

Blog with Sapper

created time in a month

PR opened sanity-io/gatsby-source-sanity

Reviewers
Exclude system documents in listener query

Currently we set up a listener for all documents in the dataset and exclude system documents after mutation event is received. With this patch we instead exclude system documents in the query itself, which saves a bit of bandwidth for listeners events we don't care about.

+1 -2

0 comment

1 changed file

pr created time in a month

push eventsanity-io/sanity

Bjørge Næss

commit sha a1dbb9ff0550864511e4fd45557b704a2999f158

[desk-tool] Remove the drafts prefix + warn when resolving intent links (#1930)

view details

push time in a month

delete branch sanity-io/sanity

delete branch : remove-drafts-prefix-from-intent-links

delete time in a month

PR merged sanity-io/sanity

[desk-tool] Remove the drafts prefix + warn when resolving intent links
  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Documentation (fix or update to documentation)
  • [ ] Maintenance
  • [ ] Other, please describe:

Does this change require a documentation update? (Check one)

  • [ ] Yes
  • [x] No

Current behavior The issue with generating document links using draft ids from the document list dashboard-widget was fixed in https://github.com/sanity-io/dashboard-widget-document-list/commit/04f87b1e77cd9a7b313e117b14286b67b3cee15c. However, there are still studios out there with the older versions or that for some reason are still having intent links with draft id in them. This PR fixes this issue by rewriting intent links with draft prefix in the component that resolves intent links.

Closes #1865

Note for release

Fixed an issue causing studio crash with different variations of "editOpsOf does not expect a draft id" and "useDocumentOperation(...) is null" (more details in #1865)

+16 -2

1 comment

2 changed files

bjoerge

pr closed time in a month

issue closedsanity-io/sanity

Studio crashing on edit draft directly from dashboard

Describe the bug Getting a crash in studio when clicking on docs from the dashboard document list that are in draft and were never published. I am uploading docs through the api with drafts. prepended to the id so they stay as drafts and not published and this is working fine if you go through the normal flow of the document panes but if you click from the dashboard it crashes with error editOpsOf does not expect a draft id

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'dashboard'
  2. Click on 'latest doc that was created as a draft'
  3. Studio attempts to load the edit draft like http://localhost:3333/intent/edit/type=student;id=drafts.1221/
  4. See error in screenshot react_devtools_backend.js:6 Error: editOpsOf does not expect a draft id.

Expected behavior

It should load the doc in edit mode like other previously published documents. NOTE this works fine when the document has been published before. Once I publish it this works again. To trigger this it needs to be a newly created doc as a draft before publishing.

Screenshots If applicable, add screenshots to help explain your problem. image

Which versions of Sanity are you using?

Run sanity versions in the terminal and copy-paste the result here.

@sanity/cli                      1.149.9 (up to date)
@sanity/base                    1.149.10 (up to date)
@sanity/block-content-to-react     2.0.7 (up to date)
@sanity/cli                      1.149.9 (up to date)
@sanity/color-input              1.149.7 (up to date)
@sanity/components              1.149.10 (up to date)
@sanity/core                    1.149.12 (up to date)
@sanity/dashboard               1.149.10 (up to date)
@sanity/default-layout          1.149.10 (up to date)
@sanity/default-login           1.149.11 (up to date)
@sanity/desk-tool               1.149.10 (up to date)
@sanity/production-preview       1.149.0 (up to date)
@sanity/vision                   1.149.0 (up to date)

What operating system are you using?

Which versions of Node.js / npm are you running?

Run npm -v && node -v in the terminal and copy-paste the result here.

closed time in a month

zanedev

issue commentsanity-io/sanity

Studio crashing on edit draft directly from dashboard

For the sake of future proofing, when generating links in the studio the drafts. prefix for the document should be removed. The dashboard-widget-document-list plugin was updated with a fix for this in version 0.0.10, so upgrading this package might fix the issue for you.

That said, I've also made a PR for making the studio more resilient and not crash when encountering draft ids in #1930.

zanedev

comment created time in a month

PR opened sanity-io/sanity

Reviewers
[desk-tool] Remove the drafts prefix + warn when resolving intent links
  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Documentation (fix or update to documentation)
  • [ ] Maintenance
  • [ ] Other, please describe:

Does this change require a documentation update? (Check one)

  • [ ] Yes
  • [x] No

Current behavior The issue with generating document links using draft ids from the document list dashboard-widget was fixed in https://github.com/sanity-io/dashboard-widget-document-list/commit/04f87b1e77cd9a7b313e117b14286b67b3cee15c. However, there are still studios out there with the older versions or that for some reason are still having intent links with draft id in them. This PR fixes this issue by rewriting intent links with draft prefix in the component that resolves intent links.

Closes #1865

Note for release

Fixed an issue causing studio crash with different variations of "editOpsOf does not expect a draft id" and "useDocumentOperation(...) is null" (more details in #1865)

+16 -2

0 comment

2 changed files

pr created time in a month

create barnchsanity-io/sanity

branch : remove-drafts-prefix-from-intent-links

created branch time in a month

created tagbjoerge/react-rx

tagv1.0.0-beta.2

created time in a month

push eventbjoerge/react-rx

Bjørge Næss

commit sha 855ef67e9d66e97184f36c11d8bea4d6ccfc2b61

1.0.0-beta.2

view details

push time in a month

push eventbjoerge/react-rx

Bjørge Næss

commit sha e56bcbdc68656751b000bae3f1fc0b21860876ec

Add rxComponent to package exports

view details

push time in a month

PublicEvent

push eventsanity-io/sanity

Bjørge Næss

commit sha 2c2113a84b00deff7c5c79a3dd9dba541be62ce8

[desk-tool] Set initial focus path from path param

view details

push time in a month

push eventsanity-io/sanity

Bjørge Næss

commit sha e50a5c7d86a4a4b913f0b289d759b6b78cb9fb61

[desk-tool] Set initial focus path from path param

view details

push time in a month

push eventsanity-io/sanity

Bjørge Næss

commit sha 19c46362bda52bddaa60919bfc813a2233b96f6b

Fix eslint config for ts packages

view details

Bjørge Næss

commit sha 090f7b2f10bc2303cb398920bc0b1c5839491334

[desk-tool] Set initial focus path from path param

view details

push time in a month

push eventsanity-io/sanity-template-kitchen-sink

Bjørge Næss

commit sha 9fd545acfa3b3031a4a691ec1c6a44ca5b131894

Trigger new canned build

view details

push time in a month

push eventbjoerge/sanity-gatsby-blog-delete-me

Sanity.io

commit sha f94e7074482dd23c170155fe1c4c4f0a0525234b

Initial commit

view details

push time in a month

delete branch bjoerge/sanity-gatsby-blog-delete-me

delete branch : master

delete time in a month

create barnchbjoerge/sanity-gatsby-blog-delete-me

branch : production

created branch time in a month

create barnchbjoerge/sanity-gatsby-blog-delete-me

branch : master

created branch time in a month

push eventbjoerge/sanity-gridsome-blog

Sanity.io

commit sha 93beb6a1f73e3dbd9cc14343e5051f6ed1a5360e

Initial commit

view details

push time in a month

create barnchbjoerge/sanity-gridsome-blog

branch : master

created branch time in a month

delete branch bjoerge/sanity-gridsome-blog

delete branch : master

delete time in a month

create barnchbjoerge/sanity-gridsome-blog

branch : production

created branch time in a month

created repositorybjoerge/sanity-gridsome-blog

Blog with Gridsome

created time in a month

push eventsanity-io/sanity

Anders Stensaas

commit sha c0be9786e60c22e6fda8f2ad4cfcaae51890813a

v1.149.16

view details

Espen Hovlandsdal

commit sha a058f82c23f90efb3d6aeda27e7a06d8ccf86086

[export] Fix incorrectly handled rewriting of non-sanity assets

view details

Espen Hovlandsdal

commit sha 6a3e676f1f9d8b7da81b4023c670139229be2d5e

[export] Fix setTimeout called on reused socket

view details

Espen Hovlandsdal

commit sha b0892f0ebca9d150f3bd14b5fb9259f5dc24f777

v1.149.17

view details

Bjørge Næss

commit sha b46fa7cfe52497c976589a89cd52b7a15544f55f

Use the 'current' branch for official releases

view details

Espen Hovlandsdal

commit sha 7a5cb5ab1d458931e311bea1669068e986b1c323

[export] Fix extensions with numbers not being recognized as valid asset ID (#1925)

view details

Espen Hovlandsdal

commit sha e9ab623879dd0f7b1601ed8346be6a192feb89da

[chore] Fix inconsiderately named references (#1924)

view details

vicbergquist

commit sha ed9a36c9090c6dded22d517abfc7e30083ca8fdc

[components] make button grid 2x2 when four buttons

view details

vicbergquist

commit sha 614aff5b51aa5974ad485821cf1cc6f20d1211ea

[form-builder] make file input buttons look the same as image input add inverted

view details

vicbergquist

commit sha 6b5f724a328185de315d40fa29e8b5654877c5d5

[form-builder] put highlighted fields below functions like image input

view details

vicbergquist

commit sha b2b133e8947f00ec9279ed218ba6b215f59bf485

[google-maps-input] make buttons look the same as rest of studio

view details

vicbergquist

commit sha 3e3361c9abe70989cf7b260f5c1d7aa2b285a6d5

[form-builder] give file upload same progress ui as image input

view details

vicbergquist

commit sha 7936aef04543b90e999d603ccdd10d07a02efcda

[components] WIP update validation list design

view details

vicbergquist

commit sha 2dacc511fe5005e812b958180311003d93442989

[components] update menu tooltip and validation fixes

view details

vicbergquist

commit sha 07dc823de87d4a365f710f036db6a23fdb9ab2dd

add mising eslint for ts

view details

vicbergquist

commit sha 2028b976d4105562fa0bb4dfd45c98a0dd7ebcd1

[components] finish up validation improvements

view details

vicbergquist

commit sha 38c34e1a134ca8527be1e004d85b44d52e499230

[components] update types for components

view details

vicbergquist

commit sha 48b07010ba833269cbfb5cb4ae8ae395a6c0b846

[components] update checkboxes

view details

vicbergquist

commit sha 61839b57ad547d9c575977bb8de6c23f07e50140

[components] update switch design

view details

vicbergquist

commit sha 1e84f87868cdd59fd3460024e4dfbc4781db645a

[compoenents] WIP checkboxes and validation improvements

view details

push time in a month

push eventsanity-io/sanity

Anders Stensaas

commit sha c0be9786e60c22e6fda8f2ad4cfcaae51890813a

v1.149.16

view details

Espen Hovlandsdal

commit sha a058f82c23f90efb3d6aeda27e7a06d8ccf86086

[export] Fix incorrectly handled rewriting of non-sanity assets

view details

Espen Hovlandsdal

commit sha 6a3e676f1f9d8b7da81b4023c670139229be2d5e

[export] Fix setTimeout called on reused socket

view details

Espen Hovlandsdal

commit sha b0892f0ebca9d150f3bd14b5fb9259f5dc24f777

v1.149.17

view details

Bjørge Næss

commit sha b46fa7cfe52497c976589a89cd52b7a15544f55f

Use the 'current' branch for official releases

view details

Espen Hovlandsdal

commit sha 7a5cb5ab1d458931e311bea1669068e986b1c323

[export] Fix extensions with numbers not being recognized as valid asset ID (#1925)

view details

Espen Hovlandsdal

commit sha e9ab623879dd0f7b1601ed8346be6a192feb89da

[chore] Fix inconsiderately named references (#1924)

view details

vicbergquist

commit sha ed9a36c9090c6dded22d517abfc7e30083ca8fdc

[components] make button grid 2x2 when four buttons

view details

vicbergquist

commit sha 614aff5b51aa5974ad485821cf1cc6f20d1211ea

[form-builder] make file input buttons look the same as image input add inverted

view details

vicbergquist

commit sha 6b5f724a328185de315d40fa29e8b5654877c5d5

[form-builder] put highlighted fields below functions like image input

view details

vicbergquist

commit sha b2b133e8947f00ec9279ed218ba6b215f59bf485

[google-maps-input] make buttons look the same as rest of studio

view details

vicbergquist

commit sha 3e3361c9abe70989cf7b260f5c1d7aa2b285a6d5

[form-builder] give file upload same progress ui as image input

view details

vicbergquist

commit sha 7936aef04543b90e999d603ccdd10d07a02efcda

[components] WIP update validation list design

view details

vicbergquist

commit sha 2dacc511fe5005e812b958180311003d93442989

[components] update menu tooltip and validation fixes

view details

vicbergquist

commit sha 07dc823de87d4a365f710f036db6a23fdb9ab2dd

add mising eslint for ts

view details

vicbergquist

commit sha 2028b976d4105562fa0bb4dfd45c98a0dd7ebcd1

[components] finish up validation improvements

view details

vicbergquist

commit sha 38c34e1a134ca8527be1e004d85b44d52e499230

[components] update types for components

view details

vicbergquist

commit sha 48b07010ba833269cbfb5cb4ae8ae395a6c0b846

[components] update checkboxes

view details

vicbergquist

commit sha 61839b57ad547d9c575977bb8de6c23f07e50140

[components] update switch design

view details

vicbergquist

commit sha 1e84f87868cdd59fd3460024e4dfbc4781db645a

[compoenents] WIP checkboxes and validation improvements

view details

push time in a month

push eventsanity-io/sanity

Anders Stensaas

commit sha c0be9786e60c22e6fda8f2ad4cfcaae51890813a

v1.149.16

view details

Espen Hovlandsdal

commit sha a058f82c23f90efb3d6aeda27e7a06d8ccf86086

[export] Fix incorrectly handled rewriting of non-sanity assets

view details

Espen Hovlandsdal

commit sha 6a3e676f1f9d8b7da81b4023c670139229be2d5e

[export] Fix setTimeout called on reused socket

view details

Espen Hovlandsdal

commit sha b0892f0ebca9d150f3bd14b5fb9259f5dc24f777

v1.149.17

view details

Bjørge Næss

commit sha b46fa7cfe52497c976589a89cd52b7a15544f55f

Use the 'current' branch for official releases

view details

Espen Hovlandsdal

commit sha 7a5cb5ab1d458931e311bea1669068e986b1c323

[export] Fix extensions with numbers not being recognized as valid asset ID (#1925)

view details

Espen Hovlandsdal

commit sha e9ab623879dd0f7b1601ed8346be6a192feb89da

[chore] Fix inconsiderately named references (#1924)

view details

vicbergquist

commit sha ed9a36c9090c6dded22d517abfc7e30083ca8fdc

[components] make button grid 2x2 when four buttons

view details

vicbergquist

commit sha 614aff5b51aa5974ad485821cf1cc6f20d1211ea

[form-builder] make file input buttons look the same as image input add inverted

view details

vicbergquist

commit sha 6b5f724a328185de315d40fa29e8b5654877c5d5

[form-builder] put highlighted fields below functions like image input

view details

vicbergquist

commit sha b2b133e8947f00ec9279ed218ba6b215f59bf485

[google-maps-input] make buttons look the same as rest of studio

view details

vicbergquist

commit sha 3e3361c9abe70989cf7b260f5c1d7aa2b285a6d5

[form-builder] give file upload same progress ui as image input

view details

vicbergquist

commit sha 7936aef04543b90e999d603ccdd10d07a02efcda

[components] WIP update validation list design

view details

vicbergquist

commit sha 2dacc511fe5005e812b958180311003d93442989

[components] update menu tooltip and validation fixes

view details

vicbergquist

commit sha 07dc823de87d4a365f710f036db6a23fdb9ab2dd

add mising eslint for ts

view details

vicbergquist

commit sha 2028b976d4105562fa0bb4dfd45c98a0dd7ebcd1

[components] finish up validation improvements

view details

vicbergquist

commit sha 38c34e1a134ca8527be1e004d85b44d52e499230

[components] update types for components

view details

vicbergquist

commit sha 48b07010ba833269cbfb5cb4ae8ae395a6c0b846

[components] update checkboxes

view details

vicbergquist

commit sha 61839b57ad547d9c575977bb8de6c23f07e50140

[components] update switch design

view details

vicbergquist

commit sha 1e84f87868cdd59fd3460024e4dfbc4781db645a

[compoenents] WIP checkboxes and validation improvements

view details

push time in a month

push eventsanity-io/sanity-template-gatsby-blog

Bjørge Næss

commit sha f82248644ed2fcf8215a9023a14db26fe0543d20

Remove node 8 from travis build matrix

view details

push time in a month

fork bjoerge/rxjs

A reactive programming library for JavaScript

https://rxjs.dev

fork in a month

push eventsanity-io/sanity-template-gatsby-blog

Bjørge Næss

commit sha 1b92dff22f879641b1185fa4ac8c94281c24f8f7

Upgrade deps

view details

Bjørge Næss

commit sha 779041aa0d841800f0499729c74408c54b955a51

Generate lockfiles

view details

push time in a month

release sanity-io/sanity-template

v2.0.0

released time in a month

delete branch sanity-io/sanity-template

delete branch : v2

delete time in a month

PR closed sanity-io/sanity-template

Manifest version 2

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)
+5962 -5319

1 comment

54 changed files

bjoerge

pr closed time in a month

pull request commentsanity-io/sanity-template

Manifest version 2

Merged

bjoerge

comment created time in a month

push eventsanity-io/sanity-template

Bjørge Næss

commit sha f2cab51fece7c4e29299916a9d95f9cc60f99cde

Move commands into own subdir

view details

Bjørge Næss

commit sha 1623466e00908c4090eaf2eb34caaa358865b046

Fix: throw error instead of calling (undefined) reject

view details

Bjørge Næss

commit sha 5bfc27343cc9eb090a920b7a00f1ea776b610e70

Change from v0 to v1 I noticed several template manifests "in the wild" already used `version: 1` so this changes what we previously referred to as v0 to be v1 instead

view details

Bjørge Næss

commit sha 8dccfa90d7027be8853a1cbcdc0ff1924145539b

Add TypeScript definitions for manifest

view details

Bjørge Næss

commit sha 2ed52e9256b5b1a80489e79cb346b8f01e346fe9

Add .npmignore

view details

Bjørge Næss

commit sha f76994b8c1265ab68452aeac06fbf26109fd9e63

Use zod for defining template manifest types

view details

Bjørge Næss

commit sha af8f8abd1743b04df3f0ecf96decc9566214d001

Add sanity-template migrate command

view details

Bjørge Næss

commit sha eeffdd8df6c36a83e88529eda90046d9d704068e

Regenerate package lock

view details

Bjørge Næss

commit sha 2bcb7fac156bb772e295557ac3ae0b9a03a7b7cd

Support defining a studio base path

view details

Bjørge Næss

commit sha c51df29488edb37db147a2e881862a079811258f

Readme/docs edits

view details

Bjørge Næss

commit sha 19b02ca1ab8648cfcaa4a22d956746da7269ac3f

2.0.0

view details

push time in a month

created tagsanity-io/sanity-template

tagv2.0.0

Sanity template developer tools, documentation and specification

created time in a month

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 5d1aea7452b809a37445fa6eafaa8bb674e0ae8c

Use zod for defining template manifest types

view details

Bjørge Næss

commit sha a7d1be8526122af8fc9f5f6f74b2a0b60e13a890

Add sanity-template migrate command

view details

Bjørge Næss

commit sha a053e241174f16431a714a1057471661ec0e47ab

Regenerate package lock

view details

Bjørge Næss

commit sha 7475aedd3ec4e4437f7203c4d60dae8ad2f7e3d7

Support defining a studio base path

view details

Bjørge Næss

commit sha 1720e14b1b2b0b8615d5d01f1b64987c8d293ef5

Readme/docs edits

view details

Bjørge Næss

commit sha 070801496060128deb5d91b70ad0d8401b0b2078

2.0.0-rc.7

view details

push time in a month

push eventsanity-io/sanity-template

Bjørge Næss

commit sha ddff649361844381206eb79f9f2cbc1cc69d0c95

Readme/docs edits

view details

push time in a month

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 766141435aa90ff16995692072ab2777a743cef3

Readme/docs edits

view details

push time in a month

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 328215c8f02044532ec5931d812937588b997a97

Readme/docs edits

view details

push time in a month

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 1623466e00908c4090eaf2eb34caaa358865b046

Fix: throw error instead of calling (undefined) reject

view details

Bjørge Næss

commit sha 5bfc27343cc9eb090a920b7a00f1ea776b610e70

Change from v0 to v1 I noticed several template manifests "in the wild" already used `version: 1` so this changes what we previously referred to as v0 to be v1 instead

view details

Bjørge Næss

commit sha 8dccfa90d7027be8853a1cbcdc0ff1924145539b

Add TypeScript definitions for manifest

view details

Bjørge Næss

commit sha 2ed52e9256b5b1a80489e79cb346b8f01e346fe9

Add .npmignore

view details

Bjørge Næss

commit sha d64be7857ba05e56efc5dc5ded07055cc4f9eb89

Use zod for defining template manifest types

view details

Bjørge Næss

commit sha 1d66db68f984c4fe3cae0035aa546a352045db35

Add sanity-template migrate command

view details

Bjørge Næss

commit sha f7d1fb34a368f28da28d8c4a13db2642ae5ef37a

Regenerate package lock

view details

Bjørge Næss

commit sha c777a5d6d1eacf2a06d08bad86b63f36f8d8b066

Support defining a studio base path

view details

Bjørge Næss

commit sha 240b9fb1785f1622bf5f8002b18cc443b659ed8a

2.0.0-rc.7

view details

Bjørge Næss

commit sha 8b800b6c30e1b4d37ec3c20efe17dc06b342b2f3

Readme/docs edits

view details

push time in a month

startedTypeStrong/typedoc

started time in a month

push eventsanity-io/sanity-template-vercel-poc

Bjørge Næss

commit sha 46e15f733ec39fcc3386fb32f599532e85f62395

Guard against missing initial data

view details

push time in 2 months

push eventsanity-io/sanity-template-vercel-poc

Bjørge Næss

commit sha 6577ceab921bf3066b38fbde1113041c23bb65f4

Add export file, upgrade sanity, add vision to studio, make frontend fetch content from studio, use vercel dev for development

view details

push time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 280589ac9b86375aa129e93579ff400c7f1a8957

Regenerate package lock

view details

Bjørge Næss

commit sha 82b57d95bef223af23d1eebbad6968a1d65a5550

Support defining a studio base path

view details

Bjørge Næss

commit sha a1771c99bc548eb72923ffda239827a6489774f8

2.0.0-rc.7

view details

push time in 2 months

created tagsanity-io/sanity-template

tagv2.0.0-rc.7

Sanity template developer tools, documentation and specification

created time in 2 months

delete branch sanity-io/sanity-template

delete branch : v1

delete time in 2 months

PR opened sanity-io/sanity-template

Reviewers
Manifest version 2

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)
+4086 -1814

0 comment

52 changed files

pr created time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 256b5e3b76be031f7ab883484f48dcc060448c2a

Add sanity-template migrate command

view details

Bjørge Næss

commit sha a57685653493638e4e43ce719415422b9cd07102

2.0.0-rc.6

view details

push time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha f2cab51fece7c4e29299916a9d95f9cc60f99cde

Move commands into own subdir

view details

Bjørge Næss

commit sha 2184b30c7e406b8aa9996d6c44868a39128240df

Change from v0 to v1 I noticed several template manifests "in the wild" already used `version: 1` so this changes what we previously referred to as v0 to be v1 instead

view details

Bjørge Næss

commit sha 7c4184ff5a81a216a588a4dae7ec3d9a74e6755a

Add TypeScript definitions for manifest

view details

Bjørge Næss

commit sha 36d4fcbf51d87b57bcd6748d4fbd2e7ad883e23f

Add .npmignore

view details

Bjørge Næss

commit sha 2746d7df08eda5268a18cae65f308030642ef11c

Use zod for defining template manifest types

view details

Bjørge Næss

commit sha 46b33bf8cc29c9d5a0cd3d9d8035e54e34d9e859

Add sanity-template migrate command

view details

Bjørge Næss

commit sha 7549ec3ab57d73fa99e0f06d0f2283add7b35d66

2.0.0-rc.6

view details

push time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 85c020b1ddf5fe21a4c98eafb0c2fbb1ceaf0d2a

Add prettier as dev dependency

view details

push time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 85c020b1ddf5fe21a4c98eafb0c2fbb1ceaf0d2a

Add prettier as dev dependency

view details

Bjørge Næss

commit sha 2985bf1086c3a3d33c7fd8fcea07c80a35e99e51

Move commands into own subdir

view details

Bjørge Næss

commit sha d9a128fe84eb0435ac97e501177e674b56f84778

Add TypeScript definitions for manifest

view details

Bjørge Næss

commit sha ddef308676116cbbb5e574e82dd880eef3f8ae34

Add .npmignore

view details

Bjørge Næss

commit sha 03e979f7fec67074935e91f9c63262b056f253b4

Use zod for defining template manifest types

view details

Bjørge Næss

commit sha 6c4c7c000bcaeed1f3f472130c6523b58bf79012

Add sanity-template migrate command

view details

Bjørge Næss

commit sha 97106593b722f66fa3333d57c9460cab864d2607

2.0.0-rc.6

view details

push time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha b98f024268cd65553d4c47f3f072ea88c2ee273e

Add TypeScript definitions for manifest

view details

Bjørge Næss

commit sha 478a7be5118fc0dc9d8d2f62ddd856f6a185c149

Add .npmignore

view details

Bjørge Næss

commit sha 49ff2cbd49340c7cb4affe3f4fc35d3e10a13653

Use zod for defining template manifest types

view details

Bjørge Næss

commit sha a30583018b7ae7ee05831536b0451c706ffe2401

Update test suite

view details

Bjørge Næss

commit sha a7537a5f7c6700466ac770cea330f77624655647

Add sanity-template migrate command

view details

Bjørge Næss

commit sha 3092def1a86a9bbfa1aac0dc58fe54c9c803c8be

2.0.0-rc.6

view details

push time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha db01408369b65e53f85f4e9ec1925b1c9d9491d0

Add .npmignore

view details

Bjørge Næss

commit sha 092fdc49a447116254aaff9f90d8cc7887539276

Use zod for defining template manifest types

view details

Bjørge Næss

commit sha 1dda816b889b8c3c9b113e7bf702e686ec8365ed

Name as v2 instead of v1

view details

Bjørge Næss

commit sha 8b9ba44618ac9df00e9842c22efea44545242117

Export all symbols

view details

Bjørge Næss

commit sha 4a14b7a10f678561a7cea5a60457a65622093e83

Don't expose zod API

view details

Bjørge Næss

commit sha cea242e837e3ce2991fa1109f5cb7f96e158f2c5

Update test suite

view details

Bjørge Næss

commit sha 6687218adf634e9319f7ac44da221587c5ae5403

Make build settings optional on v2 too

view details

Bjørge Næss

commit sha 3659c225c768d67a7eb5b7b21f12e28f5ca64ea8

Add type to netlifySite

view details

Bjørge Næss

commit sha 7ce3eeebea23460a314ac89b3593589886e2e847

Add sanity-template migrate command

view details

Bjørge Næss

commit sha 98124ee30932fb0ca310c2199341e8ce8893b08b

Allow specifying cors origins

view details

push time in 2 months

delete branch sanity-io/sanity-template

delete branch : master

delete time in 2 months

create barnchsanity-io/sanity-template

branch : main

created branch time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 19d4f74d9dfd6fe8912d78ccf2ccdcf708ebda89

2.0.0-rc.6

view details

Bjørge Næss

commit sha cd7e860c9bc8874382e25abe654b2661973c5f59

Add sanity-template migrate command

view details

Bjørge Næss

commit sha 818843818013d91a24c3bf19e1f336aeda332542

Allow specifying cors origins

view details

push time in 2 months

delete branch sanity-io/sanity

delete branch : master

delete time in 2 months

push eventsanity-io/sanity

Bjørge Næss

commit sha b46fa7cfe52497c976589a89cd52b7a15544f55f

Use the 'current' branch for official releases

view details

push time in 2 months

push eventsanity-io/sanity

Bjørge Næss

commit sha b46fa7cfe52497c976589a89cd52b7a15544f55f

Use the 'current' branch for official releases

view details

push time in 2 months

create barnchsanity-io/sanity

branch : current

created branch time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 89d1757b88a28405bc0f658dd5ff54af66a4062f

Regenerate package-lock

view details

Bjørge Næss

commit sha 9e8bd076c33ae55c8f469fd7319703908491563d

Add type to netlifySite

view details

push time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 74bf5c73505d11d6dca2d4ea1f44598f705a3f9c

Don't expose zod API

view details

Bjørge Næss

commit sha 0ab1963a940c4041494c7fa93b833fbaf029366b

Update test suite

view details

Bjørge Næss

commit sha a250b9d37186b300e91b0fa94ed8d9352d8649d0

2.0.0-rc.3

view details

Bjørge Næss

commit sha 4f343323d03c281f263dad6e602808129f662205

Add zod to dependencies

view details

Bjørge Næss

commit sha 5567cd2001f8ee9fcc29de6aa80cf96efe94b4b3

2.0.0-rc.4

view details

Bjørge Næss

commit sha 9e44278d9463a241fabb69cf8a76d077943b86b8

Make build settings optional on v2 too

view details

Bjørge Næss

commit sha 8423ad7474ce737aff58ae03dbcaac5176d0495f

2.0.0-rc.5

view details

push time in 2 months

push eventsanity-io/sanity-template-no-deploy

Bjørge Næss

commit sha 3356286f5e1acb2ef48e460a62280bfddbb21e4d

Set manifest version to 2

view details

push time in 2 months

push eventsanity-io/sanity-template-gatsby-blog

Bjørge Næss

commit sha 9954d683100c813131bb332b750a4c27bce1d3da

Remove alt

view details

push time in 2 months

push eventsanity-io/sanity-template-gatsby-blog

Bjørge Næss

commit sha e8bf6441d0574e0e0dc1a82fe38453a5a21cf465

Valid

view details

push time in 2 months

push eventsanity-io/sanity-template-gatsby-blog

Bjørge Næss

commit sha 1470f9331e894579df583683d9192581e68c85bd

Make valid version

view details

push time in 2 months

push eventsanity-io/sanity-template-gatsby-blog

Bjørge Næss

commit sha 2c41551aff7cd0d2bc8c26fd0338876939a8d515

Make template invalid

view details

push time in 2 months

create barnchsanity-io/sanity-template-gatsby-blog

branch : invalid-manifest

created branch time in 2 months

create barnchsanity-io/sanity-template-gatsby-blog

branch : manifest-v2

created branch time in 2 months

push eventsanity-io/sanity-template-vercel-poc

Bjørge Næss

commit sha 90a978a5768315f1d57ef19e19e8f1847d514d0f

Set version: 2

view details

push time in 2 months

created tagsanity-io/sanity-template

tagv2.0.0-rc.2

Sanity template developer tools, documentation and specification

created time in 2 months

push eventsanity-io/sanity-template

Bjørge Næss

commit sha 4547b5b6d15ceadd93d2ab95a4900c6e7950b5ed

Export all symbols

view details

Bjørge Næss

commit sha dd4a1696cec87971b0962d5c3b42233ff65ac565

2.0.0-rc.2

view details

push time in 2 months

more