Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

695-Embrace-our-functional-overlords #702

Merged
merged 9 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Each tagged version of Datastar is accompanied by a release note. Read the [rele
- Whitespace is now maintained in merged fragments ([#658](https://github.com/starfederation/datastar/issues/658)).
- Attribute plugins now define a hash of their contents, preventing duplicate applies ([#691](https://github.com/starfederation/datastar/issues/691)).
- Attribute plugins are now applied to the `html` element instead of the `body` element ([#691](https://github.com/starfederation/datastar/issues/691)).
- Removed Datastar singleton and export functions directly for `setAlias`, `load`, `apply`

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Datastar helps you build reactive web applications with the simplicity of server-side rendering and the power of a full-stack SPA framework.

Getting started is as easy as adding a single 14.4 KiB script tag to your HTML.
Getting started is as easy as adding a single 14.3 KiB script tag to your HTML.

```html
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected]/bundles/datastar.js"></script>
Expand Down
22 changes: 11 additions & 11 deletions bundles/datastar-aliased.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundles/datastar-aliased.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions bundles/datastar-core.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundles/datastar-core.js.map

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions bundles/datastar.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundles/datastar.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Datastar helps you build reactive web applications with the simplicity of server-side rendering and the power of a full-stack SPA framework.

Getting started is as easy as adding a single 14.4 KiB script tag to your HTML.
Getting started is as easy as adding a single 14.3 KiB script tag to your HTML.

```html
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected]/bundles/datastar.js"></script>
Expand Down
10 changes: 5 additions & 5 deletions library/src/bundles/datastar-aliased.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Datastar as DS } from '../engine'
import { apply, load, setAlias } from '../engine'
import { DELETE } from '../plugins/official/backend/actions/delete'
import { GET } from '../plugins/official/backend/actions/get'
import { PATCH } from '../plugins/official/backend/actions/patch'
Expand Down Expand Up @@ -28,9 +28,9 @@ import { Fit } from '../plugins/official/logic/actions/fit'
import { SetAll } from '../plugins/official/logic/actions/setAll'
import { ToggleAll } from '../plugins/official/logic/actions/toggleAll'

DS.aliasPrefix = 'ds'
setAlias('ds')

DS.load(
load(
// DOM
Attr,
Bind,
Expand Down Expand Up @@ -65,6 +65,6 @@ DS.load(
ToggleAll,
)

DS.apply()
apply()

export const Datastar = DS
export { apply, load, setAlias }
6 changes: 3 additions & 3 deletions library/src/bundles/datastar-core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Datastar as DS } from '../engine'
import { apply, load, setAlias } from '../engine'

DS.apply()
apply()

export const Datastar = DS
export { apply, load, setAlias }
8 changes: 4 additions & 4 deletions library/src/bundles/datastar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Datastar as DS } from '../engine'
import { apply, load, setAlias } from '../engine'
import { DELETE } from '../plugins/official/backend/actions/delete'
import { GET } from '../plugins/official/backend/actions/get'
import { PATCH } from '../plugins/official/backend/actions/patch'
Expand Down Expand Up @@ -28,7 +28,7 @@ import { Fit } from '../plugins/official/logic/actions/fit'
import { SetAll } from '../plugins/official/logic/actions/setAll'
import { ToggleAll } from '../plugins/official/logic/actions/toggleAll'

DS.load(
load(
// DOM
Attr,
Bind,
Expand Down Expand Up @@ -63,6 +63,6 @@ DS.load(
ToggleAll,
)

DS.apply()
apply()

export const Datastar = DS
export { apply, load, setAlias }
Loading