Skip to content

Commit

Permalink
chore: bump to v0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Jul 3, 2024
1 parent 2239924 commit dab6352
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .bmp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.1.6
version: 0.1.7
commit: 'chore: bump to v%.%.%'
files:
README.md: Cell v%.%.%
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://kt3k.github.io/cell/cell-logo.svg" width="70" alt="cell" />

# Cell v0.1.6
# Cell v0.1.7

> Event-driven DOM programming in a new style
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kt3k/cell",
"version": "0.1.6",
"version": "0.1.7",
"exports": {
".": "./mod.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const boldColor = (color: string): string =>
const defaultEventColor = "#f012be";

declare const __DEV__: boolean;
declare const DEBUG_IGNORE: undefined | Set<string>;

export function logEvent({
component,
Expand All @@ -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),
Expand Down

0 comments on commit dab6352

Please sign in to comment.