Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: v5.0.0 #153

Merged
merged 1 commit into from
Jul 31, 2024
Merged

chore: v5.0.0 #153

merged 1 commit into from
Jul 31, 2024

Conversation

SimonAlling
Copy link
Owner

@SimonAlling SimonAlling commented Jul 31, 2024

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:

  • -import … from "userscripter/build";
    +import … from "userscripter/build-time";
  • -import … from "userscripter/lib/foo";
    +import … from "userscripter/run-time/foo";

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

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

@SimonAlling SimonAlling marked this pull request as ready for review July 31, 2024 20:12
@SimonAlling SimonAlling merged commit 222d3d0 into master Jul 31, 2024
4 of 7 checks passed
@SimonAlling SimonAlling deleted the v5.0.0 branch July 31, 2024 20:14
SimonAlling added a commit that referenced this pull request Jul 31, 2024
I used the command suggested in #153 to adapt the source code.

💡 `git show --color-words='build-time|(\w|\+|=)+|.'`
SimonAlling added a commit to SimonAlling/example-userscript that referenced this pull request Jul 31, 2024
I used this command to adapt the source code, as suggested in SimonAlling/userscripter#153:

```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
```

💡 `git show --color-words='build-time|(\w|\+|=)+|.'`
SimonAlling added a commit to SimonAlling/better-sweclockers that referenced this pull request Jul 31, 2024
I used this command to adapt the source code, as suggested in SimonAlling/userscripter#153:

```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
```

💡 `git show --color-words='build-time|(\w|\+|=)+|.'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant