Skip to content

Commit

Permalink
feat(loader): Make js loader v9 available from backend (#85135)
Browse files Browse the repository at this point in the history
Makes the v9 SDK selectable in the loader. Doesn't yet set the default
version to v9.

Should only be merged when
#85136 is deployed.
  • Loading branch information
lforst authored Feb 14, 2025
1 parent 34bd16d commit 03c8a83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sentry/loader/browsersdkversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_highest_browser_sdk_version(versions):


def get_all_browser_sdk_version_versions():
return ["latest", "8.x", "7.x", "6.x", "5.x", "4.x"]
return ["latest", "9.x", "8.x", "7.x", "6.x", "5.x", "4.x"]


def get_all_browser_sdk_version_choices():
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/projectoptions/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
# version is set on a project's DSN.
register(
key="sentry:default_loader_version",
# TODO(lforst): Make v9 loader default
epoch_defaults={1: "4.x", 2: "5.x", 7: "6.x", 8: "7.x", 13: "8.x"},
)

Expand Down Expand Up @@ -183,7 +184,7 @@
# The available loader SDK versions
register(
key="sentry:loader_available_sdk_versions",
epoch_defaults={1: ["8.x", "7.x", "6.x", "5.x", "4.x"], 11: ["8.x", "7.x"]},
epoch_defaults={1: ["9.x", "8.x", "7.x", "6.x", "5.x", "4.x"], 11: ["9.x", "8.x", "7.x"]},
)

# Dynamic sampling rate in project-level "manual" configuration mode
Expand Down

0 comments on commit 03c8a83

Please sign in to comment.