sanity-plugin-dashboard-widget-netlify 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 Sanity, Inc
3
+ Copyright (c) 2022 Sanity, Inc
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -87,3 +87,13 @@ To simulate using your development version as a real module inside a studio, you
87
87
  * Start the studio
88
88
 
89
89
  When you are done and have published your new version, you can run `npm unlink` inside this repo, and `npm unlink sanity-plugin-dashboard-widget-netlify` inside the mono-repo or studio to get back to the normal state. Then run `npm run bootstrap` for the mono-repo or `npm install` inside the regular studio to use the published version.
90
+
91
+ ## Developing plugin kit
92
+
93
+ ### Release new version
94
+
95
+ Run ["CI & Release" workflow](https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify/actions/workflows/main.yml).
96
+ Make sure to select the main (or v3) branch and check "Release new version".
97
+
98
+ Semantic release will only release on configured branches, so it is safe to run release on any branch.
99
+
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/http/utils/createAbortController.ts"],"names":["createAbortController","window","AbortControllerPolyfill","AbortController"],"mappings":";;;;;;;AAAA;;;;AAEO,IAAMA,qBAAqB,GAAG,MAAuB;AAC1D,MAAI,EAAE,qBAAqBC,MAAvB,CAAJ,EAAoC;AAClC,WAAO,IAAIC,wBAAJ,EAAP;AACD;;AACD,SAAO,IAAIC,eAAJ,EAAP;AACD,CALM","sourcesContent":["import AbortControllerPolyfill from 'abort-controller'\n\nexport const createAbortController = (): AbortController => {\n if (!('AbortController' in window)) {\n return new AbortControllerPolyfill()\n }\n return new AbortController()\n}\n"],"file":"createAbortController.js"}
1
+ {"version":3,"sources":["../../../src/http/utils/createAbortController.ts"],"names":["createAbortController","window","AbortControllerPolyfill","AbortController"],"mappings":";;;;;;;AAAA;;;;AAEO,IAAMA,qBAAqB,GAAG,MAAuB;AAC1D,MAAI,EAAE,qBAAqBC,MAAvB,CAAJ,EAAoC;AAClC,WAAO,IAAIC,wBAAJ,EAAP;AACD;;AACD,SAAO,IAAIC,eAAJ,EAAP;AACD,CALM","sourcesContent":["import AbortControllerPolyfill from 'abort-controller'\n\nexport const createAbortController = (): AbortController => {\n if (!('AbortController' in window)) {\n return new AbortControllerPolyfill() as AbortController\n }\n return new AbortController()\n}\n"],"file":"createAbortController.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-dashboard-widget-netlify",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Sanity Studio Dashboard Widget for triggering Netlify builds",
5
5
  "keywords": [
6
6
  "sanity",
@@ -38,7 +38,9 @@
38
38
  "test": "jest --coverage",
39
39
  "test:watch": "jest --coverage --watch",
40
40
  "test:prod": "npm run lint && npm run test -- --no-cache",
41
- "prepublishOnly": "npm run build"
41
+ "prepublishOnly": "npm run compile && npm run build",
42
+ "prepare": "husky install",
43
+ "compile": "tsc --noEmit"
42
44
  },
43
45
  "prettier": {
44
46
  "semi": false,
@@ -59,7 +61,10 @@
59
61
  "styled-components": "^5.2.0"
60
62
  },
61
63
  "devDependencies": {
64
+ "@commitlint/cli": "^17.1.2",
65
+ "@commitlint/config-conventional": "^17.1.0",
62
66
  "@sanity/dashboard": ">=2.13.0",
67
+ "@sanity/semantic-release-preset": "^2.0.1",
63
68
  "@sanity/ui": "^0.36.12",
64
69
  "@testing-library/jest-dom": "^5.11.4",
65
70
  "@testing-library/react": "^11.0.4",
@@ -74,8 +79,10 @@
74
79
  "eslint-config-prettier": "^8.1.0",
75
80
  "eslint-config-sanity": "^5.1.0",
76
81
  "eslint-plugin-prettier": "^3.3.1",
82
+ "husky": "^8.0.1",
77
83
  "jest": "^26.0.0",
78
84
  "jest-date-mock": "^1.0.8",
85
+ "lint-staged": "^13.0.3",
79
86
  "prettier": "^2.0.0",
80
87
  "react": "^17.0.0",
81
88
  "react-dom": "^17.0.0",