Commit Graph

1176 Commits

Author SHA1 Message Date
Glen De Cauwsemaecker 7830ea7bae
change rust repo link to monorepo (#855)
also bump version to 0.1.3
and bump alpha version of rama
2025-04-18 17:09:27 -06:00
Ben Croker 9b76b0ae44
Fix link 2025-04-18 13:57:13 -06:00
Ben Croker f1fa1cba71
Max 5 keywords allowed 2025-04-18 13:52:29 -06:00
Glen De Cauwsemaecker 3afa2c098e
improve quality of rust sdk and add tooling (#854)
also bump version to 0.1.2

- add makefile with all commands for rust sdk developers
  to run all relevant checks and test,
  which also auto formatting of code and toml deps
- fixed broken clippy rules
  (this also required fixing some stuff in consts)

Also fixed the docs.rs attributes to ensure _all_
modules and symbols get published in docs,
instead of only those that are available in default features
(which was missing the framework specific stuff in docs)

Only nitpick issue left: in generated code (consts.rs)
some descriptions can contain 'html' code which is not escaped,
pretty certain this html will be rendered in docs.rs
as rust docs renders docs as markdown (which includes html),
but given that's auto generated I have left that for now as-is.
2025-04-18 13:48:30 -06:00
Ben Croker 47a095f04a
Update Cargo.toml 2025-04-18 11:21:00 -06:00
Ben Croker 3fe8157a09
Revert version number 2025-04-18 11:14:19 -06:00
Glen De Cauwsemaecker 104e77e1e8
update version to 0.1.0-beta.1 for rust sdk (#849)
ready for publish

- changelogs per sdk's is not done it seems,
  so I did not add that

Once this is merged we should be able to run

> cargo publish

and all should be ok
2025-04-18 10:29:17 -06:00
Lucian 6be5ad2fbc
fix(python): uncomment fasthtml, use correct name (#852)
Co-authored-by: Lucian Knock <git@lucianknock.com>
2025-04-18 10:21:09 -06:00
Glen De Cauwsemaecker 10b29846ae
add rama support to datastar rust sdk (#847)
* add rama support to datastar rust sdk

Closes #845

* bump rama alpha version
2025-04-16 21:05:33 -06:00
Glen De Cauwsemaecker 6b2d488ae6
Update "join discord link" in README.md (#846)
The current link is a link to a channel in a server which only works if you are already in the discord. This PR Replaces it with the invite link <https://discord.com/invite/bnRNgZjgPh> which I found on the datastar website: <https://data-star.dev/>
2025-04-15 15:52:26 -06:00
Brandon Bennett 83c120a3b1
Update README.md (#841)
Small spelling changes to make `datastar-py` consistent.
2025-04-15 09:34:14 -06:00
Dmitry Kotik d81ea1aef9
add missing WithMergeFragmentsEventID option (#842)
The merge fragments call configuration struct had an EventID field and
logic that added it to the SSE call, but no option to configure it.
Added that missing option.
2025-04-15 08:48:25 -06:00
Chase Sterling 3c5974c2e1
Python SDK: Allow objects with the __html__ protocol to be used for merge_fragments (#837)
* Allow objects with the __html__ protocol to be used for merge_fragments

* Clarify what HasHtml is for with a docstring
2025-04-14 19:31:20 -06:00
Dmitry Kotik b758fb3e06
Expand Golang SDK documentation by adding comments to every method. (#838)
* externalize interface compatibility for two optional template engines

Templ and GoStar are currently module dependencies for Golang SDK. They
should not be required for 1.0 release. This step replaces two component
interfaces with copies that ensure compatibility without having to
include various optional engines as dependencies with each Datastar
deployment.

* update comments and documentation for Golang SDK

Added comments to `execute.go` file. I will make similar changes to
other files. I submit those as a way of getting feedback.

The only public API change is the removal of execute script options
struct. It is changed to private by letter case because the options
pattern is used to configure script execution. The struct serves no
purpose and pollutes the public API.

* add hot reload example to Golang SDK

Updated the Golang SDK README.md file to include a list of examples that
will be expanded in the future. A basic example is moved into its own
directory. A hot reload example is added alongside it.

* expand Golang SDK documentation by adding comments to every method

Added a comment to every public method. Removed inaccessible options
structs from public API by letter case change. Exposed one hidden option
to public API. Refactored fragment merge mode parsing and added a
matching validation test.

* reinstate ValidFragmentMergeTypes because the website documentation depends on it
2025-04-14 10:40:01 -06:00
Chase Sterling a705eb7044
Add redirect helper on python ServerSentEventGenerator (#836) 2025-04-14 10:33:12 -06:00
Alex Bozhenko a4145207f0
chore: update go modules in go example (#835)
* chore: update go modules in go example

* unbreak tests
2025-04-12 11:42:35 -06:00
Alex Bozhenko 439c71341b
upd (#833) 2025-04-12 08:29:27 -06:00
Dmitry Kotik c4a99869cb
Add hot reload example to Golang SDK (#834)
* externalize interface compatibility for two optional template engines

Templ and GoStar are currently module dependencies for Golang SDK. They
should not be required for 1.0 release. This step replaces two component
interfaces with copies that ensure compatibility without having to
include various optional engines as dependencies with each Datastar
deployment.

* update comments and documentation for Golang SDK

Added comments to `execute.go` file. I will make similar changes to
other files. I submit those as a way of getting feedback.

The only public API change is the removal of execute script options
struct. It is changed to private by letter case because the options
pattern is used to configure script execution. The struct serves no
purpose and pollutes the public API.

* add hot reload example to Golang SDK

Updated the Golang SDK README.md file to include a list of examples that
will be expanded in the future. A basic example is moved into its own
directory. A hot reload example is added alongside it.
2025-04-12 08:29:05 -06:00
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
Ben Croker 3869f09f5a
Add star history chart [deploy-site] 2025-04-12 08:01:48 -06:00
Dmitry Kotik 686d12ad2a
Update comments and documentation for Golang SDK (#827)
* externalize interface compatibility for two optional template engines

Templ and GoStar are currently module dependencies for Golang SDK. They
should not be required for 1.0 release. This step replaces two component
interfaces with copies that ensure compatibility without having to
include various optional engines as dependencies with each Datastar
deployment.

* update comments and documentation for Golang SDK

Added comments to `execute.go` file. I will make similar changes to
other files. I submit those as a way of getting feedback.

The only public API change is the removal of execute script options
struct. It is changed to private by letter case because the options
pattern is used to configure script execution. The struct serves no
purpose and pollutes the public API.
2025-04-11 18:34:15 -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
Dmitry Kotik 7b706e126b
externalize interface compatibility for two optional template engines (#826)
Templ and GoStar are currently module dependencies for Golang SDK. They
should not be required for 1.0 release. This step replaces two component
interfaces with copies that ensure compatibility without having to
include various optional engines as dependencies with each Datastar
deployment.
2025-04-11 13:07:41 -06:00
Chase Sterling 16fa3cdd90
Python SDK: change `merge_fragments` to take a string rather than list (#822)
* python sdk: change merge_fragments to take a string rather than list

* Change merge_fragments for fasthtml to accept a string rather than list
2025-04-11 13:01:09 -06:00
Jérémy 8b84986410
Fix: added proper clj-kondo config fixing unresolved vars warnings (#817)
Fix: handling of the HTTP keep-alive header
Refactor: simpler concurrency handling in one test.
2025-04-07 10:50:42 -06:00
Ben Croker 3b18b23a1f
Preconnect to youtube [deploy-site] 2025-04-04 17:11:28 -06:00
Ben Croker c780ded239
Add play button [deploy-site] 2025-04-04 11:03:11 -06:00
Ben Croker 72a3e28fea
Add video titles [deploy-site] 2025-04-04 08:44:04 -06:00
Ben Croker 23da089235
Add Videos page [deploy-site] 2025-04-03 21:43:40 -06:00
Ben Croker ffc98aa905
Fix bundler toggle buttons 2025-04-03 19:50:09 -06:00
Greg H 44bd907f44
sdk/dotnet-1.0.0-beta.5 (#812)
* sdk/dotnet-1.0.0-beta.5 - version bump for updated Nuget

* bugfix - corrected retry value

---------

Co-authored-by: Greg Holden <SpiralOSS@users.noreply.github.com>
2025-03-31 18:17:34 -06:00
Ben Croker 83b4af8299
Fix example [deploy-site] 2025-03-31 17:55:00 -06:00
Jérémy 7f7b555998
Change: removed deprecated api. (#810) 2025-03-31 10:41:32 -06:00
Ben Croker 3379e822fb
Fix docs [deploy-site] 2025-03-30 12:39:18 -06:00
Ben Croker f1e0f80922
Add wildcard support to persist plugin (#807) 2025-03-30 10:58:39 -06:00
Ben Croker ccc7ea427a
Add single/double asterisk wildcards (#806)
* Add single/double asterisk wildcards

* Update release note
2025-03-29 18:37:40 -06:00
Ben Croker 9c36bae809
1.0.0-beta.11 2025-03-29 12:15:41 -06:00
Ben Croker 5f10252adb
Reorder 2025-03-29 11:17:45 -06:00
Ben Croker aed0b3a228
Update release notes 2025-03-29 11:15:24 -06:00
Ben Croker 5ba9759fba
Add wildcard support (#805)
* Dispatch `datastar-sse` event on `document`

* Release note

* Fix

* Modify view transition

* Fixes

* Fixes

* Add wildcard support

* Add wildcard to OnSignalChange
2025-03-29 11:11:18 -06:00
Ben Croker 05c751770b
Modify view transition (#804)
* Dispatch `datastar-sse` event on `document`

* Release note

* Fix

* Modify view transition

* Fixes

* Fixes
2025-03-29 10:25:57 -06:00
Ben Croker 024111f67e
Dispatch `datastar-sse` event on `document` (#803)
* Dispatch `datastar-sse` event on `document`

* Release note

* Fix

* Fixes
2025-03-29 10:15:21 -06:00
Jacob Østergaard Nielsen 4cc46524d8
Go SDK WithCompression option for NewSSE (#756)
* add compression

make compression work

update compression logic

* made compression configurable

* allow for compression strategy

cleanup api

---------

Co-authored-by: Delaney Gillilan <delaneygillilan@gmail.com>
2025-03-29 08:19:24 -06:00
Chase Sterling e422bbdecc
Split various python SDK frameworks to different modules (#770)
* Allow passing arguments to the generator function in fastapi sdk

* Allow passing extra headers in FastAPI streaming response

* Keep method signature of upstream FastAPI streaming response

* Split out python sdk frameworks into their own modules
Make all python sdk frameworks mirror the native way of streaming responses

* Rename the sanic helper in python sdk to match sanic convention.
Add some type hinting to sanic helper

* ruff format new python sdk files
2025-03-29 08:05:42 -06:00
Greg H 00d4e87a01
task/doco-dotnet-load_more - added how_tos/load_more.csharpsnippet and corrected dotnet README (#801)
Co-authored-by: Greg Holden <SpiralOSS@users.noreply.github.com>
2025-03-28 19:50:48 -06:00
Jason Oppel f754ada278
Fix WSGI/ASGI issues in Django Example Project (#787)
* fix: support connection header over WSGI

Per spec, WSGI doesn't allow the connection header:
https://peps.python.org/pep-0333/#other-http-features

This commit works around that limitation and permits the connection
header over a WSGI connection.

* feat: add WSGI views/urls to Django example

* build(py-sdk): add django/datastar_py/daphne pkgs

Other related changes:
* Added "daphne" to INSTALLED_APPS to provide us with an ASGI runserver.
* Changed a setting to make ASGI the default.

* docs: add a README to the example Django project

The docs explain why Django devs should use ASGI and explain how to use
WSGI if needed.
2025-03-28 19:49:13 -06:00
dpc 48e7a124a4
fix(docs): Clarify file input type derived signals (#800) 2025-03-28 08:35:24 -06:00
Ryan Riley dba88cb2fb
feat(fsharp/sdk): apply language guidelines (#797)
Proposed changes to internals to align with F# language guidelines for
static classes. See

- [F# component design guidelines](
https://learn.microsoft.com/en-us/dotnet/fsharp/style-guide/component-design-guidelines#use-namespaces-types-and-members-as-the-primary-organizational-structure-for-your-components)
- [Interop discussion](
https://github.com/fsharp/fslang-suggestions/issues/906)
2025-03-26 07:03:18 -06:00
Ben Croker 3c34e03b3d
Add timing modifiers (#795) 2025-03-25 08:26:55 -06:00
Ben Croker 41f87ae7b2
Remove link 2025-03-24 18:25:40 -06:00