aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
AgeCommit message (Collapse)Author
3 daysjs/esbuild: Don't try to resolve packages in /assets marked as externalBjørn Erik Pedersen
Fixes #13183
8 daysjs/esbuild: Add missing es2024 targetBjørn Erik Pedersen
9 daysFix panic on server rebuilds when using both base templates and template.DeferBjørn Erik Pedersen
Fixes #12963
9 daysjs: Fix js.Batch for multihost setupsBjørn Erik Pedersen
Note that this is an unreleased feature. Fixes #13151
9 daysFix a rebuild on resource rename caseBjørn Erik Pedersen
9 daysjs/esbuild: Add runners after scriptsBjørn Erik Pedersen
9 daysjs/esbuild: Batch: Avoid nil Instances sliceBjørn Erik Pedersen
Ranging over a nil slice in Go works great, but is a hassle onced passed to JS.
12 daysjs/esbuild: Build groups in order of their IDBjørn Erik Pedersen
We already do this for scripts e.g. inside a group. This makes sure that group A's entry points gets added before B's, which can be an important property, see https://github.com/evanw/esbuild/issues/399#issuecomment-1458680887
13 daysjs/esbuild: Add platform optionBjørn Erik Pedersen
Closes #13136
13 daysAdd js.BatchBjørn Erik Pedersen
Fixes #12626 Closes #7499 Closes #9978 Closes #12879 Closes #13113 Fixes #13116
2024-09-12internal/warpc: Improve the JS plugin APIBjørn Erik Pedersen
* Move the error handling into commons and make sure the error returned also returns message errors * Make the protocol version an int so it can be more easily compared
2024-08-12internal/warpc: Add license headersBjørn Erik Pedersen
2024-08-12Improve Katex error handling and fix handling of large expressionsBjørn Erik Pedersen
* Make throwOnError=true the new default * Handle JS errors as part of the RPC request/response flow * Return a new Result type with .Err on it This enables constructs on the form: ```handlebars {{ with transform.ToMath "c = \\foo{a^2 + b^2}" }} {{ with .Err }} {{ warnf "error: %s" . }} {{ else }} {{ . }} {{ end }} {{ end }} ``` Note that the new `Result` type behaves like `template.HTML` (or a string if needed) when printed, but it will panic if in a error state. Closes #12748
2024-08-11Add katex option ThrowOnErrorBjørn Erik Pedersen
As an internal option for now. Katex misbehaves in error situations without a value set.
2024-08-11Add some more KaTeX optionsBjørn Erik Pedersen
And fix the options handling. Closes #12745 Fixes #12746
2024-08-09Add build time math renderingBjørn Erik Pedersen
While very useful on its own (and combined with the passthrough render hooks), this also serves as a proof of concept of using WASI (WebAssembly System Interface) modules in Hugo. This will be marked _experimental_ in the documentation. Not because it will be removed or changed in a dramatic way, but we need to think a little more how to best set up/configure similar services, define where these WASM files gets stored, maybe we can allow user provided WASM files plugins via Hugo Modules mounts etc. See these issues for more context: * https://github.com/gohugoio/hugo/issues/12736 * https://github.com/gohugoio/hugo/issues/12737 See #11927