Split text into semantic chunks, up to a desired chunk size. Supports calculating length by characters and tokens, and is callable from Rust and Python.
MIT License
245
stars
15
forks
source link
Bump the minor group in /docs with 26 updates #311
#11584a65ffe3 Thanks @bholmesdev! - Removes async local storage dependency from Astro Actions. This allows Actions to run in Cloudflare and Stackblitz without opt-in flags or other configuration.
This also introduces a new convention for calling actions from server code. Instead of calling actions directly, you must wrap function calls with the new Astro.callAction() utility.
callAction() is meant to trigger an action from server code. getActionResult() usage with form submissions remains unchanged.
---
import { actions } from 'astro:actions';
const result = await Astro.callAction(actions.searchPosts, {
searchTerm: Astro.url.searchParams.get('search'),
});
{
result.data &&
{
/* render the results */
}
}
Migration
If you call actions directly from server code, update function calls to use the Astro.callAction() wrapper for pages and context.callAction() for endpoints:
---
import { actions } from 'astro:actions';
const result = await actions.searchPosts({ searchTerm: 'test' });
const result = await Astro.callAction(actions.searchPosts, { searchTerm: 'test' });
#11584a65ffe3 Thanks @bholmesdev! - Removes async local storage dependency from Astro Actions. This allows Actions to run in Cloudflare and Stackblitz without opt-in flags or other configuration.
This also introduces a new convention for calling actions from server code. Instead of calling actions directly, you must wrap function calls with the new Astro.callAction() utility.
callAction() is meant to trigger an action from server code. getActionResult() usage with form submissions remains unchanged.
---
import { actions } from 'astro:actions';
const result = await Astro.callAction(actions.searchPosts, {
searchTerm: Astro.url.searchParams.get('search'),
});
{
result.data &&
{
/* render the results */
}
}
Migration
If you call actions directly from server code, update function calls to use the Astro.callAction() wrapper for pages and context.callAction() for endpoints:
---
import { actions } from 'astro:actions';
const result = await actions.searchPosts({ searchTerm: 'test' });
const result = await Astro.callAction(actions.searchPosts, { searchTerm: 'test' });
Bumps the minor group in /docs with 26 updates:
4.13.0
4.13.1
0.35.4
0.35.6
0.35.4
0.35.6
0.35.4
0.35.6
0.35.4
0.35.6
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
4.19.2
4.20.0
0.35.4
0.35.6
1.0.30001646
1.0.30001649
0.35.4
0.35.6
0.35.4
0.35.6
4.19.2
4.20.0
Updates
astro
from 4.13.0 to 4.13.1Release notes
Sourced from astro's releases.
... (truncated)
Changelog
Sourced from astro's changelog.
... (truncated)
Commits
2abbc28
[ci] release (#11590)d052428
[ci] format69d54b4
Remove more unused code (#11598)c2d6c1f
Remove unused code (#11592)ac72ed2
[ci] formata65ffe3
Actions: Remove async local storage dependency (#11584)2531abd
[ci] format2e9d183
fix: changelog formatting (#11589)Updates
@expressive-code/core
from 0.35.4 to 0.35.6Release notes
Sourced from
@expressive-code/core
's releases.Changelog
Sourced from
@expressive-code/core
's changelog.Commits
8acc2a0
[CI] Release (#233)a5673ec
[CI] Release (#232)Updates
@expressive-code/plugin-frames
from 0.35.4 to 0.35.6Release notes
Sourced from
@expressive-code/plugin-frames
's releases.Changelog
Sourced from
@expressive-code/plugin-frames
's changelog.Commits
8acc2a0
[CI] Release (#233)ffab5a5
Hide copy button when there is no JavaScript (#230)a5673ec
[CI] Release (#232)Updates
@expressive-code/plugin-shiki
from 0.35.4 to 0.35.6Release notes
Sourced from
@expressive-code/plugin-shiki
's releases.Changelog
Sourced from
@expressive-code/plugin-shiki
's changelog.Commits
8acc2a0
[CI] Release (#233)a5673ec
[CI] Release (#232)Updates
@expressive-code/plugin-text-markers
from 0.35.4 to 0.35.6Release notes
Sourced from
@expressive-code/plugin-text-markers
's releases.Changelog
Sourced from
@expressive-code/plugin-text-markers
's changelog.Commits
8acc2a0
[CI] Release (#233)a5673ec
[CI] Release (#232)Updates
@rollup/rollup-android-arm-eabi
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-android-arm-eabi
's releases.Changelog
Sourced from
@rollup/rollup-android-arm-eabi
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-android-arm64
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-android-arm64
's releases.Changelog
Sourced from
@rollup/rollup-android-arm64
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-darwin-arm64
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-darwin-arm64
's releases.Changelog
Sourced from
@rollup/rollup-darwin-arm64
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-darwin-x64
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-darwin-x64
's releases.Changelog
Sourced from
@rollup/rollup-darwin-x64
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-arm-gnueabihf
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-arm-gnueabihf
's releases.Changelog
Sourced from
@rollup/rollup-linux-arm-gnueabihf
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-arm-musleabihf
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-arm-musleabihf
's releases.Changelog
Sourced from
@rollup/rollup-linux-arm-musleabihf
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-arm64-gnu
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-arm64-gnu
's releases.Changelog
Sourced from
@rollup/rollup-linux-arm64-gnu
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-arm64-musl
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-arm64-musl
's releases.Changelog
Sourced from
@rollup/rollup-linux-arm64-musl
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-powerpc64le-gnu
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-powerpc64le-gnu
's releases.Changelog
Sourced from
@rollup/rollup-linux-powerpc64le-gnu
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-riscv64-gnu
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-riscv64-gnu
's releases.Changelog
Sourced from
@rollup/rollup-linux-riscv64-gnu
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-s390x-gnu
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-s390x-gnu
's releases.Changelog
Sourced from
@rollup/rollup-linux-s390x-gnu
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-x64-gnu
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-x64-gnu
's releases.Changelog
Sourced from
@rollup/rollup-linux-x64-gnu
's changelog.Commits
df12edf
4.20.032e8d5b
Add originalFIleName property to emitted assets (#5596)1b4d142
chore(deps): update dependency eslint-plugin-unicorn to v55 (#5599)060021e
chore(deps): lock file maintenance minor/patch updates (#5600)Updates
@rollup/rollup-linux-x64-musl
from 4.19.2 to 4.20.0Release notes
Sourced from
@rollup/rollup-linux-x64-musl
's releases.Changelog
Sourced from
@rollup/rollup-linux-x64-musl
's changelog.