shipeasy-sdk 3.7.0 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c492371b226e15657ecdbdafdab11e79cd512d4f46ae412af3b000a203c0f3ec
4
- data.tar.gz: a10503e08343510e5b12ebb3c23e9cdc19f05cb5781edb5fac381d7c98f8bc78
3
+ metadata.gz: 25b1e68d67854fc5f617f3a2c67dfec725919b3942b3871cfb3f3c3b59b4dc96
4
+ data.tar.gz: b003f4d035e6aee250c8745e40c04a36608f8465d5f6d6a150182ad86574290b
5
5
  SHA512:
6
- metadata.gz: 8df684d6629ee574b6e20bbac97c1409b56c00892c739357b980f298203cc7dc7fe1b34bce3f5758e983354c19124a648f1078f4e27bdcc9e383cef5aba5706c
7
- data.tar.gz: ca4ff0fcfceca63eaad68696f5e19168b07ca559530adb42747ec9f1138d12750e694b40025094ec0b97952b73bb6dd1d784dc94a3f0669b538693260ed9cf97
6
+ metadata.gz: 932191ab9c4bb0864168aaec1da459a3896c08dac9bab58bfbbbb45a9caa399e53733f71ed9669bc0402bd443e810e8807b19860b78c4f34673f0e22e8a02f12
7
+ data.tar.gz: f5c66c2b1c4a6eb33a6337b9981b0e196f363145f691c9bcf71c204fe728e487c66ade3230e72eea1e8da02c651ee6b4c2ed3d14e0133c1e1868c8049f44d049
@@ -32,7 +32,7 @@ module Shipeasy
32
32
  See = Shipeasy::SDK::See
33
33
 
34
34
  DEFAULT_BASE_URL = "https://api.shipeasy.ai"
35
- # CDN origin serving the static loader scripts (/sdk/bootstrap.js,
35
+ # CDN origin serving the static loader scripts (/sdk/runtime.js,
36
36
  # /sdk/i18n/loader.js) — distinct from the edge API the blobs are fetched from.
37
37
  DEFAULT_CDN_BASE = "https://cdn.shipeasy.ai"
38
38
 
@@ -470,8 +470,9 @@ module Shipeasy
470
470
  end
471
471
 
472
472
  # Return the cross-platform SSR bootstrap <script> tag for a request:
473
- # se-bootstrap.js reads its data-* attributes and hydrates
474
- # window.__SE_BOOTSTRAP (and writes the anon cookie). No key is embedded.
473
+ # /sdk/runtime.js reads its data-* attributes, installs window.shipeasy,
474
+ # republishes window.__SE_BOOTSTRAP for the npm client SDK and writes the
475
+ # anon cookie. No key is embedded.
475
476
  #
476
477
  # Every argument is OPTIONAL and falls back to `Shipeasy.configure`:
477
478
  # `user` to an anonymous request, `i18n_profile:` to `config.profile`,
@@ -483,6 +484,7 @@ module Shipeasy
483
484
  base = cdn_base(base_url || Shipeasy.config.cdn_base_url)
484
485
  attrs = [
485
486
  "data-se-bootstrap",
487
+ "data-se-boot",
486
488
  attr("data-flags", JSON.generate(payload["flags"])),
487
489
  attr("data-configs", JSON.generate(payload["configs"])),
488
490
  attr("data-experiments", JSON.generate(payload["experiments"])),
@@ -493,7 +495,7 @@ module Shipeasy
493
495
  attrs << attr("data-anon-id", anon_id) if anon_id && !anon_id.empty?
494
496
  data_user = identity_attrs(user)
495
497
  attrs << attr("data-user", data_user) if data_user
496
- html %(<script src="#{CGI.escapeHTML("#{base}/sdk/bootstrap.js")}" #{attrs.join(' ')}></script>)
498
+ html %(<script src="#{CGI.escapeHTML("#{base}/sdk/runtime.js")}" #{attrs.join(' ')}></script>)
497
499
  end
498
500
 
499
501
  # Return the i18n loader <script> tag (framework-agnostic; the Rails view
@@ -1,5 +1,5 @@
1
1
  module Shipeasy
2
2
  module SDK
3
- VERSION = "3.7.0"
3
+ VERSION = "3.8.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipeasy-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shipeasy, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-26 00:00:00.000000000 Z
11
+ date: 2026-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec