Skip to content

Commit

Permalink
chore: bump to v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Nov 8, 2023
1 parent 9513d16 commit 98beac9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 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.5.3
version: 0.6.0
commit: 'chore: bump to v%.%.%'
files:
README.md:
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://raw.githubusercontent.com/capsidjs/capsule/master/capsule-logo.svg" width="70" alt="capsule" />

# Capsule v0.5.3
# Capsule v0.6.0

[![ci](https://github.com/capsidjs/capsule/actions/workflows/ci.yml/badge.svg)](https://github.com/capsidjs/capsule/actions/workflows/ci.yml)

Expand All @@ -11,7 +11,7 @@
- Supports **event-driven** style of frontend programming in a **new way**.
- Supports **event delegation** and **outside events** out of the box.
- **Lightweight** library.
[**1.2 kb**](https://raw.githubusercontent.com/capsidjs/capsule/v0.5.3/dist.min.js)
[**1.25 kiB**](https://raw.githubusercontent.com/capsidjs/capsule/v0.6.0/dist.min.js)
gzipped. **No dependencies**. **No build** steps.
- Uses **plain JavaScript** and **plain HTML**, requires **No special syntax**.
- **TypeScript** friendly.
Expand Down Expand Up @@ -163,15 +163,15 @@ Vanilla js (ES Module):

```html
<script type="module">
import { component } from "https://deno.land/x/capsule@v0.5.3/dist.min.js";
import { component } from "https://deno.land/x/capsule@v0.6.0/dist.min.js";
// ... your code ...
</script>
```

Vanilla js (Legacy script tag):

```html
<script src="https://deno.land/x/capsule@v0.5.3/loader.js"></script>
<script src="https://deno.land/x/capsule@v0.6.0/loader.js"></script>
<script>
capsuleLoader.then((capsule) => {
const { component } = capsule;
Expand All @@ -183,7 +183,7 @@ capsuleLoader.then((capsule) => {
Deno:

```js
import { component } from "https://deno.land/x/capsule@v0.5.3/mod.ts";
import { component } from "https://deno.land/x/capsule@v0.6.0/mod.ts";
```

Via npm:
Expand All @@ -203,7 +203,7 @@ import { component } from "@kt3k/capsule";
Mirrors input value of `<input>` element to another dom.

```js
import { component } from "https://deno.land/x/capsule@v0.5.3/dist.min.js";
import { component } from "https://deno.land/x/capsule@v0.6.0/dist.min.js";

const { on } = component("mirroring");

Expand All @@ -215,7 +215,7 @@ on.input = ({ query }) => {
Pubsub.

```js
import { component } from "https://deno.land/x/capsule@v0.5.3/dist.min.js";
import { component } from "https://deno.land/x/capsule@v0.6.0/dist.min.js";

const EVENT = "my-event";

Expand All @@ -241,7 +241,7 @@ const EVENT = "my-event";
Mount hooks.

```js
import { component } from "https://deno.land/x/capsule@v0.5.3/dist.min.js";
import { component } from "https://deno.land/x/capsule@v0.6.0/dist.min.js";

const { on } = component("my-component");

Expand All @@ -254,7 +254,7 @@ on.__mount__ = () => {
Prevent default, stop propagation.

```js
import { component } from "https://deno.land/x/capsule@v0.5.3/dist.min.js";
import { component } from "https://deno.land/x/capsule@v0.6.0/dist.min.js";

const { on } = component("my-component");

Expand All @@ -272,7 +272,7 @@ Event delegation. You can assign handlers to `on(selector).event` to use
pattern.

```js
import { component } from "https://deno.land/x/capsule@v0.5.3/dist.min.js";
import { component } from "https://deno.land/x/capsule@v0.6.0/dist.min.js";

const { on } = component("my-component");

Expand All @@ -285,7 +285,7 @@ Outside event handler. By assigning `on.outside.event`, you can handle the event
outside of the component dom.

```js
import { component } from "https://deno.land/x/capsule@v0.5.3/dist.min.js";
import { component } from "https://deno.land/x/capsule@v0.6.0/dist.min.js";

const { on } = component("my-component");

Expand All @@ -297,7 +297,7 @@ on.outside.click = ({ e }) => {
# API reference

```ts
const { component, mount } from "https://deno.land/x/capsule@v0.5.3/dist.min.js";
const { component, mount } from "https://deno.land/x/capsule@v0.6.0/dist.min.js";
```

## `component(name): ComponentResult`
Expand Down
2 changes: 1 addition & 1 deletion dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ await build({
test: true,
package: {
name: "@kt3k/capsule",
version: "0.5.3",
version: "0.6.0",
description: "Event-driven DOM programming in a new style",
license: "MIT",
repository: {
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Capsule v0.5.3 | Copyright 2022 Yoshiya Hinosawa and Capsule contributors | MIT license */
/*! Capsule v0.6.0 | Copyright 2022 Yoshiya Hinosawa and Capsule contributors | MIT license */
import { documentReady, logEvent } from "./util.ts";

interface Initializer {
Expand Down

0 comments on commit 98beac9

Please sign in to comment.