Skip to content

Latest commit

 

History

History
901 lines (579 loc) · 56.4 KB

CHANGELOG.md

File metadata and controls

901 lines (579 loc) · 56.4 KB

2.6.0 (2024-04-10)

Dependencies

  • Update bugfix versions of dependencies (6e58251)

Documentation

  • Extend README to contain cookieTable example configuration (a416a4a)
  • Minor readme clarifications (0ebb3ec)
  • Update another link to orestbida library documentation to point to its branch v2.9 (452d7ae)
  • Update links to orestbida library documentation to point to its branch v2.9 (17084ae)

Features

  • Add ability to set cookie table (b7b2b4d)
  • Add Bosnian (bs) language (096b6bd)
  • Add Estonian (et) translation (06eba57)
  • Add Latvian (lv) translation (e389ed6)
  • Add Lithuanian (lt) translation (112b232)
  • Add Macedonian (mk) translation (b3c8990)
  • Export all types of vanilla cookie consent (7bb36d2)

Chores

  • DRY when importing language configs (a49d8f9)
  • Extract language loading to separate function (6e6e21c)
  • Optimize imports (25a636e)
  • Refactor block assembly (6bd7ac4)

Styles

  • Always define types before use and do not warn for unused vars in exported types (05d7ce6)
  • Fix enum definition which breaks eslint (8842da9), closes #issuecomment-1599432772
  • Fix errors detected by @lmc-eu/eslint-config-typescript rules (cb4da09)
  • Fix various eslint warnings and errors (0082e41)
  • Optimize imports and minor codestyle improvements (b467d03)
  • Replace concatenation with string templates (27a87ed)
  • Use object property shorthand (c3de7fd)

2.5.0 (2024-01-11)

Documentation

  • Rebrand to Alma Career also in documentation and meta information (a9f9a1c)

Features

  • Add Croatian (hr) translation (2ee50f3)
  • Add Slovenian (sl) translation (aee08f7)
  • Extend types to allow cookie tables settings (33313ac)
  • Update translations and unify Cookie policy document naming (0ef63d0)

Chores

  • deps: Update dependency @lmc-eu/spirit-design-tokens to v1 (8ab4715)
  • Fix ts-jest config deprecations (135288d)

2.4.1 (2023-12-27)

Documentation

  • Add notice about necessity to implement cookie deletion by each product itself (45feb44)

Features

  • Replace LMC company name with Alma Career (9c2788a)
  • Update hu translation (2ede16e)
  • Update links to privacy policy (88b634e)

Chores

  • Upgrade @lmc-eu/eslint-config-base to 3.0.1 (0d6de3b)
  • deps-dev: Bump postcss from 8.4.19 to 8.4.31 (1fdc8c9)
  • deps: Bump @babel/traverse from 7.16.0 to 7.23.2 (059ee92)
  • deps: Bump semver from 5.7.1 to 5.7.2 (0189bab)
  • deps: Bump word-wrap from 1.2.3 to 1.2.5 (5a94e5f)
  • deps: Update to Jest 29 (5acdade)
  • Try to build this package also on Node.js v20 (706ab9a)

2.4.0 (2023-06-13)

Bug Fixes

  • Fix imports not being properly recognized by IDEs (18bfb83)

Features

  • Make part of settings modal text overridable (7eccc48)

Chores

  • Remove @adamkudrna and @crispeen from codeowners (7f8b9bc)

2.3.3 (2023-05-22)

Bug Fixes

  • Cannot use 'in' operator to search for 'uid' in undefined (1deb32e)

Chores

  • deps: Bump json5 from 1.0.1 to 1.0.2 (2548df7)
  • Disable update of stylelint-config (eeaa415)

2.3.2 (2022-12-22)

Bug Fixes

  • Update button design tokens according to the latest design (e23431a)

Chores

  • Improve file name of the CSS theme map (ed30742)

2.3.1 (2022-12-15)

Bug Fixes

  • Change design token linked to button typography (ca8a2ab)

Dependencies

  • Update Can-I-Use DB used by Browserslist (ad07300)

2.3.0 (2022-12-08)

Bug Fixes

  • Fix typo in Slovak translation (6d52c18)

Dependencies

Documentation

  • Fix typo in changelog message (eca903b)
  • Remove integrity attributes because of integrity fails (19fce10)

Features

  • Replace LMC company name with new and translated legal name #CCM-65 (ca8f15c)

Chores

  • Add missing peer dependencies (b4ddc72)
  • Fix typo in semver range (refs #260) (4aacfd9)
  • Freeze vanilla-cookieconsent to 2.8.0 or allow major release (2388b8a)
  • Set target branch for additional updates (258723f)
  • Test build on multiple node versions (80782a2)
  • Update nanoid package to v3 branch only (d13a836)

Styles

  • Simplify constants imports (0c8f45e)

Tests

  • Fix haste module collision on local machine by ignoring (70d42c8)

2.2.1 (2022-06-29)

Bug Fixes

  • Add missing SecondaryButtonMode export (e2d5f6b)

Dependencies

Tests

  • Add SecondaryButtonMode to typescript example (5c517f2)

2.2.0 (2022-04-28)

Bug Fixes

  • Prevent content from being unreachable on short viewports (3a843e7)

Dependencies

Documentation

  • Improve text flow in table (3728df7)

Features

  • Add secondaryButtonMode to choose secondary button behavior #CCM-64 (e480b2d)

Styles

  • Conform to updated stylelint rules (15e3fef)
  • Decapitalize '{object}' as per eslint recommendation (bf49a10)
  • Remap tokens (f350cf6)

2.1.2 (2022-03-23)

Bug Fixes

  • Do not export const enums when using isolatedModules (6992c94)

Chores

  • Introduce action for test builds (b5bd866)

Dependencies

  • Update all dev dependencies (c85c75f)
  • Update all dev dependencies (fea704e)

Documentation

  • Using this library as typescript module (02cdd2c)

Styles

  • Switch from currentcolor to currentColor (72dd624)

2.1.1 (2022-03-08)

Bug Fixes

  • Make all properties of TranslationOverride type optional (2bb8bdd)

Dependencies

  • Update all dev dependencies (14c942f)

2.1.0 (2022-03-07)

Bug Fixes

  • Disconnect settings modal close button from button styles (71d2463)
  • Export enums as const for correct transpile into usable object (24d394a)
  • Export missing types in main module (7c27935)
  • Incompatible type definition of languages (8fabfb3)
  • Provide type for vanilla cookie consent options (67d78ba)

Code Refactoring

  • Unify access to language variables (4f28840)

Dependencies

Documentation

  • upgrade: Fix typo (7b645c2)
  • Use consent configuration in examples (52ae52b)

Features

  • Allow overriding consent description intro #CCM-63 (1f6c31a)
  • Allow overriding default translation for consent modal title #CCM-62 (32cd2ec)
  • Force content to spread over the whole row (90161f0)
  • Link background color of disabled Toggle to corresponding design token (841b320)
  • Split consent description in two paragraphs #CCM-63 (ae2575f)

2.0.0 (2022-02-11)

See upgrade guide for upgrade guidance to version 2.0.

BREAKING CHANGES

Dependencies

Documentation

  • Add button to open cookie settings modal #CCM-57 (8acb0cd)
  • Add new onFirstAction and onChange callbacks #CCM-48 (fb6590e)
  • Update examples with new callbacks #CCM-48 (b38c59e)
  • Adjust changelog lists formatting to new LMC preset (5c69666)
  • Avoid inconsistent states in language selection example (532fcd8)
  • Clearly state the plugin is mainly for LMC products (885c04e)
  • Extend configuration example page to showcase onChange event (e2ba3c1)
  • Extend readme to reflect changes in version 2.0 (ec6329b)
  • List allowed categories on callbacks example page (a417b8d)
  • Organise CSS custom properties table (98eed8e)
  • Prefer DOMContentLoaded over load event to render cookie consent modal earlier (edbd9bc)
  • Remove yarn.lock from examples (f5cf132)
  • Rework callback examples #CCM-57 (e2a1347)
  • Simplify changing of component language by using updateLanguage() method (0acb434)
  • upgrade:
  • Use version aliases for external resources to keep them up-to-date (75d1194)

Features

  • Add Czech translations for settings modal #CCM-54 (3560405)
  • Add displayMode (default force) to choose between blocking pop-up and banner #CCM-61 (6fdca25)
  • Add settings modal translations for all remaining languages #CCM-55 (3e67294)
  • Add temporary placeholder for other translations of settings modal (bf99467)
  • Make contents of <strong> actually appear strong (e9a6759)
  • Simplify translations and make settings link strong #CCM-60 (78cd4c7)
  • Submit consent to API also on settings change #CCM-59 (ffe4963)
  • Submit consent to API and dataLayer also on settings change #CCM-59 (1daca26)
  • Tweak box mode of consent modal according to graphic design #CCM-47 (18adcf3)
  • Update czech translation #CCM-54 (8e7e2b3)

Chores

  • Configure package url for bug tracker (5c03f7d)
  • Do not exclude stylelint from automated updates anymore (dd53241)
  • stylelint:
    • Conform to updated stylelint rules (df8be8d)
    • Use the latest shared Stylelint config to resolve compatibility with Stylelint 14 (ab0080a)
  • Watch and build SCSS during development (340fd91)

1.3.0 (2022-01-05)

Bug Fixes

  • Fix spacing too big after core library upgrade (7f7fd5d)

Dependencies

  • Update all dev dependencies (612ddd9)
  • Update dependency vanilla-cookieconsent to 2.7.2 (10920c4)

Documentation

  • Add cookie_necessary_only_expiration to configuration example (68230d6)

Features

  • Set shorter cookie expiration when only necessary category accepted #CCM-53 (929d8f3)

Chores

  • commitlint: Remove ignore sections cause it is not used (b421b19)
  • Define codeowners using company e-mail rather than nickname (9f5c973)
  • changelog: Add missing dependency on @lmc-eu/conventional-changelog-lmc-github (90cadbb)
  • changelog: Switch from bitbucket preset to Github preset (6bf904a)
  • Rename commitlint config to be dot notated (c9aadcb)

1.2.1 (2021-12-21)

Bug Fixes

  • Add missing cookie_name type in vanilla-cookieconsent declaration (81396b3)

Documentation

  • Fix links to previous version in changelog (783a997)

1.2.0 (2021-12-21)

Code Refactoring

  • Enable new swap_buttons feature to proper button order by default #CCM-51 (cf2d3c4)
  • Use new getUserPreferences to retrieve actual user preferences #CCM-51 (d873a22)
  • Use new onFirstAction and simplify conditions #CCM-51 (96958d5)

Dependencies

Documentation

  • Add example to show all supported languages (d142f3b)
  • Fix stylelint violation in examples (b547900)

Features

1.1.2 (2021-12-19)

Bug Fixes

  • types: Make options to be optional (73af5a3)

Chores

  • Improve jest tests performance (a994b3c)

1.1.1 (2021-12-16)

Bug Fixes

  • Apply link text decoration also for secondary button (de5d7f8)

1.1.0 (2021-12-16)

Chores

  • Add script for code coverage by tests (86220c8)
  • typescript: Remove unused babel because we use tyescript #CCM-40 (45b9e6c)
  • typescript: Run type check on ci pipeline #CCM-40 (652d367)

Code Refactoring

  • languages: Introduce types for language configuration (4b20feb)
  • typescript: Introduce support for Typescript language #CCM-40 (3b34deb)
  • typescript: Migrate all source files to Typescript (c74e5a8)
  • typescript: Separate types for cookie consent manager (cf0e933)
  • Use category instead of level in type names (d348f59)

Dependencies

  • Pin dependencies (5bd9f67)
  • Update dependency @lmc-eu/spirit-design-tokens to ^0.5.0 (1778c57)
  • Upgrade @lmc-eu/esling-config-base to 1.1.0 (9e3a217)

Features

  • Add more theming options for links and buttons (--lmcccm-link-text-decoration, --lmcccm-link-hover-text-decoration, --lmcccm-btn-text-transform) (8ee958b)
  • Attempt to overlap UI of other third-party plugins (693fe02)

Styles

  • Use additional insights of eslint's base config as recommended (2bd3398)

Tests

  • Fix module naming collision by ignoring ./dist directory (a933611)

1.0.2 (2021-12-14)

Chores

  • Annotate the CommonJS export names for ESM import in Node (09aa8e6)
  • Do not lint build.js in examples (e5e171b)
  • Label bugfix pull requests with "bug" label (6f10f31)
  • renovate: Schedule dependency updates on weekly basis (b08c018)

Dependencies

  • Update all dev dependencies (ba55e29)
  • Update all dev dependencies (4a23611)
  • Update dependency stylelint-order to v5 (65db9eb)

Documentation

  • Change text color of success state to improve its contrast with background (b444af2)
  • Fix links and formatting in readme (41209fa)
  • lighthouse: Fix errors reported by Google Lighthouse in examples (90905fb)
  • Make it clear one need to take care of already existing cookies (82f2f9a)

1.0.1 (2021-12-06)

Chores

  • Note: Version bump for npm publish. No code change. (422614d)

1.0.0 (2021-12-06)

Bug Fixes

  • Tell bundlers not to bundle crypto dependency (22ee445)

Chores

  • Add label for Renovate bot (f59f11f)
  • Add renovate.json to configure automated deps updates (adf893f)
  • Disable dependabot because of doing lot of noise (71ddd3d)
  • Prepare for stable release (a215c45)
  • renovate: Set separateMajorMinor to false for devDependencies (6020fe2)

Code Refactoring

  • Move browser example into browser directory (f6893ee)

Dependencies

Documentation

  • Add readmes with basic instructions for examples (03a8e3c)
  • Extend examples for inline <script> usage (287c69d)
  • Introduce example for CommonJS require (8a30904)
  • Introduce module example using webpack (9e3876d)
  • Link CJS and ESM examples to readme (0c2f377)
  • Rename example directories for better orientation (51913bc)
  • Spiritify Bootstrap in examples (e6aeae2)

0.8.2 (2021-12-02)

Bug Fixes

  • Actually push to dataLayer only of first accept #CCM-46 (507ae60)
  • Use proper level name stored to dataLayer (b133746)

0.8.1 (2021-12-02)

Bug Fixes

  • Add missing 'ads' level to dataLayer (ec6ed5b)

Dependencies

  • Bump babel-jest from 27.4.1 to 27.4.2 (e3c499d)
  • Bump jest from 27.4.1 to 27.4.2 (832f4ce)
  • Bump jest from 27.4.2 to 27.4.3 (5320995)
  • Bump postcss from 8.4.1 to 8.4.4 (3211c80)
  • Bump sass from 1.43.5 to 1.44.0 (078daa9)

0.8.0 (2021-12-01)

BREAKING CHANGES

  • Remove unwanted theming options for secondary buttons (f36d299)
    • Remove: --lmcccm-base-font-size, --lmcccm-btn-secondary-bg, --lmcccm-btn-secondary-hover-bg, --lmcccm-btn-secondary-active-bg
  • Update buttons theming API according to the latest design (ba39ed9)
    • Remove: --lmcccm-btn-secondary-text, --lmcccm-btn-secondary-hover-text, --lmcccm-btn-secondary-active-text
    • Add: --lmcccm-btn-font-weight
    • Change Inter font URL to include width 600

Bug Fixes

  • Revert font family inheritance as it blocked font customization (efe992e)

Chores

  • Add ignored internal URL to link check config (32c3755)
  • Merge linting into test workflow (c99e621)

Dependencies

  • Bump babel-jest from 27.3.1 to 27.4.1 (ce100ad)
  • Bump esbuild from 0.13.15 to 0.14.1 (3d9fa63)
  • Bump eslint from 8.2.0 to 8.3.0 (b2d83ae)
  • Bump jest from 27.3.1 to 27.4.1 (c4791d8)
  • Update Spirit Design Tokens (7687df7)

Documentation

  • Add custom theme demo to examples #CCM-21 (f0855ed)
  • Add description of extended configuration example (fd7e8ba)
  • Add table of contents to readme (e6cdca6)
  • Fix link to vanilla cookieconsent readme (2df83d3)
  • Grammar fixes (b6ecb31)
  • Improve docs design (92abca3)
  • Improve formatting (4d8962d)
  • Make clear that Inter font link is mandatory unless font family is customized (ea7837b)
  • Use switches instead of buttons to demonstrate theming (a008edc)

Features

  • Add theming options to adjust button borders (d1f38cc)
    • Add --lmcccm-btn-border-width, --lmcccm-btn-border-style, --lmcccm-btn-border-radius, --lmcccm-btn-primary-border, --lmcccm-btn-primary-hover-border, --lmcccm-btn-primary-active-border
  • Let base font size be inherited from surrounding text (c12341d)
  • Push to dataLayer only of first accept #CCM-46 (0b198a0)

0.7.0 (2021-11-26)

Bug Fixes

  • Make font-family fallback actually work as documented (52e2656)

Chores

  • Cache yarn dependencies to increase GH Actions jobs speed (57becf7)
  • Fix condition to generate minor on both cases (4e2e180)
  • Test if package is still buildable (e7ce285)

Code Refactoring

  • Extract assemble config into variable (66f5e93)

Dependencies

  • Bump @babel/preset-env from 7.16.0 to 7.16.4 (6912d80)
  • Bump @lmc-eu/commitlint-config from 1.0.4 to 1.0.5 (d8c69f0)
  • Bump @lmc-eu/prettier-config from 1.1.1 to 1.2.0 (d51f2da)
  • Bump @lmc-eu/stylelint-config from 2.0.0 to 2.0.1 (a0bdba8)
  • Bump esbuild from 0.13.14 to 0.13.15 (b9c3993)
  • Bump postcss from 8.3.11 to 8.4.1 (7ccc52c)
  • Bump prettier from 2.4.1 to 2.5.0 (9de88e9)
  • Bump sass from 1.43.4 to 1.43.5 (5679690)

Documentation

  • Add example of localStorage clear (c19a414)

Features

Styles

  • Introduce codestyle linting usingESLint refs #CCM-6 (5b4756d)
  • Lint entire codebase not few directories (158eaa7)
  • Reformat code by prettier (b13af7b)
  • Reformat code using ESLint ruleset refs #CCM-6 (d9d96b9)

0.6.0 (2021-11-19)

BREAKING CHANGES

  • Require service name to be passed as the first parameter #CCM-35 (680165)

Chores

  • Add jest testing framework and unit testing workflow (39468d1)
  • Check for broken links in markdown (58a5a79)
  • Fix building when using crypto in nanoid (82f5943)

Dependencies

  • Bump @commitlint/cli from 14.1.0 to 15.0.0 (85474f8)
  • Bump @lmc-eu/commitlint-config from 1.0.3 to 1.0.4 (10cf00e)
  • Bump @lmc-eu/conventional-changelog-lmc-bitbucket (d894fb2)
  • Bump @lmc-eu/prettier-config from 1.1.0 to 1.1.1 (a3cd839)
  • Bump @lmc-eu/stylelint-config from 1.0.4 to 2.0.0 (a7fa50d)
  • Bump esbuild from 0.13.13 to 0.13.14 (a82527b)
  • Bump vanilla-cookieconsent from 2.6.1 to 2.6.2 (1729ddd)

Documentation

  • Add example of specifying custom company names #CCM-25 (131eb34)
  • Do not use patch part in URL to allow using bugfix versions automatically #CCM-29 (b484c4e)
  • Fix broken links in readme (cadeb72)
  • Fix wrong autodetectLang type in readme (278a3b1)
  • Introduce companyNames option in readme #CCM-25 (06637bc)
  • Update list of supported languages (84e99fd)

Features

Styles

  • Fix pseudo-element notation according to stylelint-config (f4a607f)

Tests

0.5.0 (2021-11-11)

Chores

  • Skip breaking changes until package is stable (7d8174d)

Documentation

  • Legacy import using CommonJS and problem with webpack (e1fa6a7)
  • Minor readme improvements (3743330)
  • Unify codestyle in examples (c6ebfa0)

Features

  • Introduce build for CommonJS and use more common extensions (8c2c553)
  • Introduce ES module entry point (fad5730)

0.4.1 (2021-11-09)

Chores

  • Fix path change in spirit-design-token@0.4.1 (46f3b47)
  • Upgrade node.js version to v16 in pipelines (e51afc9)
  • Use npm set script instead of node script (7f788f1)

Dependencies

  • Bump @commitlint/cli from 13.2.1 to 14.1.0 (2e91e31)
  • Bump @lmc-eu/browserslist-config from 1.0.0 to 1.0.1 (f9cd8b4)
  • Bump @lmc-eu/commitlint-config from 1.0.2 to 1.0.3 (67febaa)
  • Bump @lmc-eu/prettier-config from 1.0.3 to 1.1.0 (eb174bc)
  • Bump @lmc-eu/spirit-design-tokens from 0.2.0 to 0.4.2 (18a78ec)
  • Bump @lmc-eu/stylelint-config from 1.0.3 to 1.0.4 (bb04c6e)
  • Bump esbuild from 0.13.12 to 0.13.13 (0c23f7c)
  • Bump postcss-cli from 8.3.1 to 9.0.2 (4120c18)

Documentation

Styles

  • Adjust html indenting in .editorconfig (4dad63c)
  • Fix formatting according to updated prettier-config (a70979a)

0.4.0 (2021-11-05)

Chores

  • Introduce dependabot configuration for automated deps updates (0cf893d)
  • Remove prepare script before publishing package (ac4b6a9)
  • Rename pr-labeler config file to use yaml extension everywhere (796bf2c)
  • Use .yarnrc instead of .npmrc because we are using yarn (66b2d5e)

Dependencies

  • Bump @lmc-eu/conventional-changelog-lmc-bitbucket (2e17ebd)

Features

  • Introduce new design connected to Spirit design tokens #CCM-7 (658c99f)

0.3.1 (2021-11-04)

Chores

  • Automatically replace package version in readme file to current (97454e1)
  • Disable commit message hook with CI env (3b0e0b9)
  • Disable prepare script with commitlint on CI publish (4886281)
  • Introduce contributors array to display package authors (e2c3c4f)
  • Introduce keywords to display on package page (d8a3568)
  • Introduce PR labelling (4f8e67d)
  • Introduce release action which is triggered manually (97c00f0)
  • Omit version prefix from replacing jsdelivr urls in readme (704332b)
  • Run publish only on tagged refs without any prefix (534caf3)
  • Set git tag version to plain semver string without prefix (6f7c069)

0.3.0 (2021-11-02)

Chores

Code Refactoring

  • Rearrange and document internal defaults (5b6c8e6)

Dependencies

Documentation

Features

0.2.0 (2021-11-01)

Bug Fixes

  • Incomplete options passed by user overrides all defaults (68f8dcb)

Chores

  • Add repository URL to make it shown also on npmjs.com (66947d6)
  • Block fixup commit message using github action (1a43014)
  • Generate changelog using conventional changelog (dddacfc)
  • Introduce commit linting (d8238c3)
  • Introduce simple dev server for local development #CCM-5 (84c3245)
  • Make package publishlable (effcd7a)
  • Rename dev script to more common start (bb6bd54)
  • Run all check with single npm script (fee171a)
  • Use usernames instead of names for codeowners (5cd5eba)

Code Refactoring

  • Unify variable casing to camelCase (3f1367e)

Documentation

Features

  • Add callbacks for all onAccept scenarios #CCM-24 (23314b5)
  • Add custom onAccept callback to extend the default one #CCM-19 (8ed95ba)
  • Add translations for cs, en, sk and pl language #CCM-10 (1743866)
  • Configure consent levels #CCM-12 (703cf98)
  • Configure plugin defaults (bd6309f)
  • Make language autodetection easily configurable #CCM-26 (4404a9a)
  • Provide cookieConsent instance to callbacks #CCM-24 (9232b09)
  • Push info to dataLayer on accept (4203092)
  • Rename default language settings to defaultLang to make it more understandable #CCM-26 (6635813)
  • Return CookieConsent instance from the init function (b217059)
  • Save distribution files for instant usage and examples (d9964f3)

0.1.0 (2021-10-19)

Chores

  • Build package using ESbuild (19ff586)
  • Introduce prettier and reformat files using default lmc config (8c433a2)
  • Lint css using github action (2b7f4dd)

Code Refactoring

  • Build and rename distribution files (bdb0f89)

Dependencies

Documentation

  • Documentation of usage and configuration (6db08fa)

Features

  • Initial configuration for cookie consent (38a4221)
  • Introduce support for czech language (ca547eb)