Commit Graph

69 Commits

Author SHA1 Message Date
Alex Bozhenko aa138d5a19
Fix go tools (#829)
* update to go 1.24

* run go mod tidy

* make qtc a go tool

* remove tools installation from dockerfile dev

since it is now taken care of by the go tool command

* update makefile to use go tool task
2025-04-12 08:27:49 -06:00
Alex Bozhenko 5a894a0139
Use go tools (#828)
* go get  go@latest

* go get -tool github.com/go-task/task/v3/cmd/task@latest

* go get -tool github.com/a-h/templ/cmd/templ@latest

* upd task file to use go tool templ
2025-04-11 18:33:29 -06:00
Ben Croker bceefa2122
Update Idiomorph to v0.7.3 (#746)
* Update Idiomorph to v0.7.3

* Add release note
2025-03-07 13:12:33 -06:00
Delaney Gillilan 69bf92b634 fix removal of unused parameters 2025-03-01 14:57:39 -08:00
Patrick Marchand 624d24b2f6
fix sdk npm package (#705) 2025-02-25 08:58:02 -06:00
Ben Croker b7caf5e41c
Test command runs unit tests only (#689)
* Test command runs unit tests only

* Update paths in action

* Enforce branch policy

* Add passing check
2025-02-22 09:57:27 -06:00
zangster300 bd17ab4809
update to smoketests, reducing failure rates (#626) 2025-02-07 08:29:30 -08:00
Ben Croker d45517ffbb
Fix fragment morph (#608)
* Add example to demonstrate

* upgrade to latest idiomorph

* Remove test file

* fix possible removal on apply

---------

Co-authored-by: Delaney Gillilan <delaneygillilan@gmail.com>
2025-02-05 16:02:57 -06:00
Delaney Gillilan 3f95087783
fix ts pub task 2025-02-01 08:55:29 -06:00
Delaney ba6fba2b25
Revamp apply and cleanup to be based primarily on MutationObserver (#528)
* Revamp apply and cleanup to be based primarily on MutationObserver

* Improve `data-on` timing functions
Fixes #519

* inline cast

* Update library/src/engine/engine.ts

Co-authored-by: Thomas Threadgold <2460166+Regaez@users.noreply.github.com>

* cleanup and merge with develop

* Add timing example

* remove apply

---------

Co-authored-by: Thomas Threadgold <2460166+Regaez@users.noreply.github.com>
Co-authored-by: Ben Croker <ben@putyourlightson.com>
2025-01-30 11:06:20 -06:00
Patrick Marchand 43449e1e3a
sdk/typescript add taskfile building tasks (#507) 2025-01-25 16:25:23 -06:00
Patrick Marchand 76789e8f0d
BSD support and better taskfile formatting (#357)
* Clearer formatting of platform dependent commands in taskfile

* BSD support

* Fix merge error
2024-12-12 16:11:43 -06:00
Delaney Gillilan 06fb18fb3a Fix types errors and NPM build 2024-12-06 12:54:30 -08:00
Delaney 093aeac21a
v0.21.0-beta1
* Fix newline in SDK protocol for paths. (#281)

* Fix newline in SDK protocol for paths.
Fixes #272

* Update PHP SDK

* Fix newline in SDK protocol for paths in Go SDK #272

* Tweak wording

---------

Co-authored-by: Ben Croker <ben@putyourlightson.com>

* Rename data-store to data-merge-signals. (#280)

* Make title dynamic in site (#277)

* Make title dynamic in site
Fixes #263

* Update meta tags

---------

Co-authored-by: Ben Croker <ben@putyourlightson.com>

* Add release note

* Rename data-store to data-merge-signals.
Fixes #269

* Fix backend reference docs and example

* feat: Add fly-deploy.yaml, manually triggered via GH only for now

* Rename data-store to data-merge-signals.
Fixes #269

* Update SDK #269

---------

Co-authored-by: Ben Croker <ben@putyourlightson.com>
Co-authored-by: Andrew Welch <andrew@nystudio107.com>
Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>

* side effects

* Delaneyj/issue270 (#282)

* Start work on data-model removal #270

* move files  #270

* move all test and examples to data-bind from data-model

* merge consts

* Add release note

---------

Co-authored-by: Ben Croker <ben@putyourlightson.com>

* Move to `@` for actions (#283)

* move to @ for actions

* Rename store to signals for #284  (#289)

* Rename store to signals #284 passes tests

---------

Co-authored-by: Delaney Gillilan <delaneygillilan@gmail.com>

* Update CHANGELOG.md

* Release notes

* Preprocessor to macro (#290)

* Preprocessor to macro Fixes #285

---------

Co-authored-by: Andrew Welch <andrew@nystudio107.com>

* Remove RefMacro

* Tweka wording

* Fix docs

* Support explicit syntax (#297)

* refactor: Use Docker-dev for the base image, and build all the things

* refactor: Log in to the registry

* refactor: Run on workflow changes

* chore: revert changes

* Improve homepage title

* delete everything first

* add top level sdk folder
move go SDK
add back bundles and stuff to make tsbuild work

* update go SDK url

* fix: Fix issue with `make task`

* fix: Fix multiple linux arch’s, add `support` as a `deploy` dep

* refactor: Install `flyctl`

* refactor: Output to the current directory

* refactor: ignore .out

* refactor: Run via Docker container

* refactor: Use `flyctl` instead of the alias

* refactor: Docker-in-Docker

As per “The Socket Solution” here: https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/

* refactor: Fix comment

* refactor: Make fly alias

* refactor: Use fly alias

* add vendored back in

* fix: Revert relative paths

* refactor: Revert ignoring `.out`

* refactor: Run flyctl in the CI container

* refactor: Remove flyctl

* refactor: Remove socket bind mount

* refactor: Add `flyctl` back in so `make task deploy` can be done locally

* add types and nested signals

* Add canonical meta tag

* add more stuff back in

* add ( i think ) the rest of the plugins

* lazy generation ReactiveExpresison, get click to edit working

* data-merge-signals to data-signals
start @action to action

* Add WIP release notes

* update more examples removing @ syntax and moving to sse action

* remove deprecated examples

* The great $ purge of 2024

* Add error codes

* working on v21 syntax  #296
fix bind/intersect lazy reactiveExpression gen

* Fix todo demo

* Reorder plugins

* Start markdown errors

* Finish markdown errors

* Update release notes

* Add release note

* Update release note

* remove dup and require checks

* fix signals JSON usage
fix throttle/debounce lead/trail port

* make js obj helper
auto formatting
signal value needed explicit period prefix for value
data-signals lazy generates due to possible expressons
removeSignal applies after eval

* update test, 127/127

* Create VSCode extension (#295)

* Add attributes

* Finish attributes

* Fix repo URL

* Finish

* change attributes

* fix attributes

* VSCode extension improvements

* fix data-attributes example

* Fix a BEN!

* support individual data-class-foo calls

* error page

* Rework error pages

* Simplify

* Rework errors

* Fixes

* Delete `console.log` from library

* #296 persist back in

* Add missing error

* remove mouse move until I implement correctly

* i hate javascript

* . syntax for modifiers now :

* Extract plugin rules

* Add clarification comment

* support xor key or value for bind/ref/indicator

* Add KeyValRules

* Remove unused properties

* Update VSCode extension

* Update docs

* Improve getting started guide

* logic restored

* autogen error sidebar links

* fixed Restructure folders #287

* fix scroll test
* Prep docs for release

* Fixed check for exclusive requirements

* Build

* img diff

* add errors to nested signals
fix getting started

---------

Co-authored-by: Andrew Welch <andrew@nystudio107.com>
Co-authored-by: Ben Croker <ben@putyourlightson.com>
Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>

* fix signals type elision

---------

Co-authored-by: Ben Croker <ben@putyourlightson.com>
Co-authored-by: Andrew Welch <andrew@nystudio107.com>
Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
2024-12-05 09:09:04 -08:00
Andrew Welch 2ff246c7d2 refactor: Use fly alias 2024-12-01 18:10:32 -05:00
Andrew Welch 38d038dd4d refactor: Use `flyctl` instead of the alias 2024-12-01 17:21:28 -05:00
Andrew Welch e1874e3bfc fix: Fix multiple linux arch’s, add `support` as a `deploy` dep 2024-12-01 17:01:05 -05:00
Felix Ingram a02c0f15a9
Add platforms to taskfile (#251)
* Add platforms to taskfile

Means that we download the correct version of tailwindcli for the
current platform.

* Remove comment

---------

Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
2024-11-26 15:23:32 -06:00
Delaney Gillilan 802bf0309f add back in extra tag push 2024-11-22 01:14:27 -08:00
Delaney Gillilan 345d417041 v0.20.0 RELEASE!!! 2024-11-22 01:08:49 -08:00
Delaney Gillilan 41b8d05dff cleanup NPM package build 2024-11-22 00:37:22 -08:00
Delaney 6b5b3a62a6
Reorg the project, c/p from https://github.com/starfederation/datastar-restructure-interim #211 (#212) 2024-11-22 00:11:04 -08:00
Ben Croker df7cd11f13
Merge branch 'main' into feature/docker-dev 2024-11-04 10:17:13 +01:00
Andrew Welch 3fea94bbb6 fix: Remove library dependency from serve-hot so HMR works 2024-11-03 20:13:20 -05:00
Andrew Welch b6b0593891 refactor: Add templ as a dep 2024-11-03 19:31:31 -05:00
Andrew Welch 909fd4cdaf refactor: Add library as dep 2024-11-03 19:20:31 -05:00
Andrew Welch 8ccc8bd33a
Feature/docker dev (#203)
* feat: Initial docker-dev work

* refactor: Use -c

* refactor: do a fetch & pull too

* feat: Use the vite devserver when doing local development

* refactor: Add taskfile

* feat: Build the backend ahead of time so it’s cached

* feat: Clean up clean

* docs: Add documentation for Datastar Docker dev

* refactor: Add the package.json since the Taskfile tries to read it
2024-11-03 05:13:57 -08:00
Andrew Welch 5ddb55b0ad feat: Build the backend ahead of time so it’s cached 2024-11-02 00:15:53 -04:00
Andrew Welch 559a10bfea feat: Use the vite devserver when doing local development 2024-11-01 23:57:44 -04:00
Delaney Gillilan 823ce74401 fix enter key and other on-modifiers 2024-10-05 12:11:46 -07:00
Patrick Marchand 28719283c0 add build instructions to readme
Also remove a duplicated line from taskfile
2024-09-14 09:18:42 -04:00
Patrick Marchand 1eb5b5d8c8
Datastar Inspector (#127)
* Trying to get the attribute evaluation inspection to work

* Improve inspector expression visualization

Keep expression snapshots on all state changes and fix idiomorph not
triggering attribute removals.

* inspector: Keep more events by default

* inspector: cleanup expression list on data-store removal

* Inspector: Improve dom viewer and add events

Work on events for plugin registration, the backend plugin and dom mutations.

Make a tree of Details viewer for the html.

* inspector-extension: improve types and allow devtools to message content

* inspector: add limit tree to rootId and add highlight on hover

* inspector: changes to version viewer

shows the versioned dom in an iframe and shows versioned dom references
to the store. Also allow highlight of ref element on hover (probably should happen
in the iframe instead though)

* commit current inspector work

* fix message for expr construction in inspector

* Replace TemplSignalStoreView with inspector component

Remove some things that werent satisfactory like the dom versioning in the iframe,
improve formatting of some messages and reduce the noise ratio by ignoring
certain datastar classes for animations and expr_construction messages (those show up in the expressions list anyways)

* add sidebar for inspector
cleanup css

---------

Co-authored-by: Delaney Gillilan <delaneygillilan@gmail.com>
2024-09-08 21:28:23 -07:00
Delaney Gillilan 13d11ece39 add snake example 2024-09-08 15:30:23 -07:00
Delaney Gillilan b3bd304321 add dbmon example 2024-08-19 12:29:40 -07:00
Delaney Gillilan 2dcecfcca8 fix front page css 2024-08-13 13:44:19 -07:00
Delaney Gillilan 0c9a00c2bf move back to v15
change cookie expiration to a day
2024-06-26 13:32:33 -07:00
Patrick Marchand 4a65bef0ed
Merge branch 'main-up' into inspector 2024-06-26 10:26:46 -04:00
Delaney d30a0a9f64
Data store.offline (#75)
* fix #74 
* offline + sync

---------

Co-authored-by: Patrick Marchand <mail@patrickmarchand.com>
2024-06-19 12:21:59 -07:00
Delaney Gillilan 9622e659d8 have to bump because taskfile create wrong version 2024-06-18 13:09:47 -07:00
Delaney 440ee21dd6
Todo example for front page (#85)
* more styling
* move frontend packages to "packages"
* move large file out of static assets
* fix refs
* better mobile support
* add data-on-*.outside modifier

---------

Co-authored-by: Patrick Marchand <mail@patrickmarchand.com>
2024-06-18 13:04:21 -07:00
Patrick Marchand 8d2826365e
fix path of library package in Taskfile 2024-06-14 16:27:09 -04:00
Delaney Gillilan 12bc908f79 move frontend packages to "packages" 2024-06-09 11:13:12 -07:00
Delaney ccce8472eb
V0.15.0 (#68)
* Move to templ from Gostar
* data-scroll-in-view remove self after application
* throttle stopped double calls (start and end of throttle) by default
* new data: vt {true|false} for turning on/off view transitions per update. During the update things aren't clickable, making it a pain for real-time apps. Default is on still
* Add rawKey to ctx, allows easier cleanup of keys
* fix issues with data-fetch-indicator is is-fetching
* move site to daisyui/tailwind for better consistency in docs and examples

---------

Co-authored-by: Patrick Marchand <mail@patrickmarchand.com>
2024-06-04 19:36:44 -07:00
Delaney Gillilan a5d48a3e12 add google analytics and update readme 2024-05-17 07:11:43 -07:00
Peter Humulock c068519d11
Playwright Tests (#42)
* Messing with playwright

* click_to_edit
click_to_load

* Added README

* Tests

* Temp

* More examples

* progress bar

* value select, lazyTabs, animations

* some tweaking

* tweaks

* modify

* Fixed inline validation

* added diaolgues browser

* fixed active search

* add task entry

---------

Co-authored-by: Delaney Gillilan <delaneygillilan@gmail.com>
2024-05-15 13:58:35 -07:00
Delaney Gillilan e93e59fcc9 fix early removal of events
add quick primer example in Go
2024-04-24 07:45:13 -07:00
Delaney Gillilan 8dd004f40b fix radio buttons
fix shoelace example bindings
add model binding example
2024-04-21 11:06:40 -07:00
Delaney 1c748e1ea0
V0.12.0 (#21)
* fix #20 and Preprocesser->Preprocessor

* fix #18

* add more verbose errors
fix #19
2024-04-20 15:52:12 -07:00
Delaney Gillilan 42df9684a8 fix fetch-indicator 2024-04-08 16:28:01 -07:00
Delaney Gillilan e7fdaf7527 fix backend plugin application 2024-04-07 13:34:00 -07:00