-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
270 changed files
with
2,952 additions
and
2,857 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Build & Publish NuGet to GitHub Registry | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
Version: ${{ steps.gitversion.outputs.SemVer }} | ||
CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 #fetch-depth is needed for GitVersion | ||
|
||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/setup@v0.10.2 | ||
with: | ||
versionSpec: 5.x | ||
|
||
- name: Determine Version | ||
uses: gittools/actions/gitversion/execute@v0.10.2 | ||
id: gitversion # step id used as reference for output values | ||
|
||
- name: Display GitVersion outputs | ||
run: | | ||
echo "Version: ${{ steps.gitversion.outputs.SemVer }}" | ||
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}" | ||
# Build/pack the project | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3.2.0 | ||
with: | ||
dotnet-version: 9.0.x | ||
|
||
- name: Build and Pack NuGet package with versioning | ||
run: dotnet pack sdk/dotnet/src/Datastar.fsproj -p:Version='${{ steps.gitversion.outputs.SemVer }}' -c Release | ||
|
||
- name: Upload NuGet package to GitHub | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nugetPackage | ||
path: sdk/dotnet/src/bin/Release/*.nupkg | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
|
||
- name: Download nuget package artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: nugetPackage | ||
path: nugetPackage | ||
|
||
- name: Prep packages | ||
run: dotnet nuget add source --username starfederation --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/starfederation/index.json" | ||
|
||
- name: Push package to GitHub packages | ||
if: needs.build.outputs.CommitsSinceVersionSource > 0 # Only release if there has been a commit/version change | ||
run: dotnet nuget push nugetPackage/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate | ||
|
||
- name: Publish to NuGet.org | ||
if: needs.build.outputs.CommitsSinceVersionSource > 0 # Only release if there has been a commit/version change | ||
run: dotnet nuget push nugetPackage/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate | ||
|
||
- name: Create Release | ||
if: needs.build.outputs.CommitsSinceVersionSource > 0 # Only release if there has been a commit/version change | ||
uses: ncipollo/release-action@v1.13.0 | ||
with: | ||
tag: ${{ needs.build.outputs.Version }} | ||
name: Release ${{ needs.build.outputs.Version }} | ||
artifacts: "nugetPackage/*" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ node_modules | |
datastar-website | ||
*_bin | ||
.DS_Store | ||
*.qtpl.go | ||
*.qtpl.go | ||
*/java/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
# WIP Release Notes for Datastar | ||
|
||
## v0.21.4 | ||
## v1.0.0-beta.1 | ||
|
||
Happy new 2025! We’ve tied up loose ends, made all final breaking changes to the API, and after a grueling couple of months we’re delighted to release Datastar v1.0.0-beta.1 🚀 | ||
|
||
After stabilising how nested signals work and living with the signal suffix `.value` for a while, we realised that it wasn’t as ergonomic as we wanted. So, honing our regex fu, we managed to switch (back) to a `$` prefix for signals and a `@` prefix for actions. | ||
|
||
The symbols add Datastar specific namespacing – `$` for a $ignal, `@` for an @ction – so it’s immediately obvious what you’re working with, and you end up with much fewer characters to read and write!! | ||
|
||
### Added | ||
|
||
- Added a `contentType` option to the `sse()` action that, when set to `form`, submits the closest form element, or one specified using the `selector` option ([#400](https://github.com/starfederation/datastar/issues/400)). | ||
- Added a `retryInterval` option to the `sse()` action, defaulting to 1 second ([#393](https://github.com/starfederation/datastar/issues/393)). | ||
- Added the version number in a comment at the top of bundled files ([#401](https://github.com/starfederation/datastar/issues/401)). | ||
- Added the `data-custom-validity` attribute ([#410](https://github.com/starfederation/datastar/issues/410)). | ||
|
||
### Changed | ||
|
||
- The `data-on-submit` event listener now prevents the default submission behavior of forms. | ||
- Signals now have a `$` prefix (again) instead of a `.value` suffix (the regex search and replace from `(\w+(\.\w+)*)\.value` to `\$$1` may be helpful when updating your code). | ||
- Actions now have a `@` prefix (again) instead of no suffix. | ||
- Changed the `data-attributes` attribute to `data-attr` ([#422](https://github.com/starfederation/datastar/issues/422)). | ||
- Changed TypeScript import paths back to relative paths, so that no config is required in the build step. | ||
|
||
### Fixed | ||
|
||
- Fixed a bug in which local signals were being unintentionally sent with requests ([#387](https://github.com/starfederation/datastar/issues/387)). | ||
- Fixed a bug in which the bundler was not exporting Datastar ([#403](https://github.com/starfederation/datastar/issues/403)). | ||
- Fixed a bug in which the persist plugin was not maintain values if the values were signals ([#403](https://github.com/starfederation/datastar/issues/413)). | ||
- Fixed the `__outside` modifier so that elements contained within it are ignored ([#425](https://github.com/starfederation/datastar/issues/425)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.21.4 | ||
1.0.0-beta.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.