Skip to content

Commit

Permalink
fix: semver comparison (#216)
Browse files Browse the repository at this point in the history
* fix: semver comparison

chore: bump dependencies

* chore: add changeset

* fix: update snapshot for error test
  • Loading branch information
Cherry committed Dec 13, 2023
1 parent 65996a5 commit 9aba9c3
Show file tree
Hide file tree
Showing 5 changed files with 1,116 additions and 602 deletions.
9 changes: 9 additions & 0 deletions .changeset/weak-lobsters-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"wrangler-action": patch
---

Fixes issues with semver comparison, where version parts were treated lexicographically instead of numerically.

Bulk secret uploading was introduced in wrangler `3.4.0`, and this action tries to check if the version used is greater than `3.4.0`, and then if so, using the new bulk secret API which is faster. Due to a bug in the semver comparison, `3.19.0` was being considered less than `3.4.0`, and then using an older and slower method for uploading secrets.

Now the semver comparison is fixed, the faster bulk method is used for uploading secrets when available.
Loading

0 comments on commit 9aba9c3

Please sign in to comment.