Skip to content

v5.0.0

  • v5.0.0
  • 222d3d0
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • v5.0.0
  • 222d3d0
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@SimonAlling SimonAlling tagged this 31 Jul 20:14
This release renames the `build` and `lib` export paths to `build-time` and `run-time`, respectively (#104).

## Migration guide

You need to adapt your imports like this:

  * ```diff
    -import … from "userscripter/build";
    +import … from "userscripter/build-time";
    ```

  * ```diff
    -import … from "userscripter/lib/foo";
    +import … from "userscripter/run-time/foo";
    ```

This command should accomplish that in a typical Git-tracked userscript:

```bash
for f in $(git ls-files "$(git rev-parse --show-toplevel)"); do
  sed -i 's#userscripter/build#userscripter/build-time#g' $f
  sed -i 's#userscripter/lib#userscripter/run-time#g' $f
done
```
Assets 2
Loading