From 4d32175ed5ee4b6a6fdd952554afb01fda3f6f46 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Sun, 28 Nov 2021 22:54:10 +0100 Subject: [PATCH] chore: changelog --- CHANGELOG.md | 237 +++++++++++++++++++++++++++++++++++++ package.json | 4 +- scripts/update-version.mjs | 5 + yarn.lock | 189 ++++++++++++++++++++++++++++- 4 files changed, 429 insertions(+), 6 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 scripts/update-version.mjs diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..46d04c0 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,237 @@ +# [4.0.0-alpha.16](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.15...v4.0.0-alpha.16) (2021-11-28) + + +### Bug Fixes + +* destruction of $apollo in vue-apollo-option ([#1273](https://github.com/vuejs/vue-apollo/issues/1273)) ([e2dad14](https://github.com/vuejs/vue-apollo/commit/e2dad14ec8df636623f04f67b8b9561ce497ec19)) +* duplicate call to catchError, closes [#1133](https://github.com/vuejs/vue-apollo/issues/1133) ([eaf1da7](https://github.com/vuejs/vue-apollo/commit/eaf1da7c393bae88c1cce950e27baaff64c09764)) +* improve peerDeps declaration, closes [#1263](https://github.com/vuejs/vue-apollo/issues/1263) ([3c8545b](https://github.com/vuejs/vue-apollo/commit/3c8545b8957caeed9bffd73fbe2fa8e2bbf09654)) +* useMutation outside setup ([#1262](https://github.com/vuejs/vue-apollo/issues/1262)) ([9b3af01](https://github.com/vuejs/vue-apollo/commit/9b3af018f5ddde0817b4d5049589d0be88c9a913)) +* **useQuery:** improve error handling with errorPolicy set to 'all' ([04ab9f6](https://github.com/vuejs/vue-apollo/commit/04ab9f6e869ac18464bdf33fcba76cc8a1ddb8d4)) +* useSubscription outside of component ([a37a560](https://github.com/vuejs/vue-apollo/commit/a37a560ca55bc4c2c852a8b0a877cb49012885c5)) + + +### Features + +* upgrade dependencies ([0595bd3](https://github.com/vuejs/vue-apollo/commit/0595bd393eb69a342232713284dd7fe8857c61e1)) + + + +# [4.0.0-alpha.15](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.14...v4.0.0-alpha.15) (2021-09-20) + + +### Bug Fixes + +* apollo-client 3.4 FetchMoreQueryOptions, closes [#1252](https://github.com/vuejs/vue-apollo/issues/1252) ([e0786ac](https://github.com/vuejs/vue-apollo/commit/e0786acda0f302bd4275b1f9dd4be66ea0d0ac9d)) +* don't use internal merge strat, closes [#1229](https://github.com/vuejs/vue-apollo/issues/1229) ([e1026a3](https://github.com/vuejs/vue-apollo/commit/e1026a344f36d8d5b19674fe11288b9b8b8014e0)) +* remove $isServer, closes [#1241](https://github.com/vuejs/vue-apollo/issues/1241) ([1180679](https://github.com/vuejs/vue-apollo/commit/11806792363cd754e98157d8a215ab0dabce913d)) +* **smart apollo:** ensure SmartQuery variables still function when watched expression evaluated ([#1161](https://github.com/vuejs/vue-apollo/issues/1161)), closes [#991](https://github.com/vuejs/vue-apollo/issues/991) ([b67ff78](https://github.com/vuejs/vue-apollo/commit/b67ff78d6a595d9ec67382e74aaffef12439db4a)) +* **SubscribeToMore:** use beforeUnmount ([a90840c](https://github.com/vuejs/vue-apollo/commit/a90840c288f031eab4a97a1673d88280bdde924e)) +* **types:** add throttle and debounce options ([#1258](https://github.com/vuejs/vue-apollo/issues/1258)) ([7ffb5f8](https://github.com/vuejs/vue-apollo/commit/7ffb5f8c9da899620c85eb5e26d5447e3fb74f62)), closes [vuejs#335](https://github.com/vuejs/issues/335) +* **useApolloClient:** save current client in closure, closes [#1249](https://github.com/vuejs/vue-apollo/issues/1249) ([fb18286](https://github.com/vuejs/vue-apollo/commit/fb18286177bb9b7e9161b167d15a8da2b2a3b94b)) +* **useQuery:** reset error on refetch/fetchMore, closes [#1105](https://github.com/vuejs/vue-apollo/issues/1105) ([ea123fa](https://github.com/vuejs/vue-apollo/commit/ea123fa414dc4a4e116dd6d3bc70656f50d831c6)) +* **useResult:** data => data deep required & non-nullable, closes [#1250](https://github.com/vuejs/vue-apollo/issues/1250) ([4475805](https://github.com/vuejs/vue-apollo/commit/4475805cb6dd48a1f0bdaa8df60432ebdc9963cd)) +* vue peerDependencies, closes [#1234](https://github.com/vuejs/vue-apollo/issues/1234) ([a35b04f](https://github.com/vuejs/vue-apollo/commit/a35b04ff05cbdf2e286e5830e9a23b0d5c2ad6f4)) + + + +# [4.0.0-alpha.14](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.13...v4.0.0-alpha.14) (2021-07-19) + + +### Bug Fixes + +* importing react -_-' ([f53bcde](https://github.com/vuejs/vue-apollo/commit/f53bcdec5bfbfc27d24398b163050f7774888600)) +* **mixin:** use unmounted instead of destroyed ([335d538](https://github.com/vuejs/vue-apollo/commit/335d538dd31fa91b42d024c594ce3513791096b2)) +* reference error, when using useQuery ([#1218](https://github.com/vuejs/vue-apollo/issues/1218)) ([08b6b0e](https://github.com/vuejs/vue-apollo/commit/08b6b0e7d9678d051c22d6929c3155f07a720570)) +* target es2018, closes [#1220](https://github.com/vuejs/vue-apollo/issues/1220) ([e496ba2](https://github.com/vuejs/vue-apollo/commit/e496ba26047293100e26f196285b597d6ee64c2d)) + + +### Features + +* convert errors into ApolloError ([#1225](https://github.com/vuejs/vue-apollo/issues/1225)) ([334310d](https://github.com/vuejs/vue-apollo/commit/334310d5e69e83d0079372f5d1a8250a0d2af632)) + + + +# [4.0.0-alpha.13](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.12...v4.0.0-alpha.13) (2021-07-04) + + +### Bug Fixes + +* build ([f81f2d4](https://github.com/vuejs/vue-apollo/commit/f81f2d4db2fa10da77e600fb9724ce12de925d71)) +* **composable:** Clear previous error when recieving a result ([#1120](https://github.com/vuejs/vue-apollo/issues/1120)) ([689c284](https://github.com/vuejs/vue-apollo/commit/689c2842075922390366adc0e2f471a87e6eb17f)) +* don't track loading outside of vm, closes [#1145](https://github.com/vuejs/vue-apollo/issues/1145) ([35940d1](https://github.com/vuejs/vue-apollo/commit/35940d120dbed0cd1c1a6181984f029c40455273)) +* remove ApolloProvider.provide ([40ddcb9](https://github.com/vuejs/vue-apollo/commit/40ddcb99eb05a0161e338576279bbb4b04457197)) +* **useQuery:** apply partial result on start ([62fa842](https://github.com/vuejs/vue-apollo/commit/62fa8429d8af1c9456179d5470c7f656311ff843)) + + +### Features + +* **composable:** Type MutateOverrideOptions ([4c51cb4](https://github.com/vuejs/vue-apollo/commit/4c51cb44156c42213275e9cc4323614a692b1f25)) +* options & components API for Vue 3 ([8a70c95](https://github.com/vuejs/vue-apollo/commit/8a70c95bf7f0e722a0679731c3f122e78c2d9839)) + + + +# [4.0.0-alpha.12](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.11...v4.0.0-alpha.12) (2020-10-17) + + +### Features + +* useLazyQuery, closes [#1068](https://github.com/vuejs/vue-apollo/issues/1068) ([8e95aea](https://github.com/vuejs/vue-apollo/commit/8e95aea00fe5a9d01c290262c6684c7c3b615ab0)) + + + +# [4.0.0-alpha.11](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.10...v4.0.0-alpha.11) (2020-10-17) + + +### Bug Fixes + +* clean imports ([97be1e2](https://github.com/vuejs/vue-apollo/commit/97be1e272259198c2915b3b7d69bff96ac3f61f2)) +* **error log:** only import graphq printer, closes [#994](https://github.com/vuejs/vue-apollo/issues/994) ([5eb9506](https://github.com/vuejs/vue-apollo/commit/5eb95063595876f90fa36a36d0814cfbf740ca4e)) +* more updates to apollo-client 3 ([fae0229](https://github.com/vuejs/vue-apollo/commit/fae022905cf42aec258997d2c9296e6f2674c0d3)) +* resolveClient use id arg ([4a9e959](https://github.com/vuejs/vue-apollo/commit/4a9e959c06ee8eadd3c29fe22a04703ec3be033a)) +* **ssr:** code broken by eslint fix ([f1279d8](https://github.com/vuejs/vue-apollo/commit/f1279d8dad816fcbcab9a4e3a28b3af473656330)) +* support Vue 3 vm.root ([#1040](https://github.com/vuejs/vue-apollo/issues/1040)) ([957aae3](https://github.com/vuejs/vue-apollo/commit/957aae33908cca6bda980cabfc3b156f6f940755)) +* unresolved promises in ssr ([#940](https://github.com/vuejs/vue-apollo/issues/940)) ([#1069](https://github.com/vuejs/vue-apollo/issues/1069)) ([8a71443](https://github.com/vuejs/vue-apollo/commit/8a714431b2a04a008ef698a7d39eb53c8f6585b8)) +* **useApolloClient:** add id arg to resolveClient ([72d7402](https://github.com/vuejs/vue-apollo/commit/72d7402eb29893a7e63fc675a8057a8f5a4a825f)) +* **useApolloClient:** clientId arg not working, closes [#1023](https://github.com/vuejs/vue-apollo/issues/1023) ([65d1984](https://github.com/vuejs/vue-apollo/commit/65d1984ecdd67371db3aa0cd6f8814d6709eb15a)) +* useEventHook param is not optional ([#1027](https://github.com/vuejs/vue-apollo/issues/1027)) ([1d2f4f3](https://github.com/vuejs/vue-apollo/commit/1d2f4f32991325a5fc53e193e1dfed0faa040441)) +* **useQuery:** use nextTick to support Vue 3 ([#1041](https://github.com/vuejs/vue-apollo/issues/1041)) ([c9ee0ec](https://github.com/vuejs/vue-apollo/commit/c9ee0ec645fd876caf4564f46a904f91780e80ac)) + + +### Features + +* allow using useQuery outside of setup, closes [#1020](https://github.com/vuejs/vue-apollo/issues/1020) ([0cd4f95](https://github.com/vuejs/vue-apollo/commit/0cd4f95f17a67ba2fcd2503524cae2922ca87e8f)) +* **composable:** es build ([cfbb9da](https://github.com/vuejs/vue-apollo/commit/cfbb9da5af00336e56a09da73a4760ba0dbf5874)) + + + +# [4.0.0-alpha.10](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.9...v4.0.0-alpha.10) (2020-07-27) + + + +# [4.0.0-alpha.9](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.8...v4.0.0-alpha.9) (2020-07-27) + + +### Bug Fixes + +* Be able to overrid variables in mutate ([#946](https://github.com/vuejs/vue-apollo/issues/946)) ([1867e73](https://github.com/vuejs/vue-apollo/commit/1867e73d546a7e7786dcb652de6d62b7aef6e015)) +* **ts:** allow undefined for optional variables ([#962](https://github.com/vuejs/vue-apollo/issues/962)) ([7495987](https://github.com/vuejs/vue-apollo/commit/7495987fdb5b7ab6d7ea458cceadb4997ac92e5f)) +* Update @vue/composition-api to v0.6.1 ([#1000](https://github.com/vuejs/vue-apollo/issues/1000)) ([e8e8f54](https://github.com/vuejs/vue-apollo/commit/e8e8f542d26aa5945e7c9681ecde655b3ddcf97f)) + + + +# [4.0.0-alpha.8](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.7...v4.0.0-alpha.8) (2020-04-02) + + +### Bug Fixes + +* **ts:** Add typings for late variables in useMutation ([#925](https://github.com/vuejs/vue-apollo/issues/925)) ([576b495](https://github.com/vuejs/vue-apollo/commit/576b49543ac9c8c26586daee263cdbdf80dfd34f)) +* **ts:** mutate() types ([5aaa47b](https://github.com/vuejs/vue-apollo/commit/5aaa47b672bc0774ba786852c6186cef253b1c73)) +* **ts:** useMutation types ([a9d9501](https://github.com/vuejs/vue-apollo/commit/a9d950156d1f8e89cf8ba3532936b6a09e0b776a)) + + + +# [4.0.0-alpha.7](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.6...v4.0.0-alpha.7) (2020-02-16) + + +### Bug Fixes + +* use getCurrentResult() ([d64b0c4](https://github.com/vuejs/vue-apollo/commit/d64b0c42818f817836ea68f37da64eb9587f2152)) + + + +# [4.0.0-alpha.6](https://github.com/vuejs/vue-apollo/compare/v4.0.0-4.0.0-alpha.6.0...v4.0.0-alpha.6) (2020-01-22) + + + +# [4.0.0-4.0.0-alpha.6.0](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.4...v4.0.0-4.0.0-alpha.6.0) (2020-01-22) + + +### Bug Fixes + +* compare serialized variables to prevent unnecessary fetch ([3a473e2](https://github.com/vuejs/vue-apollo/commit/3a473e264336b0b2d5442ee4efb63aa8513de1c5)) +* **ts:** Add full test coverage for TypeScript hook types & fix missing overloads ([#895](https://github.com/vuejs/vue-apollo/issues/895)) ([32d1f75](https://github.com/vuejs/vue-apollo/commit/32d1f7568e1a4b72fbe2de4ada6985c65675a84b)) +* **useMutation:** "mutate" optional arguments ([9d64fca](https://github.com/vuejs/vue-apollo/commit/9d64fca7bcf5e3e353cd8c2963c8dd1e332d29c2)) +* **useMutation:** useMutation not taking a Ref ([0ad08c7](https://github.com/vuejs/vue-apollo/commit/0ad08c792ea00587bca574909257cd2e7fa88d4c)) +* **useSbuscription:** currentOptions undefined error, closes [#903](https://github.com/vuejs/vue-apollo/issues/903) ([fb1565d](https://github.com/vuejs/vue-apollo/commit/fb1565d2071f9e1b9784ee3b55639f44d29947f5)) + + + +# [4.0.0-alpha.4](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.3...v4.0.0-alpha.4) (2019-12-17) + + +### Bug Fixes + +* loading tracking not cleanup correctly on component unmount ([dbb1c09](https://github.com/vuejs/vue-apollo/commit/dbb1c094bde2f83c67d534e1f5b9e5410f909bb8)) +* **type:** useResult type inferring 'any' ([#872](https://github.com/vuejs/vue-apollo/issues/872)) ([9edcf2f](https://github.com/vuejs/vue-apollo/commit/9edcf2feb89cea00a8860d4a01c341d357d4b2ac)) +* use onBeforeUnmount ([9c4b6b0](https://github.com/vuejs/vue-apollo/commit/9c4b6b09b70b31560dcce6f1d77eb927fa9e9781)) + + + +# [4.0.0-alpha.3](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.2...v4.0.0-alpha.3) (2019-12-04) + + +### Bug Fixes + +* enabled option for `useQuery` & `useSubscription` ([947ceb1](https://github.com/vuejs/vue-apollo/commit/947ceb1743e7ef9d5ba1ca0474f56e356b61235d)) +* **useQuery:** throttle & debounce not being applied initially ([280301f](https://github.com/vuejs/vue-apollo/commit/280301f4ac540a05d748b1cc1109e5a975f52380)) + + + +# [4.0.0-alpha.2](https://github.com/vuejs/vue-apollo/compare/v4.0.0-alpha.1...v4.0.0-alpha.2) (2019-12-04) + + +### Bug Fixes + +* useXXXLoading() oldValue being undefined and triggering watcher ([ebea61e](https://github.com/vuejs/vue-apollo/commit/ebea61eca656a0f6321910577c5d1cf19a297dd8)) + + +### Features + +* **useMutation:** overrideOptions ([3921587](https://github.com/vuejs/vue-apollo/commit/39215877e990e9cd50962a63af7615ff6cedbb45)) + + + +# [4.0.0-alpha.1](https://github.com/vuejs/vue-apollo/compare/v3.0.1...v4.0.0-alpha.1) (2019-12-02) + + +### Bug Fixes + +* **components:** main files ([f23d37c](https://github.com/vuejs/vue-apollo/commit/f23d37c9f13fdcdb4db2fba0e31a001a7904d9c9)) +* deps ([f289394](https://github.com/vuejs/vue-apollo/commit/f289394e9075aa19a3805b22ee3f7f7e391db206)) +* enabled ([afbb5bd](https://github.com/vuejs/vue-apollo/commit/afbb5bd3900379d7b8b865eada05aca50b6652d1)) +* ts error ([ab71f87](https://github.com/vuejs/vue-apollo/commit/ab71f8742e8e109e01ea169639646e7214dc06dc)) +* **ts:** types file name gql.ts to gql.d.ts ([#864](https://github.com/vuejs/vue-apollo/issues/864)) ([bae6f3c](https://github.com/vuejs/vue-apollo/commit/bae6f3c466e6dc7b3e5f65bb9c1eca6b3a1219af)) +* unused import ([786dc5b](https://github.com/vuejs/vue-apollo/commit/786dc5bc2549966ff1e10d4c17011105924c0436)) +* use const ([114881d](https://github.com/vuejs/vue-apollo/commit/114881dc4a751367e387eca090edc9ac2d1f1383)) +* **useMutation:** allow dyanmic GraphQL document ([9a595b4](https://github.com/vuejs/vue-apollo/commit/9a595b4a5f1becde0e4030e5fe772d1b81375bea)) +* **useQuery:** do not use finally ([1bf9552](https://github.com/vuejs/vue-apollo/commit/1bf955206ac0553cf25329e0594dff6d3764c3ec)) +* **useQuery:** immediate result ([b4df941](https://github.com/vuejs/vue-apollo/commit/b4df941f28d4721ae9d4c0a80c835c1d985543ba)) +* **useQuery:** isEnabled ([e930f0c](https://github.com/vuejs/vue-apollo/commit/e930f0cbffc94a63e06e293568d16e14a9972e4f)) +* **useQuery:** loading status on error ([93e6c5b](https://github.com/vuejs/vue-apollo/commit/93e6c5b93ac1298ddade8972deb5d96030df2611)) +* **useQuery:** resubscribe after error ([8fcf54d](https://github.com/vuejs/vue-apollo/commit/8fcf54d326dce9113231d7ab02d93c2ea1b79a5a)) +* **useQuery:** result when error occurs ([d7f14b3](https://github.com/vuejs/vue-apollo/commit/d7f14b348153742a3d944295abdbc61f9d377264)) +* **useSubscription:** don't start on server ([4c72ff2](https://github.com/vuejs/vue-apollo/commit/4c72ff24c0caca7380ddfd764191612f65fdf863)) +* **useSubscription:** enabled ([52b5188](https://github.com/vuejs/vue-apollo/commit/52b5188dc9a5cc954ce9b33cb92afa8b65f8f9b4)) +* **useSubscription:** loading status on error ([a5dee52](https://github.com/vuejs/vue-apollo/commit/a5dee5268f11844f8a1817f9a8f7c210438e4f3c)) + + +### Features + +* @vue/apollo-util pkg + error log utils ([f17ae22](https://github.com/vuejs/vue-apollo/commit/f17ae22d3bacae02322731e726e680e497b8cfc1)) +* **composition:** debounce + throttle ([30267b2](https://github.com/vuejs/vue-apollo/commit/30267b297e40b1b93b61826c7cfb9698b35e5a9e)) +* improved subscribeToMore ([6d5ce42](https://github.com/vuejs/vue-apollo/commit/6d5ce42e0ab5f3f7215146cba7f310e0d4cec62a)) +* useLoading ([008e5f3](https://github.com/vuejs/vue-apollo/commit/008e5f3fc8c0de0cde2e62379d564779d27ee82c)) +* useMutation ([c8a7eca](https://github.com/vuejs/vue-apollo/commit/c8a7ecaeb450a33578c96b765d83785544af3c12)) +* **useMutation:** called ref ([bfb5d08](https://github.com/vuejs/vue-apollo/commit/bfb5d08c694b1a4aa2ad28094cff241cdf7779aa)) +* **useMutation:** onDone & onError ([74ffbd0](https://github.com/vuejs/vue-apollo/commit/74ffbd01e62350da5e4e8439cf157e3b471097d2)) +* useQuery ([377f421](https://github.com/vuejs/vue-apollo/commit/377f421a26278f7182545c47ef467eae859c7676)) +* **useQuery:** fetchMore ([d73eac8](https://github.com/vuejs/vue-apollo/commit/d73eac827bbc142bc84bf804d97305fbd59819ac)) +* **useQuery:** networkStatus ([e57eb7d](https://github.com/vuejs/vue-apollo/commit/e57eb7d073fbc4b7aee4d864563f82b1f823bc8c)) +* **useQuery:** onResult & onError ([fac6fea](https://github.com/vuejs/vue-apollo/commit/fac6fea2e6186f12de8d3ab889bebb2f3a01f8d7)) +* **useQuery:** prefetch option ([151fbd2](https://github.com/vuejs/vue-apollo/commit/151fbd2fc3d2e41a5db04b827ce546bcba7be63d)) +* **useQuery:** refetch ([e77518a](https://github.com/vuejs/vue-apollo/commit/e77518adbaf1d4d18238de28d38cdaf79ebb07b6)) +* **useQuery:** SSR support ([5d3b7dc](https://github.com/vuejs/vue-apollo/commit/5d3b7dc598c5463e3495b525ddb31aecfb66a2ad)) +* useSubscription ([41b256f](https://github.com/vuejs/vue-apollo/commit/41b256ff2d85286728089dc30de5258268578c8e)) +* **useSubscription:** onResult, onError ([d4b18db](https://github.com/vuejs/vue-apollo/commit/d4b18db3103c4eff974bd88c976474a8f9f70cdd)) +* wip useLoading ([caa9726](https://github.com/vuejs/vue-apollo/commit/caa9726c76a742263a3b095757983f53b208c511)) diff --git a/package.json b/package.json index 2c68899..8f43f42 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,15 @@ "build": "lerna run build --concurrency 1 --scope \"{vue-apollo,@vue/apollo}*\"", "test": "lerna run test --concurrency 1", "lint": "eslint . --ext js,vue,ts", - "release": "yarn run build && yarn run test && lerna publish" + "release": "yarn run build && yarn run test && lerna publish && yarn changelog", + "changelog": "node ./scripts/update-version.mjs && conventional-changelog -p angular -i CHANGELOG.md -s -r 2 && (git add CHANGELOG.md && git add package.json && git commit -m \"chore: changelog\" && git push || exit 0)" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.2.0", "@typescript-eslint/parser": "^4.2.0", "@vue/eslint-config-standard": "^6.0.0", "@vue/eslint-config-typescript": "^7.0.0", + "conventional-changelog-cli": "^2.1.1", "core-js": "^3.4.1", "esbuild": "^0.8.44", "esbuild-node-externals": "^1.0.2", diff --git a/scripts/update-version.mjs b/scripts/update-version.mjs new file mode 100644 index 0000000..a0ec936 --- /dev/null +++ b/scripts/update-version.mjs @@ -0,0 +1,5 @@ +import fs from 'fs' +const lernaConfig = JSON.parse(fs.readFileSync('lerna.json', { encoding: 'utf8' })) +const pkgData = JSON.parse(fs.readFileSync('package.json', { encoding: 'utf-8' })) +pkgData.version = lernaConfig.version +fs.writeFileSync('package.json', JSON.stringify(pkgData, null, 2) + '\n', { encoding: 'utf-8' }) diff --git a/yarn.lock b/yarn.lock index 398d943..4a4544e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1166,6 +1166,11 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@hutson/parse-repository-url@^3.0.0": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" + integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== + "@intervolga/optimize-cssnano-plugin@^1.0.5": version "1.0.6" resolved "https://registry.yarnpkg.com/@intervolga/optimize-cssnano-plugin/-/optimize-cssnano-plugin-1.0.6.tgz#be7c7846128b88f6a9b1d1261a0ad06eb5c0fdf8" @@ -3513,6 +3518,11 @@ acorn@^7.0.0, acorn@^7.1.0, acorn@^7.1.1, acorn@^7.4.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== +add-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" + integrity sha1-anmQQ3ynNtXhKI25K9MmbV9csqo= + address@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/address/-/address-1.1.2.tgz#bf1116c9c758c51b7a933d296b72c221ed9428b6" @@ -5378,7 +5388,7 @@ content-type@~1.0.4: resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== -conventional-changelog-angular@^5.0.3: +conventional-changelog-angular@^5.0.12, conventional-changelog-angular@^5.0.3: version "5.0.13" resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz#896885d63b914a70d4934b59d2fe7bde1832b28c" integrity sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA== @@ -5386,6 +5396,40 @@ conventional-changelog-angular@^5.0.3: compare-func "^2.0.0" q "^1.5.1" +conventional-changelog-atom@^2.0.8: + version "2.0.8" + resolved "https://registry.yarnpkg.com/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz#a759ec61c22d1c1196925fca88fe3ae89fd7d8de" + integrity sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw== + dependencies: + q "^1.5.1" + +conventional-changelog-cli@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/conventional-changelog-cli/-/conventional-changelog-cli-2.1.1.tgz#7a11980bc399938e0509d2adf8e7a0e213eb994e" + integrity sha512-xMGQdKJ+4XFDDgfX5aK7UNFduvJMbvF5BB+g0OdVhA3rYdYyhctrIE2Al+WYdZeKTdg9YzMWF2iFPT8MupIwng== + dependencies: + add-stream "^1.0.0" + conventional-changelog "^3.1.24" + lodash "^4.17.15" + meow "^8.0.0" + tempfile "^3.0.0" + +conventional-changelog-codemirror@^2.0.8: + version "2.0.8" + resolved "https://registry.yarnpkg.com/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz#398e9530f08ce34ec4640af98eeaf3022eb1f7dc" + integrity sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw== + dependencies: + q "^1.5.1" + +conventional-changelog-conventionalcommits@^4.5.0: + version "4.6.1" + resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.1.tgz#f4c0921937050674e578dc7875f908351ccf4014" + integrity sha512-lzWJpPZhbM1R0PIzkwzGBCnAkH5RKJzJfFQZcl/D+2lsJxAwGnDKBqn/F4C1RD31GJNn8NuKWQzAZDAVXPp2Mw== + dependencies: + compare-func "^2.0.0" + lodash "^4.17.15" + q "^1.5.1" + conventional-changelog-core@^3.1.6: version "3.2.3" resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-3.2.3.tgz#b31410856f431c847086a7dcb4d2ca184a7d88fb" @@ -5405,7 +5449,63 @@ conventional-changelog-core@^3.1.6: read-pkg-up "^3.0.0" through2 "^3.0.0" -conventional-changelog-preset-loader@^2.1.1: +conventional-changelog-core@^4.2.1: + version "4.2.4" + resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz#e50d047e8ebacf63fac3dc67bf918177001e1e9f" + integrity sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg== + dependencies: + add-stream "^1.0.0" + conventional-changelog-writer "^5.0.0" + conventional-commits-parser "^3.2.0" + dateformat "^3.0.0" + get-pkg-repo "^4.0.0" + git-raw-commits "^2.0.8" + git-remote-origin-url "^2.0.0" + git-semver-tags "^4.1.1" + lodash "^4.17.15" + normalize-package-data "^3.0.0" + q "^1.5.1" + read-pkg "^3.0.0" + read-pkg-up "^3.0.0" + through2 "^4.0.0" + +conventional-changelog-ember@^2.0.9: + version "2.0.9" + resolved "https://registry.yarnpkg.com/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz#619b37ec708be9e74a220f4dcf79212ae1c92962" + integrity sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A== + dependencies: + q "^1.5.1" + +conventional-changelog-eslint@^3.0.9: + version "3.0.9" + resolved "https://registry.yarnpkg.com/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz#689bd0a470e02f7baafe21a495880deea18b7cdb" + integrity sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA== + dependencies: + q "^1.5.1" + +conventional-changelog-express@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz#420c9d92a347b72a91544750bffa9387665a6ee8" + integrity sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ== + dependencies: + q "^1.5.1" + +conventional-changelog-jquery@^3.0.11: + version "3.0.11" + resolved "https://registry.yarnpkg.com/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz#d142207400f51c9e5bb588596598e24bba8994bf" + integrity sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw== + dependencies: + q "^1.5.1" + +conventional-changelog-jshint@^2.0.9: + version "2.0.9" + resolved "https://registry.yarnpkg.com/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz#f2d7f23e6acd4927a238555d92c09b50fe3852ff" + integrity sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA== + dependencies: + compare-func "^2.0.0" + q "^1.5.1" + +conventional-changelog-preset-loader@^2.1.1, conventional-changelog-preset-loader@^2.3.4: version "2.3.4" resolved "https://registry.yarnpkg.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz#14a855abbffd59027fd602581f1f34d9862ea44c" integrity sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g== @@ -5426,6 +5526,38 @@ conventional-changelog-writer@^4.0.6: split "^1.0.0" through2 "^4.0.0" +conventional-changelog-writer@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-5.0.0.tgz#c4042f3f1542f2f41d7d2e0d6cad23aba8df8eec" + integrity sha512-HnDh9QHLNWfL6E1uHz6krZEQOgm8hN7z/m7tT16xwd802fwgMN0Wqd7AQYVkhpsjDUx/99oo+nGgvKF657XP5g== + dependencies: + conventional-commits-filter "^2.0.7" + dateformat "^3.0.0" + handlebars "^4.7.6" + json-stringify-safe "^5.0.1" + lodash "^4.17.15" + meow "^8.0.0" + semver "^6.0.0" + split "^1.0.0" + through2 "^4.0.0" + +conventional-changelog@^3.1.24: + version "3.1.24" + resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-3.1.24.tgz#ebd180b0fd1b2e1f0095c4b04fd088698348a464" + integrity sha512-ed6k8PO00UVvhExYohroVPXcOJ/K1N0/drJHx/faTH37OIZthlecuLIRX/T6uOp682CAoVoFpu+sSEaeuH6Asg== + dependencies: + conventional-changelog-angular "^5.0.12" + conventional-changelog-atom "^2.0.8" + conventional-changelog-codemirror "^2.0.8" + conventional-changelog-conventionalcommits "^4.5.0" + conventional-changelog-core "^4.2.1" + conventional-changelog-ember "^2.0.9" + conventional-changelog-eslint "^3.0.9" + conventional-changelog-express "^2.0.6" + conventional-changelog-jquery "^3.0.11" + conventional-changelog-jshint "^2.0.9" + conventional-changelog-preset-loader "^2.3.4" + conventional-commits-filter@^2.0.2, conventional-commits-filter@^2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz#f8d9b4f182fce00c9af7139da49365b136c8a0b3" @@ -5434,7 +5566,7 @@ conventional-commits-filter@^2.0.2, conventional-commits-filter@^2.0.7: lodash.ismatch "^4.4.0" modify-values "^1.0.0" -conventional-commits-parser@^3.0.3: +conventional-commits-parser@^3.0.3, conventional-commits-parser@^3.2.0: version "3.2.3" resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.3.tgz#fc43704698239451e3ef35fd1d8ed644f46bd86e" integrity sha512-YyRDR7On9H07ICFpRm/igcdjIqebXbvf4Cff+Pf0BrBys1i1EOzx9iFXNlAbdrLAR8jf7bkUYkDAr8pEy0q4Pw== @@ -5958,6 +6090,11 @@ dargs@^4.0.1: dependencies: number-is-nan "^1.0.0" +dargs@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/dargs/-/dargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" + integrity sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg== + dashdash@^1.12.0: version "1.14.1" resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" @@ -7768,6 +7905,16 @@ get-pkg-repo@^1.0.0: parse-github-repo-url "^1.3.0" through2 "^2.0.0" +get-pkg-repo@^4.0.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz#75973e1c8050c73f48190c52047c4cee3acbf385" + integrity sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA== + dependencies: + "@hutson/parse-repository-url" "^3.0.0" + hosted-git-info "^4.0.0" + through2 "^2.0.0" + yargs "^16.2.0" + get-port@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/get-port/-/get-port-4.2.0.tgz#e37368b1e863b7629c43c5a323625f95cf24b119" @@ -7845,6 +7992,17 @@ git-raw-commits@2.0.0: split2 "^2.0.0" through2 "^2.0.0" +git-raw-commits@^2.0.8: + version "2.0.10" + resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.10.tgz#e2255ed9563b1c9c3ea6bd05806410290297bbc1" + integrity sha512-sHhX5lsbG9SOO6yXdlwgEMQ/ljIn7qMpAbJZCGfXX2fq5T8M5SrDnpYk9/4HswTildcIqatsWa91vty6VhWSaQ== + dependencies: + dargs "^7.0.0" + lodash "^4.17.15" + meow "^8.0.0" + split2 "^3.0.0" + through2 "^4.0.0" + git-remote-origin-url@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz#5282659dae2107145a11126112ad3216ec5fa65f" @@ -7861,6 +8019,14 @@ git-semver-tags@^2.0.3: meow "^4.0.0" semver "^6.0.0" +git-semver-tags@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-4.1.1.tgz#63191bcd809b0ec3e151ba4751c16c444e5b5780" + integrity sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA== + dependencies: + meow "^8.0.0" + semver "^6.0.0" + git-up@^4.0.0: version "4.0.5" resolved "https://registry.yarnpkg.com/git-up/-/git-up-4.0.5.tgz#e7bb70981a37ea2fb8fe049669800a1f9a01d759" @@ -8302,7 +8468,7 @@ hosted-git-info@^2.1.4, hosted-git-info@^2.7.1: resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== -hosted-git-info@^4.0.1: +hosted-git-info@^4.0.0, hosted-git-info@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.0.2.tgz#5e425507eede4fea846b7262f0838456c4209961" integrity sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg== @@ -14639,6 +14805,11 @@ temp-dir@^1.0.0: resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d" integrity sha1-CnwOom06Oa+n4OvqnB/AvE2qAR0= +temp-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e" + integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg== + temp-write@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/temp-write/-/temp-write-3.4.0.tgz#8cff630fb7e9da05f047c74ce4ce4d685457d492" @@ -14651,6 +14822,14 @@ temp-write@^3.4.0: temp-dir "^1.0.0" uuid "^3.0.1" +tempfile@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/tempfile/-/tempfile-3.0.0.tgz#5376a3492de7c54150d0cc0612c3f00e2cdaf76c" + integrity sha512-uNFCg478XovRi85iD42egu+eSFUmmka750Jy7L5tfHI5hQKKtbPnxaSaXAbBqCDYrw3wx4tXjKwci4/QmsZJxw== + dependencies: + temp-dir "^2.0.0" + uuid "^3.3.2" + term-size@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" @@ -16409,7 +16588,7 @@ yargs@^14.2.2: y18n "^4.0.0" yargs-parser "^15.0.1" -yargs@^16.0.0: +yargs@^16.0.0, yargs@^16.2.0: version "16.2.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==