From ffb21595c627cc09a1037cd595d6c06c17bcead8 Mon Sep 17 00:00:00 2001 From: Maja Date: Wed, 4 Oct 2023 13:55:51 +0200 Subject: [PATCH] feat(hoa): auto-generate changelog on update libs versions --- CHANGELOG.md | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 4 ++- pnpm-lock.yaml | 20 +++++++++-- 3 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a82cca9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,90 @@ +#### 16.0.0 (2023-10-04) + +##### Build System / Dependencies + +* **commit-lint:** fix building commit-lint (c5134cfd) +* preinstall script for forbidding usage different package manage (d8810523) +* update angular to 16 (8104bd82) + +##### Chores + +* **release:** + * 16.0.0 (a4bf8748) + * 15.0.1 (ae9150b6) + * 15.0.0 (f990be2c) +* **typed-urls:** + * add repo information to project file (16de03b5) + * include readme and license file in built libraries (d1adf994) + +##### Documentation Changes + +* add information about (2f9d4964) +* add versions with links in readme (d4a1a075) +* create readme files (7ab3fa02) +* **validation-messages:** + * remove typo (0486d0f1) + * update readme (f3fa2610) + +##### New Features + +* **ng-forms:** allow to use plain string value for patter error message (fc120e26) +* add possibility to update package in publish packages workflow (d1732a19) +* add github action for publishing to npm (22154d56) +* create example application for typed urls (7583a278) +* add script for publishing latest, built packages (ee7987e0) +* **validation-messages:** + * update example app (f16351f4) + * add support for specifying validation messages locally (7072219c) + * read from control from host component (1fb418ec) + * add ApiErrorMessages type and ad matInputControl getters (38bc702c) + * add support for controlName input (8e42d761) + * support multiple interpolate parameters (e2954419) + * angular material config (9c015d94) + * example app config (3603f156) + * validation messages lib migration (b2b51134) +* **packages:** + * resolve peer dependencies conflicts (abb14cc0) + * ci setup (c0dc830b) +* **validation-message:** onpush change detection strategy (26f7faf5) +* **commit-lint:** create commit lint lib and move from "dev" repository (ddff8d85) +* **typed-urls:** typed-urls migration (d938a953) +* **linking-tool:** linking-tool migration & validation-messages lib config (45703d23) +* **config:** + * standard version (14c11554) + * hasky commit lint (5e5196a2) + +##### Bug Fixes + +* **commit-lint:** make control container optional (f1f60e14) +* fix types of form (269e7ac0) +* fix publish packages.yml misspell (37bd0e26) +* fix import and publish command (1702d037) +* **validation-messages:** + * add optional decorator to MatFormField dependency (58b27f46) + * update control input type to AbstractControl (53c032ac) + * export utils from library, add merge config messages util to index.ts (4670f1a9) + * mark component for check after updating the messages (510645bb) + * remove white space between error and input caused by block elements (8cdec93e) + * execute cdr#markForCheck on valueChanges (cbdc42e4) +* **typed-urls:** Fix bug where passing urls with multiple params resulted in Record type (3fce4c8a) + +##### Other Changes + +* add script for updating packages' versions (9ea38e0e) + +##### Refactors + +* **validation-messages:** + * refactor code using signals (11ed7215) + * implement review suggestions in validation-messages.component.ts (22479005) + * rename validationMessages input to errorMessages (8adc7f1d) +* change npm to pnpm commands in publish packages action (5cc611ed) + +##### Code Style Changes + +* **validation-messages:** format code with prettier, remove commented code related to memoization (7506d49c) + +##### Tests + +* **validation-messages:** fix validation-messages unit test (a10cabdf) + diff --git a/package.json b/package.json index 4ef0a06..1467c84 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "release:major": "standard-version --release-as=\"major\"", "release:minor": "standard-version --release-as=\"minor\"", "publish:latest": "ts-node ./build/publish-latest.ts", - "update:versions": "ts-node ./build/update-version-numbers.ts" + "generate-changelog": "changelog generate", + "update:versions": "ts-node ./build/update-version-numbers.ts && npm run generate-changelog" }, "private": true, "dependencies": { @@ -32,6 +33,7 @@ "@commitlint/types": "^17.4.4", "chalk": "^4.1.2", "commander": "^10.0.1", + "generate-changelog": "^1.8.0", "glob": "^8.1.0", "json5": "^2.2.3", "lodash-decorators": "^6.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6bbc2d3..1f73ad9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ importers: commander: specifier: ^10.0.1 version: 10.0.1 + generate-changelog: + specifier: ^1.8.0 + version: 1.8.0 glob: specifier: ^8.1.0 version: 8.1.0 @@ -7298,7 +7301,6 @@ packages: /bluebird@3.7.2: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} - dev: true /body-parser@1.20.1: resolution: {integrity: sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==} @@ -7731,7 +7733,6 @@ packages: /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - dev: true /commander@5.1.0: resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==} @@ -9716,6 +9717,15 @@ packages: wide-align: 1.1.5 dev: true + /generate-changelog@1.8.0: + resolution: {integrity: sha512-msgpxeB75Ziyg3wGsZuPNl7c5RxChMKmYcAX5obnhUow90dBZW3nLic6nxGtst7Bpx453oS6zAIHcX7F3QVasw==} + hasBin: true + dependencies: + bluebird: 3.7.2 + commander: 2.20.3 + github-url-from-git: 1.5.0 + dev: false + /gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} @@ -9817,6 +9827,10 @@ packages: ini: 1.3.8 dev: false + /github-url-from-git@1.5.0: + resolution: {integrity: sha512-WWOec4aRI7YAykQ9+BHmzjyNlkfJFG8QLXnDTsLz/kZefq7qkzdfo4p6fkYYMIq1aj+gZcQs/1HQhQh3DPPxlQ==} + dev: false + /glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -12807,6 +12821,7 @@ packages: /pify@4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} engines: {node: '>=6'} + requiresBuild: true dev: true optional: true @@ -13711,6 +13726,7 @@ packages: /prr@1.0.1: resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} + requiresBuild: true dev: true optional: true