From 739b6d46864b0b303e4a43c598788df95c102a7c Mon Sep 17 00:00:00 2001 From: Jonathan Greenemeier Date: Sat, 18 Sep 2021 19:40:56 -0600 Subject: [PATCH] fix(#128, #126): Updates to project configuration to support usage inside svelte-kit applications (#129) - added svelte property to package.json - updated readme with instructions for svelte-kit users (add optimizeDeps config) - update CI to create prerelease (next dist-tag) on pushes to next branch --- .github/workflows/release.yml | 1 + CHANGELOG.md | 367 ++++++++++++++++------------------ README.md | 18 ++ docs/index.html | 2 +- package-lock.json | 2 +- package.json | 6 +- release.config.cjs | 18 +- 7 files changed, 204 insertions(+), 210 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 293c309..1bce5f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ on: push: branches: - master + - next jobs: release: name: Release diff --git a/CHANGELOG.md b/CHANGELOG.md index 70ba4df..266eb71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,214 +1,243 @@ -## [3.0.19](https://github.com/6eDesign/svelte-calendar/compare/v3.0.18...v3.0.19) (2021-09-18) +## [3.0.27](https://github.com/6eDesign/svelte-calendar/compare/v3.0.26...v3.0.27) (2021-09-19) ### Bug Fixes -* packaging issues ([866ae40](https://github.com/6eDesign/svelte-calendar/commit/866ae402e571547aad6e48f026c782a30a7749a6)) +* remove comment and update readme ([c583b12](https://github.com/6eDesign/svelte-calendar/commit/c583b1271dc30baabdd024ae19204b84e93a5072)) -## [3.0.18](https://github.com/6eDesign/svelte-calendar/compare/v3.0.17...v3.0.18) (2021-09-18) +## [3.0.26](https://github.com/6eDesign/svelte-calendar/compare/v3.0.25...v3.0.26) (2021-09-18) ### Bug Fixes -* move dayjs and just-throttle to dependencies ([6dee7b3](https://github.com/6eDesign/svelte-calendar/commit/6dee7b31ab1ab9bfe306e0015f8d53bf7069473d)) -* update ci nodejs to v14 ([9c7c8e6](https://github.com/6eDesign/svelte-calendar/commit/9c7c8e645edb0749354b57f3bd7b18df9fcb4e0d)) +* attempt to re-add types ([f6356c1](https://github.com/6eDesign/svelte-calendar/commit/f6356c10fe6f416103590102a7dd1d6198456262)) -## [3.0.17](https://github.com/6eDesign/svelte-calendar/compare/v3.0.16...v3.0.17) (2021-09-17) +## [3.0.25](https://github.com/6eDesign/svelte-calendar/compare/v3.0.24...v3.0.25) (2021-09-18) ### Bug Fixes -* remove console.log ([a08ddf3](https://github.com/6eDesign/svelte-calendar/commit/a08ddf334c1fc6a0ed02309b12925a9bb1a97929)) +* remove emitTypes again ([e4c79d1](https://github.com/6eDesign/svelte-calendar/commit/e4c79d1ce585101f2e4a6debfb362797293e5ac7)) -## [3.0.16](https://github.com/6eDesign/svelte-calendar/compare/v3.0.15...v3.0.16) (2021-09-17) +## [3.0.24](https://github.com/6eDesign/svelte-calendar/compare/v3.0.23...v3.0.24) (2021-09-18) ### Bug Fixes -* scrollable action - prevent scrolling on supplied node by disabling touch-action ([089f808](https://github.com/6eDesign/svelte-calendar/commit/089f808b38dd3a8d976a2af7c2a61b67037be01f)) +* attempt to add svelte field to package.json ([36f394e](https://github.com/6eDesign/svelte-calendar/commit/36f394e16d2ff881892c0b29b3004e55676b6a77)) -## [3.0.15](https://github.com/6eDesign/svelte-calendar/compare/v3.0.14...v3.0.15) (2021-09-17) +## [3.0.23](https://github.com/6eDesign/svelte-calendar/compare/v3.0.22...v3.0.23) (2021-09-18) ### Bug Fixes -* handle scrollable action destroy lifecycle + fix touch delta math ([0b07ad3](https://github.com/6eDesign/svelte-calendar/commit/0b07ad3c0a7344fe98f3a29ad38c9cae3cfbf5f2)) +* attempt removing type generation ([be4437f](https://github.com/6eDesign/svelte-calendar/commit/be4437fc749bb1d5e12061728ea45bc81da45440)) -## [3.0.14](https://github.com/6eDesign/svelte-calendar/compare/v3.0.13...v3.0.14) (2021-09-17) +## [3.0.22](https://github.com/6eDesign/svelte-calendar/compare/v3.0.21...v3.0.22) (2021-09-18) ### Bug Fixes -* styling issue ([cf41e95](https://github.com/6eDesign/svelte-calendar/commit/cf41e95553eabc5745e603862139b0667cd792c5)) +* re-add postpackage script ([7702df4](https://github.com/6eDesign/svelte-calendar/commit/7702df4b859bc6080705f629cdcf3cf1ee0f3c0a)) -## [3.0.13](https://github.com/6eDesign/svelte-calendar/compare/v3.0.12...v3.0.13) (2021-09-17) +## [3.0.21](https://github.com/6eDesign/svelte-calendar/compare/v3.0.20...v3.0.21) (2021-09-18) ### Bug Fixes -* release scripts ([7839ccc](https://github.com/6eDesign/svelte-calendar/commit/7839ccce60c2117a2af44b4f0f1f474b70d1eeb2)) -* release scripts ([a3bc1cb](https://github.com/6eDesign/svelte-calendar/commit/a3bc1cbedb2eeb2f96ee5825ccc60018e1427182)) +* attempt removing throttle dep ([d85b620](https://github.com/6eDesign/svelte-calendar/commit/d85b620e84c04adc6adc2806a55faf59e0e17258)) -## [3.0.12](https://github.com/6eDesign/svelte-calendar/compare/v3.0.11...v3.0.12) (2021-09-17) +## [3.0.20](https://github.com/6eDesign/svelte-calendar/compare/v3.0.19...v3.0.20) (2021-09-18) ### Bug Fixes -* postpackage script ([0e5b953](https://github.com/6eDesign/svelte-calendar/commit/0e5b9532a8c5fe5bf8837e2f01ce0045159fe269)) +* release config changes ([d62d9a8](https://github.com/6eDesign/svelte-calendar/commit/d62d9a8c77b4611a4245dd48cf1a17b9bb50057f)) +* update relase config ([fc6b309](https://github.com/6eDesign/svelte-calendar/commit/fc6b309da1cb652124926acb05467a051a911e0d)) +* update release config for prerelease ([98b7514](https://github.com/6eDesign/svelte-calendar/commit/98b7514f47b18eff8e012837c99ae14a674784cd)) -## [3.0.11](https://github.com/6eDesign/svelte-calendar/compare/v3.0.10...v3.0.11) (2021-09-17) +## [3.0.19](https://github.com/6eDesign/svelte-calendar/compare/v3.0.18...v3.0.19) (2021-09-18) + +### Bug Fixes + +- packaging issues ([866ae40](https://github.com/6eDesign/svelte-calendar/commit/866ae402e571547aad6e48f026c782a30a7749a6)) +## [3.0.18](https://github.com/6eDesign/svelte-calendar/compare/v3.0.17...v3.0.18) (2021-09-18) ### Bug Fixes -* update release.config & package.main ([d04fd68](https://github.com/6eDesign/svelte-calendar/commit/d04fd682da1016c8b7033e1cb43542d75dae4833)) +- move dayjs and just-throttle to dependencies ([6dee7b3](https://github.com/6eDesign/svelte-calendar/commit/6dee7b31ab1ab9bfe306e0015f8d53bf7069473d)) +- update ci nodejs to v14 ([9c7c8e6](https://github.com/6eDesign/svelte-calendar/commit/9c7c8e645edb0749354b57f3bd7b18df9fcb4e0d)) -## [3.0.10](https://github.com/6eDesign/svelte-calendar/compare/v3.0.9...v3.0.10) (2021-09-17) +## [3.0.17](https://github.com/6eDesign/svelte-calendar/compare/v3.0.16...v3.0.17) (2021-09-17) +### Bug Fixes + +- remove console.log ([a08ddf3](https://github.com/6eDesign/svelte-calendar/commit/a08ddf334c1fc6a0ed02309b12925a9bb1a97929)) + +## [3.0.16](https://github.com/6eDesign/svelte-calendar/compare/v3.0.15...v3.0.16) (2021-09-17) ### Bug Fixes -* release.config.cjs ([62ce395](https://github.com/6eDesign/svelte-calendar/commit/62ce395371ec1ab49bddeeab884d42f1dfa06396)) +- scrollable action - prevent scrolling on supplied node by disabling touch-action ([089f808](https://github.com/6eDesign/svelte-calendar/commit/089f808b38dd3a8d976a2af7c2a61b67037be01f)) -## [3.0.9](https://github.com/6eDesign/svelte-calendar/compare/v3.0.8...v3.0.9) (2021-09-17) +## [3.0.15](https://github.com/6eDesign/svelte-calendar/compare/v3.0.14...v3.0.15) (2021-09-17) + +### Bug Fixes + +- handle scrollable action destroy lifecycle + fix touch delta math ([0b07ad3](https://github.com/6eDesign/svelte-calendar/commit/0b07ad3c0a7344fe98f3a29ad38c9cae3cfbf5f2)) +## [3.0.14](https://github.com/6eDesign/svelte-calendar/compare/v3.0.13...v3.0.14) (2021-09-17) ### Bug Fixes -* add postversion step for semantic-release ([2e80dfc](https://github.com/6eDesign/svelte-calendar/commit/2e80dfce51a8cc79225e0794e86c4918fdffbc55)) +- styling issue ([cf41e95](https://github.com/6eDesign/svelte-calendar/commit/cf41e95553eabc5745e603862139b0667cd792c5)) -## [3.0.8](https://github.com/6eDesign/svelte-calendar/compare/v3.0.7...v3.0.8) (2021-09-17) +## [3.0.13](https://github.com/6eDesign/svelte-calendar/compare/v3.0.12...v3.0.13) (2021-09-17) + +### Bug Fixes +- release scripts ([7839ccc](https://github.com/6eDesign/svelte-calendar/commit/7839ccce60c2117a2af44b4f0f1f474b70d1eeb2)) +- release scripts ([a3bc1cb](https://github.com/6eDesign/svelte-calendar/commit/a3bc1cbedb2eeb2f96ee5825ccc60018e1427182)) + +## [3.0.12](https://github.com/6eDesign/svelte-calendar/compare/v3.0.11...v3.0.12) (2021-09-17) ### Bug Fixes -* rewrite package.main (index.js) imports in postpackage script ([8374348](https://github.com/6eDesign/svelte-calendar/commit/8374348f4a97aef5dbfe15c4894dd52adaaa975f)) +- postpackage script ([0e5b953](https://github.com/6eDesign/svelte-calendar/commit/0e5b9532a8c5fe5bf8837e2f01ce0045159fe269)) -## [3.0.7](https://github.com/6eDesign/svelte-calendar/compare/v3.0.6...v3.0.7) (2021-09-17) +## [3.0.11](https://github.com/6eDesign/svelte-calendar/compare/v3.0.10...v3.0.11) (2021-09-17) + +### Bug Fixes +- update release.config & package.main ([d04fd68](https://github.com/6eDesign/svelte-calendar/commit/d04fd682da1016c8b7033e1cb43542d75dae4833)) + +## [3.0.10](https://github.com/6eDesign/svelte-calendar/compare/v3.0.9...v3.0.10) (2021-09-17) ### Bug Fixes -* add additional targets to postpackage rewrite script ([83312d6](https://github.com/6eDesign/svelte-calendar/commit/83312d68d7106ab6ef5afc1622152aa5dbe2efee)) +- release.config.cjs ([62ce395](https://github.com/6eDesign/svelte-calendar/commit/62ce395371ec1ab49bddeeab884d42f1dfa06396)) -## [3.0.6](https://github.com/6eDesign/svelte-calendar/compare/v3.0.5...v3.0.6) (2021-09-17) +## [3.0.9](https://github.com/6eDesign/svelte-calendar/compare/v3.0.8...v3.0.9) (2021-09-17) + +### Bug Fixes +- add postversion step for semantic-release ([2e80dfc](https://github.com/6eDesign/svelte-calendar/commit/2e80dfce51a8cc79225e0794e86c4918fdffbc55)) + +## [3.0.8](https://github.com/6eDesign/svelte-calendar/compare/v3.0.7...v3.0.8) (2021-09-17) ### Bug Fixes -* add prepackage step to rewrite imports ([e19de04](https://github.com/6eDesign/svelte-calendar/commit/e19de04aacf8f4a39a2ea8b565fbd4f8556b495b)) +- rewrite package.main (index.js) imports in postpackage script ([8374348](https://github.com/6eDesign/svelte-calendar/commit/8374348f4a97aef5dbfe15c4894dd52adaaa975f)) -## [3.0.5](https://github.com/6eDesign/svelte-calendar/compare/v3.0.4...v3.0.5) (2021-09-16) +## [3.0.7](https://github.com/6eDesign/svelte-calendar/compare/v3.0.6...v3.0.7) (2021-09-17) +### Bug Fixes + +- add additional targets to postpackage rewrite script ([83312d6](https://github.com/6eDesign/svelte-calendar/commit/83312d68d7106ab6ef5afc1622152aa5dbe2efee)) + +## [3.0.6](https://github.com/6eDesign/svelte-calendar/compare/v3.0.5...v3.0.6) (2021-09-17) ### Bug Fixes -* add stopPropagation to touch events ([98f8ac1](https://github.com/6eDesign/svelte-calendar/commit/98f8ac1d1cbe0d29d7566a5107467b283031245e)) +- add prepackage step to rewrite imports ([e19de04](https://github.com/6eDesign/svelte-calendar/commit/e19de04aacf8f4a39a2ea8b565fbd4f8556b495b)) -## [3.0.4](https://github.com/6eDesign/svelte-calendar/compare/v3.0.3...v3.0.4) (2021-09-16) +## [3.0.5](https://github.com/6eDesign/svelte-calendar/compare/v3.0.4...v3.0.5) (2021-09-16) +### Bug Fixes + +- add stopPropagation to touch events ([98f8ac1](https://github.com/6eDesign/svelte-calendar/commit/98f8ac1d1cbe0d29d7566a5107467b283031245e)) + +## [3.0.4](https://github.com/6eDesign/svelte-calendar/compare/v3.0.3...v3.0.4) (2021-09-16) ### Bug Fixes -* remove erroneous setting from svelte.config.js ([38c529e](https://github.com/6eDesign/svelte-calendar/commit/38c529eac8b2d695457b291e1a4f6484ef182c10)) -* update release.config to use sveltekit package command ([acd0752](https://github.com/6eDesign/svelte-calendar/commit/acd0752ffe77ff6ee55852f6f32b81e0478036bb)) +- remove erroneous setting from svelte.config.js ([38c529e](https://github.com/6eDesign/svelte-calendar/commit/38c529eac8b2d695457b291e1a4f6484ef182c10)) +- update release.config to use sveltekit package command ([acd0752](https://github.com/6eDesign/svelte-calendar/commit/acd0752ffe77ff6ee55852f6f32b81e0478036bb)) ## [3.0.3](https://github.com/6eDesign/svelte-calendar/compare/v3.0.2...v3.0.3) (2021-09-16) - ### Bug Fixes -* minor style fixes ([e82b3e5](https://github.com/6eDesign/svelte-calendar/commit/e82b3e5f5d96c76186413f64c607e06c02293464)) +- minor style fixes ([e82b3e5](https://github.com/6eDesign/svelte-calendar/commit/e82b3e5f5d96c76186413f64c607e06c02293464)) ## [3.0.2](https://github.com/6eDesign/svelte-calendar/compare/v3.0.1...v3.0.2) (2021-09-16) - ### Bug Fixes -* doc navigation bar ([0384cf7](https://github.com/6eDesign/svelte-calendar/commit/0384cf781f7623091c0fcc5996346ad7a50308fb)) +- doc navigation bar ([0384cf7](https://github.com/6eDesign/svelte-calendar/commit/0384cf781f7623091c0fcc5996346ad7a50308fb)) ## [3.0.1](https://github.com/6eDesign/svelte-calendar/compare/v3.0.0...v3.0.1) (2021-09-16) - ### Bug Fixes -* .nojekyll for gh-pages ([0cfe8ae](https://github.com/6eDesign/svelte-calendar/commit/0cfe8aea31825b663a1d1e9767580c252027bc49)) +- .nojekyll for gh-pages ([0cfe8ae](https://github.com/6eDesign/svelte-calendar/commit/0cfe8aea31825b663a1d1e9767580c252027bc49)) # [3.0.0](https://github.com/6eDesign/svelte-calendar/compare/v2.0.5...v3.0.0) (2021-09-16) - ### Bug Fixes -* release.config updates ([6b3651e](https://github.com/6eDesign/svelte-calendar/commit/6b3651e2615c0cab906d3ebd4d2f9784b9e6b743)) - +- release.config updates ([6b3651e](https://github.com/6eDesign/svelte-calendar/commit/6b3651e2615c0cab906d3ebd4d2f9784b9e6b743)) ### BREAKING CHANGES -* v3.0.0 release +- v3.0.0 release ## [2.0.5](https://github.com/6eDesign/svelte-calendar/compare/v2.0.4...v2.0.5) (2021-09-16) - ### Bug Fixes -* relase.config.js -> release.config.cjs ([52dce22](https://github.com/6eDesign/svelte-calendar/commit/52dce229cf1e506c676f36f967b05275cfae12ef)) -* update action workflows ([890432f](https://github.com/6eDesign/svelte-calendar/commit/890432f9fd91f4a1a78dcb48a877cae344c3cc30)) +- relase.config.js -> release.config.cjs ([52dce22](https://github.com/6eDesign/svelte-calendar/commit/52dce229cf1e506c676f36f967b05275cfae12ef)) +- update action workflows ([890432f](https://github.com/6eDesign/svelte-calendar/commit/890432f9fd91f4a1a78dcb48a877cae344c3cc30)) ## [2.0.4](https://github.com/6eDesign/svelte-calendar/compare/v2.0.3...v2.0.4) (2020-12-22) - ### Bug Fixes -* gh-pages & snowpack issues ([2e79a69](https://github.com/6eDesign/svelte-calendar/commit/2e79a69a9d308e35fcec2f17c691fa8a81eaccbd)) +- gh-pages & snowpack issues ([2e79a69](https://github.com/6eDesign/svelte-calendar/commit/2e79a69a9d308e35fcec2f17c691fa8a81eaccbd)) ## [2.0.3](https://github.com/6eDesign/svelte-calendar/compare/v2.0.2...v2.0.3) (2020-12-22) - ### Bug Fixes -* gh-pages generation ([a2f3e08](https://github.com/6eDesign/svelte-calendar/commit/a2f3e08af029849fa51875ec91b9caed7b7bc6c3)) +- gh-pages generation ([a2f3e08](https://github.com/6eDesign/svelte-calendar/commit/a2f3e08af029849fa51875ec91b9caed7b7bc6c3)) ## [2.0.2](https://github.com/6eDesign/svelte-calendar/compare/v2.0.1...v2.0.2) (2020-12-22) - ### Bug Fixes -* update gh-pages title ([a736fe0](https://github.com/6eDesign/svelte-calendar/commit/a736fe0d7c91533d225dd2a81bc0365e7c2b5fed)) +- update gh-pages title ([a736fe0](https://github.com/6eDesign/svelte-calendar/commit/a736fe0d7c91533d225dd2a81bc0365e7c2b5fed)) ## [2.0.1](https://github.com/6eDesign/svelte-calendar/compare/v2.0.0...v2.0.1) (2020-12-22) - ### Bug Fixes -* update gh-pages title ([0f2479c](https://github.com/6eDesign/svelte-calendar/commit/0f2479c0b080579d89161e03d8d4cbd625b79d57)) -* update snowpack base url for gh pages ([44a47ab](https://github.com/6eDesign/svelte-calendar/commit/44a47ab2c2aabd6725e76b9daad899b2ca48cb3c)) +- update gh-pages title ([0f2479c](https://github.com/6eDesign/svelte-calendar/commit/0f2479c0b080579d89161e03d8d4cbd625b79d57)) +- update snowpack base url for gh pages ([44a47ab](https://github.com/6eDesign/svelte-calendar/commit/44a47ab2c2aabd6725e76b9daad899b2ca48cb3c)) # [2.0.0](https://github.com/6eDesign/svelte-calendar/compare/v1.5.0...v2.0.0) (2020-12-22) - ### Bug Fixes -* add [@semantic-release](https://github.com/semantic-release) plugins ([f93d866](https://github.com/6eDesign/svelte-calendar/commit/f93d866e5d56c891c9ea7ba6a5bee7fdbfc7a3a7)) - - -* breaking change: add snowpack build process, github actions, and fix for default start/end dates (#103) ([40346a4](https://github.com/6eDesign/svelte-calendar/commit/40346a4b9e7e308d13a36cd7a205bcadabc1fc35)), closes [#103](https://github.com/6eDesign/svelte-calendar/issues/103) +- add [@semantic-release](https://github.com/semantic-release) plugins ([f93d866](https://github.com/6eDesign/svelte-calendar/commit/f93d866e5d56c891c9ea7ba6a5bee7fdbfc7a3a7)) +- breaking change: add snowpack build process, github actions, and fix for default start/end dates (#103) ([40346a4](https://github.com/6eDesign/svelte-calendar/commit/40346a4b9e7e308d13a36cd7a205bcadabc1fc35)), closes [#103](https://github.com/6eDesign/svelte-calendar/issues/103) ### BREAKING CHANGES -* update default start/end dates & new build process +- update default start/end dates & new build process -* feat: CI workflow +- feat: CI workflow -* fix: CI workflow update +- fix: CI workflow update -* fix: remove package-lock from gitignore +- fix: remove package-lock from gitignore -* fix: remove .travis.yml +- fix: remove .travis.yml -* fix: add github pages to release.yml workflow +- fix: add github pages to release.yml workflow -* fix: update readme +- fix: update readme Co-authored-by: Jonathan Greenemeier @@ -217,310 +246,252 @@ Co-authored-by: Jonathan Greenemeier All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. -# [1.5.0](https://github.com/6eDesign/svelte-calendar/compare/v1.4.0...v1.5.0) (2020-03-12) +# [1.5.0](https://github.com/6eDesign/svelte-calendar/compare/v1.4.0...v1.5.0) (2020-03-12) ### Features -* pass formattedSelected to slot ([3149c93](https://github.com/6eDesign/svelte-calendar/commit/3149c93)) - - +- pass formattedSelected to slot ([3149c93](https://github.com/6eDesign/svelte-calendar/commit/3149c93)) -# [1.4.0](https://github.com/6eDesign/svelte-calendar/compare/v1.3.5...v1.4.0) (2020-03-12) +# [1.4.0](https://github.com/6eDesign/svelte-calendar/compare/v1.3.5...v1.4.0) (2020-03-12) ### Features -* pass selected to slot ([3a5bd43](https://github.com/6eDesign/svelte-calendar/commit/3a5bd43)) - - +- pass selected to slot ([3a5bd43](https://github.com/6eDesign/svelte-calendar/commit/3a5bd43)) -## [1.3.5](https://github.com/6eDesign/svelte-calendar/compare/v1.3.4...v1.3.5) (2020-02-14) +## [1.3.5](https://github.com/6eDesign/svelte-calendar/compare/v1.3.4...v1.3.5) (2020-02-14) ### Bug Fixes -* use |local modifier for transitions so that they don't play out on navigation ([#67](https://github.com/6eDesign/svelte-calendar/issues/67)) ([8242299](https://github.com/6eDesign/svelte-calendar/commit/8242299)) - - +- use |local modifier for transitions so that they don't play out on navigation ([#67](https://github.com/6eDesign/svelte-calendar/issues/67)) ([8242299](https://github.com/6eDesign/svelte-calendar/commit/8242299)) -## [1.3.4](https://github.com/6eDesign/svelte-calendar/compare/v1.3.3...v1.3.4) (2020-01-26) - +## [1.3.4](https://github.com/6eDesign/svelte-calendar/compare/v1.3.3...v1.3.4) (2020-01-26) -## [1.3.3](https://github.com/6eDesign/svelte-calendar/compare/v1.3.2...v1.3.3) (2020-01-26) +## [1.3.3](https://github.com/6eDesign/svelte-calendar/compare/v1.3.2...v1.3.3) (2020-01-26) ### Bug Fixes -* linting issue ([4ed23e2](https://github.com/6eDesign/svelte-calendar/commit/4ed23e2)) - - +- linting issue ([4ed23e2](https://github.com/6eDesign/svelte-calendar/commit/4ed23e2)) -## [1.3.2](https://github.com/6eDesign/svelte-calendar/compare/v1.3.1...v1.3.2) (2020-01-26) +## [1.3.2](https://github.com/6eDesign/svelte-calendar/compare/v1.3.1...v1.3.2) (2020-01-26) ### Bug Fixes -* eslint fixes ([d6df6ac](https://github.com/6eDesign/svelte-calendar/commit/d6df6ac)) - - +- eslint fixes ([d6df6ac](https://github.com/6eDesign/svelte-calendar/commit/d6df6ac)) -## [1.3.1](https://github.com/6eDesign/svelte-calendar/compare/v1.3.0...v1.3.1) (2020-01-15) +## [1.3.1](https://github.com/6eDesign/svelte-calendar/compare/v1.3.0...v1.3.1) (2020-01-15) ### Bug Fixes -* ignore line for eslint (error suddenly popped up but only in travis [odd]) ([17c4be1](https://github.com/6eDesign/svelte-calendar/commit/17c4be1)) - - +- ignore line for eslint (error suddenly popped up but only in travis [odd]) ([17c4be1](https://github.com/6eDesign/svelte-calendar/commit/17c4be1)) -# [1.3.0](https://github.com/6eDesign/svelte-calendar/compare/v1.2.2...v1.3.0) (2020-01-15) +# [1.3.0](https://github.com/6eDesign/svelte-calendar/compare/v1.2.2...v1.3.0) (2020-01-15) ### Bug Fixes -* linting violations ([07c868f](https://github.com/6eDesign/svelte-calendar/commit/07c868f)) - +- linting violations ([07c868f](https://github.com/6eDesign/svelte-calendar/commit/07c868f)) ### Features -* allow styling of div which wraps the Datepicker component ([19d4b07](https://github.com/6eDesign/svelte-calendar/commit/19d4b07)) - - +- allow styling of div which wraps the Datepicker component ([19d4b07](https://github.com/6eDesign/svelte-calendar/commit/19d4b07)) -## [1.2.2](https://github.com/6eDesign/svelte-calendar/compare/v1.2.1...v1.2.2) (2019-12-19) +## [1.2.2](https://github.com/6eDesign/svelte-calendar/compare/v1.2.1...v1.2.2) (2019-12-19) ### Bug Fixes -* linting issues ([8816456](https://github.com/6eDesign/svelte-calendar/commit/8816456)) - - +- linting issues ([8816456](https://github.com/6eDesign/svelte-calendar/commit/8816456)) -## [1.2.1](https://github.com/6eDesign/svelte-calendar/compare/v1.2.0...v1.2.1) (2019-11-23) - +## [1.2.1](https://github.com/6eDesign/svelte-calendar/compare/v1.2.0...v1.2.1) (2019-11-23) -# [1.2.0](https://github.com/6eDesign/svelte-calendar/compare/v1.1.0...v1.2.0) (2019-11-15) +# [1.2.0](https://github.com/6eDesign/svelte-calendar/compare/v1.1.0...v1.2.0) (2019-11-15) ### Features -* Internationalization (add daysOfWeek and monthsOfYear props) ([a290701](https://github.com/6eDesign/svelte-calendar/commit/a290701)) -* Internationalization (add daysOfWeek and monthsOfYear props) ([20c6d5a](https://github.com/6eDesign/svelte-calendar/commit/20c6d5a)) - - +- Internationalization (add daysOfWeek and monthsOfYear props) ([a290701](https://github.com/6eDesign/svelte-calendar/commit/a290701)) +- Internationalization (add daysOfWeek and monthsOfYear props) ([20c6d5a](https://github.com/6eDesign/svelte-calendar/commit/20c6d5a)) -# [1.1.0](https://github.com/6eDesign/svelte-calendar/compare/v1.0.11...v1.1.0) (2019-10-19) +# [1.1.0](https://github.com/6eDesign/svelte-calendar/compare/v1.0.11...v1.1.0) (2019-10-19) ### Features -* add basic theming functionality ([ce244db](https://github.com/6eDesign/svelte-calendar/commit/ce244db)) - - +- add basic theming functionality ([ce244db](https://github.com/6eDesign/svelte-calendar/commit/ce244db)) -## [1.0.11](https://github.com/6eDesign/svelte-calendar/compare/v1.0.10...v1.0.11) (2019-10-17) - +## [1.0.11](https://github.com/6eDesign/svelte-calendar/compare/v1.0.10...v1.0.11) (2019-10-17) -## [1.0.10](https://github.com/6eDesign/svelte-calendar/compare/v1.0.9...v1.0.10) (2019-09-30) - +## [1.0.10](https://github.com/6eDesign/svelte-calendar/compare/v1.0.9...v1.0.10) (2019-09-30) -## [1.0.9](https://github.com/6eDesign/svelte-calendar/compare/v1.0.8...v1.0.9) (2019-09-30) +## [1.0.9](https://github.com/6eDesign/svelte-calendar/compare/v1.0.8...v1.0.9) (2019-09-30) ### Bug Fixes -* linting issues ([a24aa7c](https://github.com/6eDesign/svelte-calendar/commit/a24aa7c)) -* Update .popover class to .sc-popover to prevent conflict with bootstrap, fixes issue 41 ([#42](https://github.com/6eDesign/svelte-calendar/issues/42)) ([1ccdb62](https://github.com/6eDesign/svelte-calendar/commit/1ccdb62)) - - +- linting issues ([a24aa7c](https://github.com/6eDesign/svelte-calendar/commit/a24aa7c)) +- Update .popover class to .sc-popover to prevent conflict with bootstrap, fixes issue 41 ([#42](https://github.com/6eDesign/svelte-calendar/issues/42)) ([1ccdb62](https://github.com/6eDesign/svelte-calendar/commit/1ccdb62)) -## [1.0.8](https://github.com/6eDesign/svelte-calendar/compare/v1.0.7...v1.0.8) (2019-08-09) +## [1.0.8](https://github.com/6eDesign/svelte-calendar/compare/v1.0.7...v1.0.8) (2019-08-09) ### Bug Fixes -* Added button type attribute ([#34](https://github.com/6eDesign/svelte-calendar/issues/34)) ([a5475eb](https://github.com/6eDesign/svelte-calendar/commit/a5475eb)) -* update vscode settings ([5a8b9e9](https://github.com/6eDesign/svelte-calendar/commit/5a8b9e9)) - - +- Added button type attribute ([#34](https://github.com/6eDesign/svelte-calendar/issues/34)) ([a5475eb](https://github.com/6eDesign/svelte-calendar/commit/a5475eb)) +- update vscode settings ([5a8b9e9](https://github.com/6eDesign/svelte-calendar/commit/5a8b9e9)) -## [1.0.7](https://github.com/6eDesign/svelte-calendar/compare/v1.0.6...v1.0.7) (2019-08-05) - +## [1.0.7](https://github.com/6eDesign/svelte-calendar/compare/v1.0.6...v1.0.7) (2019-08-05) -## [1.0.6](https://github.com/6eDesign/svelte-calendar/compare/v1.0.5...v1.0.6) (2019-08-05) +## [1.0.6](https://github.com/6eDesign/svelte-calendar/compare/v1.0.5...v1.0.6) (2019-08-05) ### Bug Fixes -* implement eslint ([d8bd8cf](https://github.com/6eDesign/svelte-calendar/commit/d8bd8cf)) - - +- implement eslint ([d8bd8cf](https://github.com/6eDesign/svelte-calendar/commit/d8bd8cf)) -## [1.0.5](https://github.com/6eDesign/svelte-calendar/compare/v1.0.4...v1.0.5) (2019-08-04) +## [1.0.5](https://github.com/6eDesign/svelte-calendar/compare/v1.0.4...v1.0.5) (2019-08-04) ### Bug Fixes -* remove .bind(this) in Popover component which is no longer needed in svelte v3 ([29341ea](https://github.com/6eDesign/svelte-calendar/commit/29341ea)) - - +- remove .bind(this) in Popover component which is no longer needed in svelte v3 ([29341ea](https://github.com/6eDesign/svelte-calendar/commit/29341ea)) -## [1.0.4](https://github.com/6eDesign/svelte-calendar/compare/v1.0.3...v1.0.4) (2019-08-04) +## [1.0.4](https://github.com/6eDesign/svelte-calendar/compare/v1.0.3...v1.0.4) (2019-08-04) ### Bug Fixes -* Fix Popover.svelte bug introduced by svelte 3 migration. Note, this introduces async/await which is not transpiled by buble. Also, code style modifications. ([aa03bbd](https://github.com/6eDesign/svelte-calendar/commit/aa03bbd)) - - +- Fix Popover.svelte bug introduced by svelte 3 migration. Note, this introduces async/await which is not transpiled by buble. Also, code style modifications. ([aa03bbd](https://github.com/6eDesign/svelte-calendar/commit/aa03bbd)) -## [1.0.3](https://github.com/6eDesign/svelte-calendar/compare/v1.0.2...v1.0.3) (2019-07-15) +## [1.0.3](https://github.com/6eDesign/svelte-calendar/compare/v1.0.2...v1.0.3) (2019-07-15) ### Bug Fixes -* update version of timeutils ([a39c5d2](https://github.com/6eDesign/svelte-calendar/commit/a39c5d2)) - - +- update version of timeutils ([a39c5d2](https://github.com/6eDesign/svelte-calendar/commit/a39c5d2)) -## [1.0.2](https://github.com/6eDesign/svelte-calendar/compare/v1.0.1...v1.0.2) (2019-07-10) - +## [1.0.2](https://github.com/6eDesign/svelte-calendar/compare/v1.0.1...v1.0.2) (2019-07-10) -## [1.0.1](https://github.com/6eDesign/svelte-calendar/compare/v0.4.2...v1.0.1) (2019-07-10) - +## [1.0.1](https://github.com/6eDesign/svelte-calendar/compare/v0.4.2...v1.0.1) (2019-07-10) -## [0.4.2](https://github.com/6eDesign/svelte-calendar/compare/v0.4.1...v0.4.2) (2019-07-10) - +## [0.4.2](https://github.com/6eDesign/svelte-calendar/compare/v0.4.1...v0.4.2) (2019-07-10) -## [0.4.1](https://github.com/6eDesign/svelte-calendar/compare/v0.4.0...v0.4.1) (2019-07-10) - +## [0.4.1](https://github.com/6eDesign/svelte-calendar/compare/v0.4.0...v0.4.1) (2019-07-10) -# [0.4.0](https://github.com/6eDesign/svelte-calendar/compare/v0.3.0...v0.4.0) (2019-02-19) +# [0.4.0](https://github.com/6eDesign/svelte-calendar/compare/v0.3.0...v0.4.0) (2019-02-19) ### Features -* lighter color/opacity for disabled days ([d139457](https://github.com/6eDesign/svelte-calendar/commit/d139457)) - - +- lighter color/opacity for disabled days ([d139457](https://github.com/6eDesign/svelte-calendar/commit/d139457)) -# [0.3.0](https://github.com/6eDesign/svelte-calendar/compare/v0.2.10...v0.3.0) (2019-02-19) +# [0.3.0](https://github.com/6eDesign/svelte-calendar/compare/v0.2.10...v0.3.0) (2019-02-19) ### Features -* emit dateSelected event from , [beyonk-adventures:feature/onchange-event] ([c11fc69](https://github.com/6eDesign/svelte-calendar/commit/c11fc69)) -* Merge pull request [#16](https://github.com/6eDesign/svelte-calendar/issues/16) from beyonk-adventures/feature/console-warnings ([6ba44f5](https://github.com/6eDesign/svelte-calendar/commit/6ba44f5)) - - +- emit dateSelected event from , [beyonk-adventures:feature/onchange-event] ([c11fc69](https://github.com/6eDesign/svelte-calendar/commit/c11fc69)) +- Merge pull request [#16](https://github.com/6eDesign/svelte-calendar/issues/16) from beyonk-adventures/feature/console-warnings ([6ba44f5](https://github.com/6eDesign/svelte-calendar/commit/6ba44f5)) -## [0.2.10](https://github.com/6eDesign/svelte-calendar/compare/v0.2.9...v0.2.10) (2019-02-07) - +## [0.2.10](https://github.com/6eDesign/svelte-calendar/compare/v0.2.9...v0.2.10) (2019-02-07) -## [0.2.9](https://github.com/6eDesign/svelte-calendar/compare/v0.2.8...v0.2.9) (2019-02-07) - +## [0.2.9](https://github.com/6eDesign/svelte-calendar/compare/v0.2.8...v0.2.9) (2019-02-07) -## [0.2.8](https://github.com/6eDesign/svelte-calendar/compare/v0.2.7...v0.2.8) (2019-02-06) - +## [0.2.8](https://github.com/6eDesign/svelte-calendar/compare/v0.2.7...v0.2.8) (2019-02-06) -## [0.2.7](https://github.com/6eDesign/svelte-calendar/compare/v0.2.6...v0.2.7) (2019-02-05) - +## [0.2.7](https://github.com/6eDesign/svelte-calendar/compare/v0.2.6...v0.2.7) (2019-02-05) -## [0.2.6](https://github.com/6eDesign/svelte-calendar/compare/v0.2.5...v0.2.6) (2019-02-01) - +## [0.2.6](https://github.com/6eDesign/svelte-calendar/compare/v0.2.5...v0.2.6) (2019-02-01) -## [0.2.5](https://github.com/6eDesign/svelte-calendar/compare/v0.2.4...v0.2.5) (2019-02-01) - +## [0.2.5](https://github.com/6eDesign/svelte-calendar/compare/v0.2.4...v0.2.5) (2019-02-01) -## [0.2.4](https://github.com/6eDesign/svelte-calendar/compare/v0.2.3...v0.2.4) (2019-01-29) - +## [0.2.4](https://github.com/6eDesign/svelte-calendar/compare/v0.2.3...v0.2.4) (2019-01-29) -## [0.2.3](https://github.com/6eDesign/svelte-calendar/compare/v0.2.2...v0.2.3) (2019-01-29) - +## [0.2.3](https://github.com/6eDesign/svelte-calendar/compare/v0.2.2...v0.2.3) (2019-01-29) -## [0.2.2](https://github.com/6eDesign/svelte-calendar/compare/v0.2.1...v0.2.2) (2019-01-29) - +## [0.2.2](https://github.com/6eDesign/svelte-calendar/compare/v0.2.1...v0.2.2) (2019-01-29) -## [0.2.1](https://github.com/6eDesign/svelte-calendar/compare/v0.1.1...v0.2.1) (2019-01-29) - +## [0.2.1](https://github.com/6eDesign/svelte-calendar/compare/v0.1.1...v0.2.1) (2019-01-29) -## [0.1.1](https://github.com/6eDesign/svelte-calendar/compare/v0.1.0...v0.1.1) (2019-01-21) - +## [0.1.1](https://github.com/6eDesign/svelte-calendar/compare/v0.1.0...v0.1.1) (2019-01-21) -# 0.1.0 (2019-01-21) +# 0.1.0 (2019-01-21) ### Bug Fixes -* Add styling to indicate which dates are selectable. Prevent out-of-range months from being selected in month-picker and add appropriate styling. ([e61b6b2](https://github.com/6eDesign/svelte-calendar/commit/e61b6b2)) -* Fix for popover positioning when parent changes dimensions ([ffaf6f4](https://github.com/6eDesign/svelte-calendar/commit/ffaf6f4)) -* light gh-pages work ([5bb9739](https://github.com/6eDesign/svelte-calendar/commit/5bb9739)) -* push minified bundle ([a593a2c](https://github.com/6eDesign/svelte-calendar/commit/a593a2c)) -* Setup test page/bundle for non-svelte usage ([cf44ceb](https://github.com/6eDesign/svelte-calendar/commit/cf44ceb)) -* styles ([503b8e1](https://github.com/6eDesign/svelte-calendar/commit/503b8e1)) -* styles ([73e7d59](https://github.com/6eDesign/svelte-calendar/commit/73e7d59)) -* use default cursor instead of not-allowed for disabled days ([3d42536](https://github.com/6eDesign/svelte-calendar/commit/3d42536)) - +- Add styling to indicate which dates are selectable. Prevent out-of-range months from being selected in month-picker and add appropriate styling. ([e61b6b2](https://github.com/6eDesign/svelte-calendar/commit/e61b6b2)) +- Fix for popover positioning when parent changes dimensions ([ffaf6f4](https://github.com/6eDesign/svelte-calendar/commit/ffaf6f4)) +- light gh-pages work ([5bb9739](https://github.com/6eDesign/svelte-calendar/commit/5bb9739)) +- push minified bundle ([a593a2c](https://github.com/6eDesign/svelte-calendar/commit/a593a2c)) +- Setup test page/bundle for non-svelte usage ([cf44ceb](https://github.com/6eDesign/svelte-calendar/commit/cf44ceb)) +- styles ([503b8e1](https://github.com/6eDesign/svelte-calendar/commit/503b8e1)) +- styles ([73e7d59](https://github.com/6eDesign/svelte-calendar/commit/73e7d59)) +- use default cursor instead of not-allowed for disabled days ([3d42536](https://github.com/6eDesign/svelte-calendar/commit/3d42536)) ### Features -* remove pseudo element ([b3078ab](https://github.com/6eDesign/svelte-calendar/commit/b3078ab)) +- remove pseudo element ([b3078ab](https://github.com/6eDesign/svelte-calendar/commit/b3078ab)) diff --git a/README.md b/README.md index 5c1d1e7..333981f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,24 @@ A small date picker built with Svelte 3. Demo available here: [view docs and exa npm i -D svelte-calendar ``` +## Usage within svelte-kit project + +When using this component within a svelte-kit application it is necessary to add its two dependencies (`just-throttle` and `dayjs`) to the `config.kit.vite.optimizeDeps.include` array in `svelte.config.js`. Eg: your config should include the following: + +```js +const config = { + kit: { + vite: { + optimizeDeps: { + include: ['just-throttle', 'dayjs'] + } + } + } +}; + +export default config; +``` + ## Features - Day, Month & Year pickers diff --git a/docs/index.html b/docs/index.html index 39ffe4b..1c9a6c1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -77,7 +77,7 @@

svelte-calendar

- 09/18/2021
+ 09/19/2021
diff --git a/package-lock.json b/package-lock.json index d2cebfb..cff29d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "svelte-calendar", - "version": "3.0.19", + "version": "3.0.27", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8753e6b..578eb07 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "svelte-calendar", - "version": "3.0.19", + "version": "3.0.27", "main": "index.js", "scripts": { "dev": "svelte-kit dev", "package": "svelte-kit package", + "postpackage": "node scripts/postpackage", "prebuild": "rm -rf build", "build": "svelte-kit build", "postbuild": "touch docs/.nojekyll", @@ -37,5 +38,6 @@ "svelte2tsx": "^0.4.6", "typescript": "^4.4.3" }, - "type": "module" + "type": "module", + "svelte": "index.js" } diff --git a/release.config.cjs b/release.config.cjs index c0c85ef..ef1aea5 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -1,11 +1,5 @@ -const npm = [ - '@semantic-release/npm', - { - pkgRoot: 'package' - } -]; module.exports = { - branches: ['master'], + branches: [{ name: 'master' }, { name: 'next', channel: 'next' }], verifyConditions: [ '@semantic-release/changelog', '@semantic-release/npm', @@ -20,5 +14,13 @@ module.exports = { message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}' } ], - publish: [npm, '@semantic-release/github'] + publish: [ + [ + '@semantic-release/npm', + { + pkgRoot: 'package' + } + ], + '@semantic-release/github' + ] };