objs-core 2.4.0 → 2.4.1

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
@@ -27,6 +27,11 @@
27
27
 
28
28
  ---
29
29
 
30
+ ### Update v2.4.1: distribution bundles
31
+
32
+ - **ESM (`objs.built.js` / `objs.built.min.js`)** — `import` or `<script type="module">`. The minified ESM build keeps the public name **`o`** so `export` / `window.o` stay valid (identifier mangling is off for that file).
33
+ - **Classic script (`objs.global.js` / `objs.global.min.js`)** — IIFE + `window.o`, no `export`. Use a normal `<script src="…">` when you cannot use `type="module"`.
34
+
30
35
  ### Update v2.4: Chrome extension + native WebSocket replay
31
36
 
32
37
  - **Strict record / replay** — `o.startRecording({ … strictCaptureAssertions?, strictCaptureNetwork?, strictCaptureWebSocket? })` stores **`strictCapture`** on the recording; **`o.playRecording`** accepts **`strictPlay`** and per-feature **`strictAssertions`**, **`strictNetwork`**, **`strictWebSocket`**, **`strictRemoved`** (see README “Recording and export”). The extension **Recording settings** accordion includes matching toggles for JSON replay.
@@ -42,17 +47,23 @@
42
47
 
43
48
  **Browser** — source with test tools:
44
49
  ```html
45
- <script src="objs.js" type="text/javascript"></script>
50
+ <script src="objs.js"></script>
51
+ ```
52
+
53
+ **Browser — classic script, minified (global `window.o`, no module):**
54
+ ```html
55
+ <script src="objs.global.min.js"></script>
46
56
  ```
47
57
 
48
- **Browser (smaller)** minified `objs.built.min.js` for production. Use `type="module"`:
58
+ **Browser — ESM + optional global** (`import` bindings; in a browser the bundle also sets `window.o` when `window` exists):
49
59
  ```html
50
- <script src="objs.min.js" type="module"></script>
60
+ <script type="module" src="objs.built.min.js"></script>
51
61
  ```
62
+ Or from another module: `import o from './objs.built.min.js'` (path must match your server).
52
63
 
53
- **npm / bundler** — correct file chosen automatically via `package.json` exports:
64
+ **npm / bundler** — `package.json` `exports` point at `objs.built.js`:
54
65
  ```js
55
- import o from 'objs-core'; // resolves to objs.built.js
66
+ import o from 'objs-core';
56
67
  ```
57
68
 
58
69
  ```
@@ -470,7 +481,7 @@ No Playwright config to set up manually. No test IDs to maintain. The entire pip
470
481
 
471
482
  ### Dev/prod build split
472
483
 
473
- `objs.js` is the source for development or script tag. `objs.built.js` and `objs.built.min.js` are produced by `node build.js` (ESM + window.o). Only the debug flag is behind `__DEV__`.
484
+ `objs.js` is the source for development. Run `node build.js` to produce **`objs.built.js`** / **`objs.built.min.js`** (ESM, `export` + `window.o` in the browser) and **`objs.global.js`** / **`objs.global.min.js`** (classic IIFE, `window.o` only). Only the debug flag is behind `__DEV__`.
474
485
 
475
486
  The **recording pipeline** (`startRecording`, `stopRecording`, `exportTest`, `exportPlaywrightTest`, `reactQA`) ships in all builds so QA assessors can use it on staging.
476
487
 
@@ -1,7 +1,7 @@
1
1
  (function(){
2
2
  /**
3
3
  * @fileoverview Objs-core library
4
- * @version 2.4.0
4
+ * @version 2.4.1
5
5
  * @author Roman Torshin
6
6
  * @license Apache-2.0
7
7
  */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Objs Test Recorder",
4
- "version": "2.4.0",
4
+ "version": "2.4.1",
5
5
  "description": "Record and replay Objs browser tests (Objs 2.4). Package for your organization — not distributed on the public Chrome Web Store.",
6
6
  "permissions": ["storage", "scripting", "activeTab", "tabs"],
7
7
  "host_permissions": ["<all_urls>"],
package/objs.built.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @fileoverview Objs-core library
3
- * @version 2.4.0
3
+ * @version 2.4.1
4
4
  * @author Roman Torshin
5
5
  * @license Apache-2.0
6
6
  */