cdp-edge 2.3.5 → 2.3.6

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,9 @@
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.6** — Retry Queue Completo & Hardening TypeScript (14 de Abril de 2026) 🔁
6
6
 
7
- > **v2.3.2** — Governança de Conhecimento Automatizada (13 de Abril de 2026) 🧠
7
+ > **v2.3.5** — UTMs Obfuscadas & Segmentação de Valor (14 de Abril de 2026) 🏷️
8
8
 
9
9
  ### Novidades
10
10
  - graphify obrigatório em todas as sessões (CLAUDE.md)
@@ -20,6 +20,49 @@
20
20
 
21
21
  ---
22
22
 
23
+ ## 📋 CHANGELOG v2.3.6 — Retry Queue Completo & Hardening TypeScript (14 de Abril de 2026)
24
+
25
+ ### 🔁 Retry Queue — Cobertura Total de Dispatchers
26
+
27
+ **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.
28
+
29
+ **Solução implementada:**
30
+ - `RETRY_QUEUE.send()` ativo nos 7 dispatchers: Meta, GA4, TikTok, Pinterest, Reddit, LinkedIn, Spotify
31
+ - Apenas falhas de rede (`catch`) são enfileiradas — erros HTTP 4xx não são retentados (payload rejeitado pela plataforma)
32
+ - Consumer (`queue()`) recebe `ctx: ExecutionContext` — background ops (`logMatchQuality`, `writeAuditLog`) agora funcionam no reprocessamento
33
+ - Cobertura expandida de 3 para 7 plataformas no consumer
34
+ - `Queue<QueueMessage>` adicionado ao `Env` em `types.ts`
35
+
36
+ **Fluxo de retry:**
37
+ ```
38
+ Dispatcher → catch (falha de rede)
39
+ → logApiFailure (D1)
40
+ → RETRY_QUEUE.send({ eventType, payload, platform })
41
+ → consumer reprocessa (até 3 tentativas)
42
+ → se esgotar → DLQ (cdp-edge-dlq)
43
+ ```
44
+
45
+ ### 🔧 Hardening TypeScript
46
+
47
+ - Tipo explícito `SanitizeResult` para o objeto de sanitização em `index.ts`
48
+ - `STR_FIELDS` renomeado para `TRACKING_ID_FIELDS` (transactionId, fbclid, ttclid, gclid) — elimina conflito com `GENERIC_SANITIZE_FIELDS` (UTMs)
49
+ - Build TypeScript: zero erros, zero warnings críticos
50
+
51
+ ### Breaking Changes
52
+
53
+ - Nenhuma. API HTTP e comportamento em runtime são idênticos.
54
+
55
+ ### Migração
56
+
57
+ Nenhuma migração necessária. Se a fila `cdp-edge-retry` ainda não foi criada:
58
+ ```bash
59
+ wrangler queues create cdp-edge-retry
60
+ wrangler queues create cdp-edge-dlq
61
+ wrangler deploy
62
+ ```
63
+
64
+ ---
65
+
23
66
  ## 📋 CHANGELOG v2.3.5 — UTMs Obfuscadas & Segmentação de Valor (14 de Abril de 2026)
24
67
 
25
68
  ### 🏷️ 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.6",
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.