Skip to content

Commit 4e8c702

Browse files
committed
Pin the CDN to 1.0.0 now that the registry serves it, and refresh the site bundles
1 parent 1d06bec commit 4e8c702

120 files changed

Lines changed: 267 additions & 266 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/ISSUE_TEMPLATE/bug_report.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Paste a single-page HTML file that reproduces it. The smaller the better.
2323
<html lang="en">
2424
<head>
2525
<meta charset="utf-8">
26-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
26+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
2727
</head>
2828
<body>
2929
<div v-data="{ n: 0 }">

‎README.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Save this as `index.html` and open it. There is no build step, no bundler, no co
4949
<!doctype html>
5050
<html>
5151
<head>
52-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
52+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
5353
</head>
5454
<body>
5555

@@ -116,10 +116,10 @@ You do not need React, Vue, a bundler or Node.js to use Voodoo. Pick one:
116116
**CDN, nothing to install**
117117

118118
```html
119-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
119+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
120120
```
121121

122-
That is the whole installation; the library starts itself once the page is ready. [unpkg](https://unpkg.com/voodoojs@0.13.0/dist/voodoo.full.min.js) serves the same file. The tag names an exact version, so what you load never changes under you.
122+
That is the whole installation; the library starts itself once the page is ready. [unpkg](https://unpkg.com/voodoojs@1.0.0/dist/voodoo.full.min.js) serves the same file. The tag names an exact version, so what you load never changes under you.
123123

124124
**npm, for a bundler or a server-rendered app**
125125

@@ -140,7 +140,7 @@ import { debounce } from 'voodoojs/utils'
140140
**Vendor the file, or build it yourself**, for pages that must not reach a third-party host or for an air-gapped network:
141141

142142
```bash
143-
curl -O https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js
143+
curl -O https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js
144144
# or build from source; the bundles land in packages/voodoojs/dist/
145145
git clone https://github.com/kwy404/Voodoo.js.git
146146
cd Voodoo.js && npm install && npm run build
@@ -150,9 +150,9 @@ cd Voodoo.js && npm install && npm run build
150150

151151
| File | Contents | JSX in HTML | Gzip |
152152
| --- | --- | --- | ---: |
153-
| `voodoo.core.min.js` | **Minimal.** Reactivity, expressions, directives, components, DOM, requests | No | about 51 KB |
154-
| `voodoo.min.js` | **Essential.** Adds forms, validation, masks, UI, drag and drop, theme toggle | No | about 88 KB |
155-
| `voodoo.full.min.js` | **Full.** Adds JSX, charts, motion, router, i18n, devtools, ready-made components | **Yes** | about 136 KB |
153+
| `voodoo.core.min.js` | 147.92 KB | 51.04 KB | 44.46 KB |
154+
| `voodoo.min.js` | 272.30 KB | 88.29 KB | 74.72 KB |
155+
| `voodoo.full.min.js` | 451.65 KB | 137.08 KB | 114.04 KB |
156156

157157
JSX lives only in the full build. With the minimal or essential build, a JSX page shows its source as plain text. Realtime (`V.socket`) and WebGPU (`V.gpu`) ship as separate entries, `dist/socket.js` and `dist/gpu.js`, and are in none of the browser bundles. Sizes move between releases: see the badge above, [`benchmarks/reports/bundle.md`](https://github.com/kwy404/Voodoo.js/blob/main/benchmarks/reports/bundle.md), `npm run size` or `npx voodoojs-cli info`.
158158

@@ -577,7 +577,7 @@ Save this page, open it, click the buttons a few times, then press the keys and
577577
<html lang="en">
578578
<head>
579579
<meta charset="utf-8">
580-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
580+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
581581
</head>
582582
<body>
583583
<div v-data="{ count: 0, items: ['a', 'b'] }">
@@ -773,13 +773,13 @@ Voodoo is the largest bundle in that chart and there is no way to read it otherw
773773

774774
Both charts are true at once. If bundle size is your binding constraint, Alpine and Preact remain the honest recommendation, and `voodoo.core.min.js` is there for pages that want the directives and nothing else.
775775

776-
Measured on the 0.13.0 builds committed to `main` (KiB):
776+
Measured on the 1.0.0 builds committed to `main` (KiB):
777777

778778
| Build | Minified | Gzip | Brotli |
779779
| --- | --- | --- | --- |
780-
| `voodoo.core.min.js` | 146.86 KB | 50.72 KB | 44.15 KB |
781-
| `voodoo.min.js` | 270.70 KB | 87.83 KB | 74.29 KB |
782-
| `voodoo.full.min.js` | 447.94 KB | 136.27 KB | 113.24 KB |
780+
| `voodoo.core.min.js` | 147.92 KB | 51.04 KB | 44.46 KB |
781+
| `voodoo.min.js` | 272.30 KB | 88.29 KB | 74.72 KB |
782+
| `voodoo.full.min.js` | 451.65 KB | 137.08 KB | 114.04 KB |
783783

784784
Run them yourself with `npm run size`; the harness and the exact versions under test live in [`benchmarks/`](https://github.com/kwy404/Voodoo.js/tree/main/benchmarks).
785785

‎README.pt-BR.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Salve como `index.html` e abra. Não tem passo de build, não tem bundler, não
4949
<!doctype html>
5050
<html>
5151
<head>
52-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
52+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
5353
</head>
5454
<body>
5555

@@ -116,10 +116,10 @@ Você não precisa de React, Vue, bundler nem Node.js para usar a Voodoo. Escolh
116116
**CDN, nada para instalar**
117117

118118
```html
119-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
119+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
120120
```
121121

122-
Essa é a instalação inteira; a biblioteca se inicia sozinha quando a página fica pronta. O [unpkg](https://unpkg.com/voodoojs@0.13.0/dist/voodoo.full.min.js) serve o mesmo arquivo. A tag fixa uma versão exata, então o que você carrega nunca muda sem você saber.
122+
Essa é a instalação inteira; a biblioteca se inicia sozinha quando a página fica pronta. O [unpkg](https://unpkg.com/voodoojs@1.0.0/dist/voodoo.full.min.js) serve o mesmo arquivo. A tag fixa uma versão exata, então o que você carrega nunca muda sem você saber.
123123

124124
**npm, para um bundler ou uma aplicação renderizada no servidor**
125125

@@ -140,7 +140,7 @@ import { debounce } from 'voodoojs/utils'
140140
**Copiar o arquivo, ou compilar você mesmo**, para páginas que não podem acessar um host de terceiros ou para uma rede isolada:
141141

142142
```bash
143-
curl -O https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js
143+
curl -O https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js
144144
# ou compile a partir do código; os bundles ficam em packages/voodoojs/dist/
145145
git clone https://github.com/kwy404/Voodoo.js.git
146146
cd Voodoo.js && npm install && npm run build
@@ -150,9 +150,9 @@ cd Voodoo.js && npm install && npm run build
150150

151151
| Arquivo | Conteúdo | JSX em HTML | Gzip |
152152
| --- | --- | --- | ---: |
153-
| `voodoo.core.min.js` | **Mínimo.** Reatividade, expressões, directives, componentes, DOM, requisições | Não | cerca de 51 KB |
154-
| `voodoo.min.js` | **Essencial.** Acrescenta formulários, validação, máscaras, interface, arrastar e soltar, troca de tema | Não | cerca de 88 KB |
155-
| `voodoo.full.min.js` | **Completo.** Acrescenta JSX, gráficos, animação, roteador, i18n, devtools, componentes prontos | **Sim** | cerca de 136 KB |
153+
| `voodoo.core.min.js` | 147.92 KB | 51.04 KB | 44.46 KB |
154+
| `voodoo.min.js` | 272.30 KB | 88.29 KB | 74.72 KB |
155+
| `voodoo.full.min.js` | 451.65 KB | 137.08 KB | 114.04 KB |
156156

157157
O JSX existe só no build completo. Com o mínimo ou o essencial, uma página com JSX mostra o código como texto. Tempo real (`V.socket`) e WebGPU (`V.gpu`) têm entradas próprias, `dist/socket.js` e `dist/gpu.js`, e não vêm em nenhum bundle de navegador. Os tamanhos mudam entre versões: veja o badge acima, o [`benchmarks/reports/bundle.md`](https://github.com/kwy404/Voodoo.js/blob/main/benchmarks/reports/bundle.md), `npm run size` ou `npx voodoojs-cli info`.
158158

@@ -577,7 +577,7 @@ Salve esta página, abra, clique nos botões algumas vezes, depois aperte as tec
577577
<html lang="pt-BR">
578578
<head>
579579
<meta charset="utf-8">
580-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
580+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
581581
</head>
582582
<body>
583583
<div v-data="{ contador: 0, itens: ['a', 'b'] }">
@@ -773,13 +773,13 @@ A Voodoo é o maior bundle desse gráfico e não há como ler de outro jeito. O
773773

774774
Os dois gráficos são verdade ao mesmo tempo. Se tamanho de bundle é a sua restrição principal, Alpine e Preact continuam sendo a recomendação honesta, e o `voodoo.core.min.js` existe para páginas que querem as directives e nada mais.
775775

776-
Medido nos builds 0.13.0 publicados na `main` (KiB):
776+
Medido nos builds 1.0.0 publicados na `main` (KiB):
777777

778778
| Build | Minificado | Gzip | Brotli |
779779
| --- | --- | --- | --- |
780-
| `voodoo.core.min.js` | 146.86 KB | 50.72 KB | 44.15 KB |
781-
| `voodoo.min.js` | 270.70 KB | 87.83 KB | 74.29 KB |
782-
| `voodoo.full.min.js` | 447.94 KB | 136.27 KB | 113.24 KB |
780+
| `voodoo.core.min.js` | 147.92 KB | 51.04 KB | 44.46 KB |
781+
| `voodoo.min.js` | 272.30 KB | 88.29 KB | 74.72 KB |
782+
| `voodoo.full.min.js` | 451.65 KB | 137.08 KB | 114.04 KB |
783783

784784
Rode você mesmo com `npm run size`; o harness e as versões exatas testadas ficam em [`benchmarks/`](https://github.com/kwy404/Voodoo.js/tree/main/benchmarks).
785785

‎SECURITY.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ You handle:
499499
- Serving over HTTPS. Subresource Integrity on the CDN tag is recommended:
500500

501501
```html
502-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js"
502+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js"
503503
integrity="sha384-..."
504504
crossorigin="anonymous"
505505
defer></script>
@@ -533,7 +533,7 @@ the published `dist/`. `packages/voodoojs/package.json` restricts the published
533533
To verify a published bundle:
534534

535535
```bash
536-
npm pack voodoojs@0.13.0
536+
npm pack voodoojs@1.0.0
537537
grep -c "eval(\|new Function" package/dist/voodoo.min.js # expect 0
538538
```
539539

‎docs/application-structure.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A small app: a to-do list with counter, saved in the browser.
2828
<head>
2929
<meta charset="utf-8">
3030
<title>Tasks</title>
31-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
31+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
3232
</head>
3333
<body>
3434
<main v-data="{ draft: '', tasks: [] }" v-persist="tasks">
@@ -76,7 +76,7 @@ projeto/
7676
<head>
7777
<meta charset="utf-8">
7878
<title>Tarefas</title>
79-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
79+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
8080
<script type="module" src="/src/app.js"></script>
8181
</head>
8282
<body>

‎docs/en/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ components, HTTP, forms, validation, UI and routing, driven by attributes, with
77
step, no `eval`, and no runtime dependencies.
88

99
```html
10-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
10+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
1111

1212
<div v-data="{ count: 0 }">
1313
<button @click="count++">Clicked { count } times</button>

‎docs/en/getting-started.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
One tag. Nothing else.
88

99
```html
10-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
10+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
1111
```
1212

1313
Pin an exact version in production:
1414

1515
```html
16-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
16+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
1717
```
1818

1919
`defer` is recommended but not required. Voodoo.js runs its own boot loop rather than
@@ -75,7 +75,7 @@ states no numbers.
7575
<head>
7676
<meta charset="utf-8">
7777
<title>Tasks</title>
78-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
78+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
7979
</head>
8080
<body>
8181
<main v-data="{ draft: '', tasks: [] }">

‎docs/en/security.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ injection disabled. Only the injected `<style>` blocks are affected.
129129
### Subresource Integrity
130130

131131
```html
132-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js"
132+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js"
133133
integrity="sha384-..."
134134
crossorigin="anonymous"
135135
defer></script>

‎docs/inicio-rapido.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Create `index.html`:
1414
<meta charset="utf-8">
1515
<meta name="viewport" content="width=device-width, initial-scale=1">
1616
<title>My first Voodoo</title>
17-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
17+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
1818
<style>[v-cloak] { display: none !important; }</style>
1919
</head>
2020
<body>
@@ -223,7 +223,7 @@ Or declaratively, with the confirmation guard:
223223
<meta charset="utf-8">
224224
<meta name="viewport" content="width=device-width, initial-scale=1">
225225
<title>Task list</title>
226-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
226+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
227227
<style>
228228
[v-cloak] { display: none !important; }
229229
body { font-family: system-ui, sans-serif; max-width: 34rem; margin: 3rem auto; }

‎docs/instalacao.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ There are three ways: CDN, npm, and direct download. All deliver the same librar
55
## CDN, the shortest way
66

77
```html
8-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
8+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
99
```
1010

1111
That's it. On load, the library publishes `window.V` (and `window.Voodoo`, the same object), applies
@@ -22,13 +22,13 @@ components:
2222
`unpkg` also works:
2323

2424
```html
25-
<script src="https://unpkg.com/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
25+
<script src="https://unpkg.com/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
2626
```
2727

2828
Pin the version in production so a new release never changes your page without warning:
2929

3030
```html
31-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.13.0/dist/voodoo.full.min.js" defer></script>
31+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@1.0.0/dist/voodoo.full.min.js" defer></script>
3232
```
3333

3434
## Which bundle to choose

0 commit comments

Comments
 (0)