Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk-source.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"sourceMode": "local-repo",
"version": "0.3.0"
"version": "0.4.1"
}
662 changes: 435 additions & 227 deletions shimmer-extension/vendor/shimmer-web-sdk.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shimmer-extension/vendor/shimmer-web-sdk.cjs.map

Large diffs are not rendered by default.

203 changes: 188 additions & 15 deletions shimmer-extension/vendor/shimmer-web-sdk.d.ts

Large diffs are not rendered by default.

659 changes: 431 additions & 228 deletions shimmer-extension/vendor/shimmer-web-sdk.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shimmer-extension/vendor/shimmer-web-sdk.esm.js.map

Large diffs are not rendered by default.

662 changes: 435 additions & 227 deletions shimmer-extension/vendor/shimmer-web-sdk.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shimmer-extension/vendor/shimmer-web-sdk.umd.js.map

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions sync-local-sdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,26 @@ foreach ($name in $files) {
}
}

# In local-repo mode the version field is provenance output, not input: stamp
# the built SDK's package.json version back into sdk-source.json so the file
# cannot claim a version the vendored bundles are not. It said 0.3.0 while
# vendor/ held a 0.4.x build, because this script read sdk-source.json for its
# sourceMode and never wrote it back - though AGENTS.md here and in the SDK
# both say the sync scripts stamp it. verisense-device-console's copy of this
# script has always stamped; this is that block, ported.
# (In local-version mode the field is the user's selector, so it is left alone;
# local-latest builds a tag that may not match the working copy's package.json,
# so it is not stamped either.)
if ($sourceMode -eq "local-repo") {
$sdkPackageJson = Get-Content (Join-Path $sdkRoot "package.json") -Raw | ConvertFrom-Json
$sdkVersion = $sdkPackageJson.version
if ($sdkVersion -and $sourceConfig.version -ne $sdkVersion) {
$sourceConfig | Add-Member -NotePropertyName version -NotePropertyValue $sdkVersion -Force
$json = ($sourceConfig | ConvertTo-Json) -replace '": ', '": ' -replace "`r`n", "`n"
[System.IO.File]::WriteAllText($sdkSourceConfigPath, $json + "`n", (New-Object System.Text.UTF8Encoding($false)))
Write-Host "Stamped sdk-source.json version: $sdkVersion"
}
}

$targetList = $vendorTargets -join ", "
Write-Host "Synced SDK artifacts from '$distDir' to [$targetList] (sourceMode=$sourceMode)."
662 changes: 435 additions & 227 deletions vendor/shimmer-web-sdk.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/shimmer-web-sdk.cjs.map

Large diffs are not rendered by default.

203 changes: 188 additions & 15 deletions vendor/shimmer-web-sdk.d.ts

Large diffs are not rendered by default.

659 changes: 431 additions & 228 deletions vendor/shimmer-web-sdk.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/shimmer-web-sdk.esm.js.map

Large diffs are not rendered by default.

662 changes: 435 additions & 227 deletions vendor/shimmer-web-sdk.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/shimmer-web-sdk.umd.js.map

Large diffs are not rendered by default.

Loading