From dab6352697473d758f3dfddcc497f8fe00a4fcc2 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 3 Jul 2024 23:33:19 +0900 Subject: [PATCH] chore: bump to v0.1.7 --- .bmp.yml | 2 +- README.md | 2 +- deno.json | 2 +- mod.ts | 2 +- util.ts | 3 +++ 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.bmp.yml b/.bmp.yml index de62421..979348b 100644 --- a/.bmp.yml +++ b/.bmp.yml @@ -1,4 +1,4 @@ -version: 0.1.6 +version: 0.1.7 commit: 'chore: bump to v%.%.%' files: README.md: Cell v%.%.% diff --git a/README.md b/README.md index 0a8459c..322e10c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ cell -# Cell v0.1.6 +# Cell v0.1.7 > Event-driven DOM programming in a new style diff --git a/deno.json b/deno.json index c2e5ec0..54d3f1f 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@kt3k/cell", - "version": "0.1.6", + "version": "0.1.7", "exports": { ".": "./mod.ts" }, diff --git a/mod.ts b/mod.ts index cf4b815..9bf1671 100644 --- a/mod.ts +++ b/mod.ts @@ -1,4 +1,4 @@ -/*! Cell v0.1.6 | Copyright 2024 Yoshiya Hinosawa and Capsule contributors | MIT license */ +/*! Cell v0.1.7 | Copyright 2024 Yoshiya Hinosawa and Capsule contributors | MIT license */ import { documentReady, logEvent } from "./util.ts"; interface Initializer { diff --git a/util.ts b/util.ts index ebed71c..f0f923b 100644 --- a/util.ts +++ b/util.ts @@ -33,6 +33,7 @@ const boldColor = (color: string): string => const defaultEventColor = "#f012be"; declare const __DEV__: boolean; +declare const DEBUG_IGNORE: undefined | Set; export function logEvent({ component, @@ -43,6 +44,8 @@ export function logEvent({ if (typeof __DEV__ === "boolean" && !__DEV__) return; const event = e.type; + if (typeof DEBUG_IGNORE === "object" && DEBUG_IGNORE?.has(event)) return; + console.groupCollapsed( `${module}> %c${event}%c on %c${component}`, boldColor(color || defaultEventColor),