@react-lgpd-consent/core 0.9.1 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # Changelog - @react-lgpd-consent/core
2
2
 
3
+ ## 0.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e567094`](https://github.com/lucianoedipo/react-lgpd-consent/commit/e567094c999a9727cdbf6c31362d14759f7eba2e) Thanks [@lucianoedipo](https://github.com/lucianoedipo)! - chore: atualização de dependências
8
+
9
+ ## 0.9.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#161](https://github.com/lucianoedipo/react-lgpd-consent/pull/161) [`f1888ef`](https://github.com/lucianoedipo/react-lgpd-consent/commit/f1888ef2e7d8ea86653f155027f6d5ed270ac90c) Thanks [@lucianoedipo](https://github.com/lucianoedipo)! - # Changelog
14
+
15
+ ## ✨ Added
16
+
17
+ ### Coverage Analysis
18
+ - Added `coverage-analysis.sh` to perform comprehensive test coverage analysis.
19
+ - Automated execution of tests with coverage enabled and extraction of metrics from `coverage-summary.json`.
20
+ - Added support for multiple coverage output formats:
21
+ - LCOV
22
+ - Cobertura XML
23
+ - Clover XML
24
+ - JSON
25
+ - HTML
26
+ - Automatic opening of the HTML coverage report in the default browser.
27
+ - Updated `README.md` with documentation for the new coverage analysis script and usage instructions.
28
+
29
+ ### Versioning & Releases
30
+ - Added `VERSIONING.md` describing the versioning strategy based on **Changesets** and **Turborepo**.
31
+ - Documented the full release workflow, including automated CI/CD steps for versioning, publishing, and tagging.
32
+
33
+ ### CI/CD Documentation
34
+ - Added `WORKFLOWS.md` detailing the CI/CD architecture and guiding principles.
35
+ - Documented CI steps, automated version bumps, NPM publishing, and documentation deployment processes.
36
+
37
+ ### Dependency & CI Improvements
38
+ - Updated peer dependencies to improve React version compatibility.
39
+ - Enhanced CI permissions to support the updated release and publishing workflows.
40
+
41
+ ## 📝 Documentation
42
+ - Updated example documentation links in `examples/README.md` to reflect the new documentation structure.
43
+ - Corrected troubleshooting links in the following package READMEs:
44
+ - `core`
45
+ - `mui`
46
+ - `react-lgpd-consent`
47
+ - Updated Quickstart documentation links to point to the new documentation paths.
48
+ - Updated `INTEGRACOES.md` to reflect the new locations for recipes and troubleshooting documentation.
49
+
50
+ ## 🐛 Fixed
51
+
52
+ ### Coverage Configuration
53
+ - Updated Jest coverage thresholds in `jest.config.mjs`:
54
+ - Statements: **98%**
55
+ - Lines: **98%**
56
+ - Functions: **98%**
57
+ - Branches: **91%**
58
+ - Updated coverage thresholds in `coverage-check.cjs` and related scripts to align with the new coverage standards.
59
+
3
60
  ## 0.9.1
4
61
 
5
62
  ### Patch Changes
package/README.md CHANGED
@@ -122,14 +122,14 @@ const audit = createConsentAuditEntry(
122
122
  )
123
123
  ```
124
124
 
125
- 📖 **Saiba mais:** [TROUBLESHOOTING.md](../../TROUBLESHOOTING.md)
125
+ 📖 **Saiba mais:** [TROUBLESHOOTING.md](../../doc/TROUBLESHOOTING.md)
126
126
 
127
127
  ## 📚 Documentação
128
128
 
129
129
  Para documentação completa, exemplos e API reference:
130
130
  - [Documentação Principal](https://lucianoedipo.github.io/react-lgpd-consent/)
131
- - [Guia de Início Rápido](../../QUICKSTART.md)
132
- - [Conformidade LGPD](../../CONFORMIDADE.md)
131
+ - [Guia de Início Rápido](../../doc/QUICKSTART.md)
132
+ - [Conformidade LGPD](../../doc/CONFORMIDADE.md)
133
133
 
134
134
  ## 🔗 Pacotes Relacionados
135
135
 
package/dist/index.cjs CHANGED
@@ -700,7 +700,7 @@ function removeConsentCookie(opts) {
700
700
  }
701
701
 
702
702
  // src/utils/dataLayerEvents.ts
703
- var LIBRARY_VERSION = "0.9.1";
703
+ var LIBRARY_VERSION = "0.9.3";
704
704
  function ensureDataLayer() {
705
705
  const currentWindow = globalThis.window;
706
706
  if (!currentWindow) return;
package/dist/index.js CHANGED
@@ -676,7 +676,7 @@ function removeConsentCookie(opts) {
676
676
  }
677
677
 
678
678
  // src/utils/dataLayerEvents.ts
679
- var LIBRARY_VERSION = "0.9.1";
679
+ var LIBRARY_VERSION = "0.9.3";
680
680
  function ensureDataLayer() {
681
681
  const currentWindow = globalThis.window;
682
682
  if (!currentWindow) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-lgpd-consent/core",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Núcleo da biblioteca de consentimento LGPD para React - Estado, hooks e utilitários sem dependências de UI",
5
5
  "keywords": [
6
6
  "lgpd",
@@ -48,12 +48,12 @@
48
48
  "node": ">=20.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "react": "^18.2.0 || ^19.0.0",
52
- "react-dom": "^18.2.0 || ^19.0.0"
51
+ "react": "^19.2.4",
52
+ "react-dom": "^19.2.4"
53
53
  },
54
54
  "dependencies": {
55
55
  "js-cookie": "^3.0.5",
56
- "zod": "^4.3.5"
56
+ "zod": "^4.3.6"
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",