cdp-edge 2.3.5 → 2.3.7

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/README.md CHANGED
@@ -2,9 +2,11 @@
2
2
 
3
3
  **Padrão Quantum Tracking: 100% Cloudflare Edge.** Sem GTM. Sem Stape. Sem cookies de terceiros.
4
4
 
5
- > **v2.3.5** — UTMs Obfuscadas & Segmentação de Valor (14 de Abril de 2026) 🏷️
5
+ > **v2.3.7** — Infraestrutura Git & Contratos de API (14 de Abril de 2026) 🛠️
6
+
7
+ > **v2.3.6** — Retry Queue Completo & Hardening TypeScript (14 de Abril de 2026) 🔁
6
8
 
7
- > **v2.3.2** — Governança de Conhecimento Automatizada (13 de Abril de 2026) 🧠
9
+ > **v2.3.5** — UTMs Obfuscadas & Segmentação de Valor (14 de Abril de 2026) 🏷️
8
10
 
9
11
  ### Novidades
10
12
  - graphify obrigatório em todas as sessões (CLAUDE.md)
@@ -20,6 +22,70 @@
20
22
 
21
23
  ---
22
24
 
25
+ ## 📋 CHANGELOG v2.3.7 — Infraestrutura Git & Contratos de API (14 de Abril de 2026)
26
+
27
+ ### 🛠️ Infraestrutura Git
28
+
29
+ - **`.gitattributes`** criado — força LF em todos os arquivos de texto, elimina o falso "M" por conversão CRLF no Windows de forma permanente para qualquer clone futuro
30
+ - **`core.autocrlf=false`** — desativado localmente para que `.gitattributes` tenha controle total dos line endings
31
+ - **`.gitignore`** — `server-edge-tracker/dist-check/` adicionado (output do `wrangler deploy --dry-run` não deve ser versionado)
32
+
33
+ ### 📋 Contratos de API
34
+
35
+ - **`contracts/api-versions.json`** — versão `1.0.0` → `1.1.0`
36
+ - `updated_at` atualizado para `2026-04-14`
37
+ - `last_updated_by` reflete `Intelligence Agent — CDP Edge v2.3.6`
38
+ - `next_review_date` atualizado para `2026-05-14`
39
+
40
+ ### Breaking Changes
41
+
42
+ - Nenhuma.
43
+
44
+ ---
45
+
46
+ ## 📋 CHANGELOG v2.3.6 — Retry Queue Completo & Hardening TypeScript (14 de Abril de 2026)
47
+
48
+ ### 🔁 Retry Queue — Cobertura Total de Dispatchers
49
+
50
+ **Problema resolvido:** a infraestrutura de retry (`RETRY_QUEUE` + consumer + DLQ) estava 100% montada no `wrangler.toml` e no `index.ts`, mas `RETRY_QUEUE.send()` nunca era chamado. Eventos perdidos por falha de rede ficavam mortos no D1.
51
+
52
+ **Solução implementada:**
53
+ - `RETRY_QUEUE.send()` ativo nos 7 dispatchers: Meta, GA4, TikTok, Pinterest, Reddit, LinkedIn, Spotify
54
+ - Apenas falhas de rede (`catch`) são enfileiradas — erros HTTP 4xx não são retentados (payload rejeitado pela plataforma)
55
+ - Consumer (`queue()`) recebe `ctx: ExecutionContext` — background ops (`logMatchQuality`, `writeAuditLog`) agora funcionam no reprocessamento
56
+ - Cobertura expandida de 3 para 7 plataformas no consumer
57
+ - `Queue<QueueMessage>` adicionado ao `Env` em `types.ts`
58
+
59
+ **Fluxo de retry:**
60
+ ```
61
+ Dispatcher → catch (falha de rede)
62
+ → logApiFailure (D1)
63
+ → RETRY_QUEUE.send({ eventType, payload, platform })
64
+ → consumer reprocessa (até 3 tentativas)
65
+ → se esgotar → DLQ (cdp-edge-dlq)
66
+ ```
67
+
68
+ ### 🔧 Hardening TypeScript
69
+
70
+ - Tipo explícito `SanitizeResult` para o objeto de sanitização em `index.ts`
71
+ - `STR_FIELDS` renomeado para `TRACKING_ID_FIELDS` (transactionId, fbclid, ttclid, gclid) — elimina conflito com `GENERIC_SANITIZE_FIELDS` (UTMs)
72
+ - Build TypeScript: zero erros, zero warnings críticos
73
+
74
+ ### Breaking Changes
75
+
76
+ - Nenhuma. API HTTP e comportamento em runtime são idênticos.
77
+
78
+ ### Migração
79
+
80
+ Nenhuma migração necessária. Se a fila `cdp-edge-retry` ainda não foi criada:
81
+ ```bash
82
+ wrangler queues create cdp-edge-retry
83
+ wrangler queues create cdp-edge-dlq
84
+ wrangler deploy
85
+ ```
86
+
87
+ ---
88
+
23
89
  ## 📋 CHANGELOG v2.3.5 — UTMs Obfuscadas & Segmentação de Valor (14 de Abril de 2026)
24
90
 
25
91
  ### 🏷️ UTM Agent — Novo Agente para Segmentação de Público
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-edge",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "description": "CDP Edge - Quantum Tracking - Sistema multi-agente para tracking digital Cloudflare Native (Workers + D1)",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -0,0 +1 @@
1
+ This folder contains the built output assets for the worker "server-edge-tracker" generated at 2026-04-14T21:31:47.480Z.