diff --git a/.bmp.yml b/.bmp.yml index 3d85af1..2718ca6 100644 --- a/.bmp.yml +++ b/.bmp.yml @@ -1,4 +1,4 @@ -version: 0.2.0 +version: 0.3.0 commit: 'chore: bump to v%.%.%' files: README.md: diff --git a/README.md b/README.md index b6e6da8..eef3a2c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ capsule -# Capsule v0.2.0 +# Capsule v0.3.0 > Event-driven DOM programming in a new style @@ -178,7 +178,7 @@ import { component } from "@kt3k/capsule"; Mirrors input value of `` element to another dom. ```js -import { component } from "https://deno.land/x/capsule@v0.2.0/mod.ts"; +import { component } from "https://deno.land/x/capsule@v0.3.0/mod.ts"; const { on } = component("mirroring"); @@ -190,7 +190,7 @@ on.input = ({ query }) => { Pubsub. ```js -import { component } from "https://deno.land/x/capsule@v0.2.0/mod.ts"; +import { component } from "https://deno.land/x/capsule@v0.3.0/mod.ts"; const EVENT = "my-event"; @@ -216,7 +216,7 @@ const EVENT = "my-event"; Bubbling events. ```js -import { component } from "https://deno.land/x/capsule@v0.2.0/mod.ts"; +import { component } from "https://deno.land/x/capsule@v0.3.0/mod.ts"; const { on } = component("my-component"); @@ -280,7 +280,7 @@ on(".btn").click = ({ e }) => { # API reference ```ts -const { component, mount } from "https://deno.land/x/capsule@v0.2.0/mod.ts"; +const { component, mount } from "https://deno.land/x/capsule@v0.3.0/mod.ts"; ``` ## `component(name): ComponentResult` @@ -484,6 +484,7 @@ unmount("my-component", el); # History +- 2022-01-11 v0.3.0 Add `unmount`. - 2022-01-11 v0.2.0 Change delegation syntax. # License diff --git a/dnt.ts b/dnt.ts index de00031..4cdea98 100644 --- a/dnt.ts +++ b/dnt.ts @@ -17,7 +17,7 @@ await build({ test: true, package: { name: "@kt3k/capsule", - version: "0.2.0", + version: "0.3.0", description: "Event-driven DOM programming in a new style", license: "MIT", repository: { diff --git a/mod.ts b/mod.ts index 4641af9..97f7be0 100644 --- a/mod.ts +++ b/mod.ts @@ -1,4 +1,4 @@ -/*! Capsule v0.2.0 | Copyright 2022 Yoshiya Hinosawa and Capsule contributors | MIT license */ +/*! Capsule v0.3.0 | Copyright 2022 Yoshiya Hinosawa and Capsule contributors | MIT license */ import { documentReady, logEvent } from "./util.ts"; interface Initializer {