@lydianpay/sdk-web 1.1.6 → 2.0.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.
package/README.md CHANGED
@@ -33,13 +33,20 @@ import '@lydianpay/sdk-web';
33
33
  ```html
34
34
  <script
35
35
  type="module"
36
- src="https://cdn.jsdelivr.net/npm/@lydianpay/sdk-web@1.0.0/dist/lydian.iife.js"
36
+ src="https://cdn.jsdelivr.net/npm/@lydianpay/sdk-web@2.0.0/dist/lydian.js"
37
37
  ></script>
38
38
  ```
39
39
 
40
- Pin a version (e.g. `@1.0.0`) in production so an upstream release can't change
40
+ Pin a version (e.g. `@2.0.0`) in production so an upstream release can't change
41
41
  your checkout unexpectedly.
42
42
 
43
+ Since v2 the SDK ships as ES modules only: the entry registers
44
+ `window.Lydian` and `<lydian-checkout>` exactly as before, and the heavy
45
+ wallet SDKs load as separate chunks only when a customer picks that wallet
46
+ (the CDN serves the chunks alongside the entry). The v1 single-file bundle
47
+ (`dist/lydian.iife.js`) no longer exists — if you are upgrading a script tag
48
+ from v1, change the file name to `lydian.js` and keep `type="module"`.
49
+
43
50
  ## Quick start
44
51
 
45
52
  Place the checkout element where you want the UI, then initialize the SDK: