diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..dea7c84 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,49 @@ +### Changelog + +All notable changes to this project will be documented in this file. Dates are displayed in UTC. + +Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). + +#### [v0.6.5](https://github.com/cudr/slate-collaborative/compare/v0.6.4...v0.6.5) + +> 21 June 2020 + +#### [v0.6.4](https://github.com/cudr/slate-collaborative/compare/v0.6.3...v0.6.4) + +> 22 June 2020 + +- feat: add auto-changelog [`c66c01a`](https://github.com/cudr/slate-collaborative/commit/c66c01ac07d6e3ca59db765f45ce53868e103f31) +- feat: add auto-changelog [`ca8b4b7`](https://github.com/cudr/slate-collaborative/commit/ca8b4b741c79381e41319bf58a6980a30128be67) + +#### [v0.6.3](https://github.com/cudr/slate-collaborative/compare/v0.5.1...v0.6.3) + +> 22 June 2020 + +- Implement link editor [`#20`](https://github.com/cudr/slate-collaborative/pull/20) +- Missing query argument in nspMiddleware [`#16`](https://github.com/cudr/slate-collaborative/pull/16) +- feat: add onError cb [`#15`](https://github.com/cudr/slate-collaborative/pull/15) +- Changed the backend socket config types fom Element[] to Node[] and m… [`#14`](https://github.com/cudr/slate-collaborative/pull/14) +- Fix typing of SyncValue. [`#12`](https://github.com/cudr/slate-collaborative/pull/12) +- feat: update to slate 0.58 && fix site build [`6adf408`](https://github.com/cudr/slate-collaborative/commit/6adf4082dc9f81c52c779e23e6bbb8ebe6ef5e9d) +- feat: update site styles [`aa2255a`](https://github.com/cudr/slate-collaborative/commit/aa2255a03c605fbb6303298ef1ab462a088239d7) +- feat: add auto-changelog [`ff77059`](https://github.com/cudr/slate-collaborative/commit/ff77059a49402931e2d87a6e9b6d11d7549cb4c4) + +#### [v0.5.1](https://github.com/cudr/slate-collaborative/compare/v0.5.0...v0.5.1) + +> 10 May 2020 + +- feat: update to slate 0.5x [`#10`](https://github.com/cudr/slate-collaborative/pull/10) +- chore(release): 0.5.0 [`a88c5c0`](https://github.com/cudr/slate-collaborative/commit/a88c5c0ec967eeb107d2973f9c72537c537c830a) +- chore(release): 0.5.1 [`1711f76`](https://github.com/cudr/slate-collaborative/commit/1711f76f9b802c7d8369936a457f434d4b1f192b) + +#### v0.5.0 + +> 10 May 2020 + +- feat: refactoring types && handle annotation ops [`#6`](https://github.com/cudr/slate-collaborative/pull/6) +- feat: travis-ci [`#3`](https://github.com/cudr/slate-collaborative/pull/3) +- Inner annotations [`#2`](https://github.com/cudr/slate-collaborative/pull/2) +- feat: mark data [`#1`](https://github.com/cudr/slate-collaborative/pull/1) +- feat: update to slate 0.5x [`a557a58`](https://github.com/cudr/slate-collaborative/commit/a557a58bda775107a37054bf4a8a697569308d48) +- initial commit [`a817eb1`](https://github.com/cudr/slate-collaborative/commit/a817eb1cebf296495099e67a7939e7a09f0e5b48) +- feat: extract CollaborationBackend [`9a59a0a`](https://github.com/cudr/slate-collaborative/commit/9a59a0ac34754f89dd7d8f7943b7073ad042e8bb) diff --git a/changelog-template.hbs b/changelog-template.hbs new file mode 100644 index 0000000..8675a29 --- /dev/null +++ b/changelog-template.hbs @@ -0,0 +1,11 @@ +### Changelog + +{{#each releases}} + Released {{title}} {{href}} at {{niceDate}} + {{#each merges}} + - Merge {{message}} {{id}} {{href}} + {{/each}} + {{#each fixes}} + - Fix {{commit}} {{commit.subject}} {{id}} linked to {{href}}. + {{/each}} +{{/each}} \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..a4f4369 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ['@commitlint/config-conventional'] +} diff --git a/lerna.json b/lerna.json index 9cb34aa..8101ba4 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "lerna": "2.7.1", - "version": "0.5.0", + "version": "0.6.4", "npmClient": "yarn", "useWorkspaces": true } diff --git a/package.json b/package.json index c504124..24869c0 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "private": true, - "version": "0.6.0", "description": "Slate collaborative plugin & microservice", "scripts": { "bootstrap": "lerna bootstrap", + "version": "auto-changelog -p --template changelog-template.hbs && git add CHANGELOG.md", "clean": "rimraf ./packages/**/lib/ && rimraf ./packages/**/tsconfig.tsbuildinfo && lerna clean --yes", - "release": "yarn prebuild && yarn build && lerna publish from-package", + "release": "yarn prebuild && yarn build && lerna version && lerna publish from-package", "deploy:site": "git subtree push --prefix packages/example heroku master", "dev": "lerna run --stream build:js && concurrently \"yarn watch\" \"lerna run dev --stream\"", "build": "lerna run build:module --stream", @@ -26,7 +26,8 @@ }, "husky": { "hooks": { - "pre-commit": "lint-staged" + "pre-commit": "lint-staged", + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "lint-staged": { @@ -36,11 +37,15 @@ ] }, "devDependencies": { + "@commitlint/cli": "^9.0.1", + "@commitlint/config-conventional": "^9.0.1", + "auto-changelog": "^2.1.0", "concurrently": "^4.1.2", "husky": "^3.0.5", "lerna": "^3.20.2", "lint-staged": "^9.2.5", "prettier": "^1.18.2", "rimraf": "^3.0.2" - } + }, + "version": "0.6.5" } diff --git a/packages/backend/package.json b/packages/backend/package.json index cdcdb2a..9759e2f 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@slate-collaborative/backend", - "version": "0.6.2", + "version": "0.6.4", "files": [ "lib" ], @@ -26,7 +26,7 @@ "dependencies": { "@babel/plugin-proposal-optional-chaining": "^7.9.0", "@babel/runtime": "^7.6.3", - "@slate-collaborative/bridge": "0.6.1", + "@slate-collaborative/bridge": "^0.6.4", "@types/lodash": "^4.14.150", "@types/socket.io": "^2.1.4", "automerge": "0.14.0", diff --git a/packages/bridge/package.json b/packages/bridge/package.json index b7f16fe..a2c0503 100644 --- a/packages/bridge/package.json +++ b/packages/bridge/package.json @@ -1,6 +1,6 @@ { "name": "@slate-collaborative/bridge", - "version": "0.6.1", + "version": "0.6.4", "files": [ "lib" ], diff --git a/packages/client/package.json b/packages/client/package.json index 91e0d4e..539e8b0 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@slate-collaborative/client", - "version": "0.6.2", + "version": "0.6.4", "files": [ "lib" ], @@ -26,7 +26,7 @@ "dependencies": { "@babel/plugin-proposal-optional-chaining": "^7.9.0", "@babel/preset-react": "^7.0.0", - "@slate-collaborative/bridge": "0.6.1", + "@slate-collaborative/bridge": "^0.6.4", "automerge": "0.14.0", "slate": "0.58.3", "socket.io-client": "^2.3.0", diff --git a/packages/example/package.json b/packages/example/package.json index f1e0016..bf266e8 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -1,12 +1,12 @@ { "name": "@slate-collaborative/example", - "version": "0.6.0", + "version": "0.6.4", "private": true, "dependencies": { "@emotion/core": "^10.0.17", "@emotion/styled": "^10.0.17", - "@slate-collaborative/backend": "^0.6.2", - "@slate-collaborative/client": "^0.6.2", + "@slate-collaborative/backend": "^0.6.4", + "@slate-collaborative/client": "^0.6.4", "@types/faker": "^4.1.5", "@types/is-url": "^1.2.28", "@types/jest": "24.0.18",