test-mixer 4.3.0 → 4.3.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/CHANGELOG.md +7 -1
- package/dist/test-mixer.esm.js +2 -2
- package/dist/test-mixer.umd.js +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 4.3.1 (2026-08-22)
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
- optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
|
|
11
|
+
|
|
6
12
|
## 4.3.0 (2026-08-19)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
9
15
|
|
|
10
16
|
- preserve cloned defaults in generated test cases ([a669289](https://github.com/codsen/codsen/commit/a6692895cbfee4eeb6e0460cc99a7e8e8cf1119a))
|
|
11
|
-
- resolve review findings
|
|
17
|
+
- resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
|
|
12
18
|
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
|
|
13
19
|
|
|
14
20
|
### Features
|
package/dist/test-mixer.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 4.3.
|
|
4
|
+
* @version 4.3.1
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{deepClone as c}from"codsen-utils";import{combinations as m}from"object-boolean-combinations";var i="4.3.
|
|
10
|
+
import{deepClone as c}from"codsen-utils";import{combinations as m}from"object-boolean-combinations";var i="4.3.1";var f=i;function y(t={},o={}){if(t&&typeof t!="object")throw new Error("test-mixer/mixer(): [THROW_ID_01] the first input arg is missing!");if(o&&typeof o!="object")throw new Error("test-mixer/mixer(): [THROW_ID_02] the second input arg is missing!");let n;if(typeof t=="object"&&typeof o=="object"&&Object.keys(t).filter(e=>typeof t[e]=="boolean").some(e=>l.call(o,e)?!1:(n=e,!0)))throw new Error(`test-mixer/mixer(): [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${n}" which 2nd input arg object doesn't have.`);if(!Object.keys(o).length)return[];let p=c(t),s=c(o),r={};return Object.keys(o).forEach(e=>{typeof s[e]=="boolean"&&!l.call(t,e)&&(r[e]=s[e])}),m(r).map(e=>({...s,...p,...e}))}var l=Object.prototype.hasOwnProperty;export{y as mixer,f as version};
|
package/dist/test-mixer.umd.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 4.3.
|
|
4
|
+
* @version 4.3.1
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var testMixer=(()=>{var g=Object.defineProperty;var
|
|
10
|
+
"use strict";var testMixer=(()=>{var g=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var y=(e,t,r)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t)=>{for(var r in t||(t={}))j.call(t,r)&&y(e,r,t[r]);if(A)for(var r of A(t))W.call(t,r)&&y(e,r,t[r]);return e};var R=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},E=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $(t))!j.call(e,i)&&i!==r&&g(e,i,{get:()=>t[i],enumerable:!(s=D(t,i))||s.enumerable});return e};var B=e=>E(g({},"__esModule",{value:!0}),e);var h=(e,t,r)=>y(e,typeof t!="symbol"?t+"":t,r);var U={};R(U,{mixer:()=>L,version:()=>T});var N=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);var I=class{constructor(){h(this,"hasRepeatedReferences",!1);h(this,"clones",[]);h(this,"index");h(this,"sources",[])}get(e){if(this.index){let r=this.index.get(e);return r!==void 0&&(this.hasRepeatedReferences=!0),r}let t=this.sources.indexOf(e);if(t!==-1)return this.hasRepeatedReferences=!0,this.clones[t]}set(e,t){if(this.index){this.index.set(e,t);return}if(this.sources.push(e),this.clones.push(t),this.sources.length===32){this.index=new WeakMap;for(let r=0;r<this.sources.length;r++)this.index.set(this.sources[r],this.clones[r]);this.sources=[],this.clones=[]}}};function x(e,t){let r=t.get(e);if(r!==void 0)return r;let s=e.slice(0);return t.set(e,s),s}function P(e,t){if(typeof Buffer<"u"&&Buffer.isBuffer(e)){let n=Buffer.from(e);return t.set(e,n),n}let r=x(e.buffer,t);if(e instanceof DataView){let n=new DataView(r,e.byteOffset,e.byteLength);return t.set(e,n),n}let s=e.constructor,i=new s(r,e.byteOffset,e.length);return t.set(e,i),i}function v(e,t,r,s){for(let i of r){let n=t[i];e[i]=typeof n!="object"||n===null?n:p(n,s)}}function p(e,t){if(typeof e!="object"||e===null)return e;let r=t.get(e);if(r!==void 0)return r;if(Array.isArray(e)){let n=e.length,l=new Array(n);t.set(e,l);let o=e,c=Object.keys(e);if(c.length===n&&(n===0||c[n-1]==="".concat(n-1)))for(let a=0;a<n;a++){let u=o[a];l[a]=typeof u!="object"||u===null?u:p(u,t)}else v(l,o,c,t);return l}let s=Object.getPrototypeOf(e);if(s===Object.prototype||s===null){let n={};return t.set(e,n),v(n,e,Object.keys(e),t),n}if(e instanceof Date){let n=new Date(e.getTime());return t.set(e,n),n}if(ArrayBuffer.isView(e))return P(e,t);if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return x(e,t);if(e instanceof Map){let n=new Map;t.set(e,n);for(let[l,o]of e)n.set(p(l,t),p(o,t));return n}if(e instanceof Set){let n=new Set;t.set(e,n);for(let l of e)n.add(p(l,t));return n}let i={};return t.set(e,i),v(i,e,Object.keys(e),t),i}function d(e){return p(e,new I)}function w(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}var O,V=(O=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:O.get;var F=Date.prototype.getTime;function C(e,t={}){if(!e)throw new Error("object-boolean-combinations/combinations(): [THROW_ID_01] missing input object");if(!w(e))throw new Error("object-boolean-combinations/combinations(): [THROW_ID_02] the first input object must be a plain object");if(t&&!w(t))throw new Error("object-boolean-combinations/combinations(): [THROW_ID_03] the second override object must be a plain object");let r=Object.keys(e),s=new Set(r),i=Object.keys(t).filter(u=>s.has(u)),n=new Set(i),l=r.filter(u=>!n.has(u)),o=i.length?d(t):null,c=2**l.length,a=new Array(c);for(let u=0;u<c;u++){let m={};for(let f=0;f<l.length;f++)m[l[f]]=(u&1<<f)!==0;if(o)for(let f of i)m[f]=o[f];a[u]=m}return a}var S="4.3.1";var T=S;function L(e={},t={}){if(e&&typeof e!="object")throw new Error("test-mixer/mixer(): [THROW_ID_01] the first input arg is missing!");if(t&&typeof t!="object")throw new Error("test-mixer/mixer(): [THROW_ID_02] the second input arg is missing!");let r;if(typeof e=="object"&&typeof t=="object"&&Object.keys(e).filter(o=>typeof e[o]=="boolean").some(o=>k.call(t,o)?!1:(r=o,!0)))throw new Error('test-mixer/mixer(): [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "'.concat(r,"\" which 2nd input arg object doesn't have."));if(!Object.keys(t).length)return[];let s=d(e),i=d(t),n={};return Object.keys(t).forEach(o=>{typeof i[o]=="boolean"&&!k.call(e,o)&&(n[o]=i[o])}),C(n).map(o=>b(b(b({},i),s),o))}var k=Object.prototype.hasOwnProperty;return B(U);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-utils
|
|
13
13
|
* @fileoverview Various utility functions
|
|
14
|
-
* @version 1.
|
|
14
|
+
* @version 1.9.0
|
|
15
15
|
* @author Roy Revelt
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/codsen-utils/}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/**
|
|
20
20
|
* @name object-boolean-combinations
|
|
21
21
|
* @fileoverview Consumes a defaults object with booleans, generates all possible variations of it
|
|
22
|
-
* @version 6.3.
|
|
22
|
+
* @version 6.3.1
|
|
23
23
|
* @author Roy Revelt
|
|
24
24
|
* @license MIT
|
|
25
25
|
* {@link https://codsen.com/os/object-boolean-combinations/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-mixer",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "Test helper to generate function opts object variations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"combinations",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"codsen-utils": "^1.
|
|
71
|
-
"object-boolean-combinations": "^6.3.
|
|
70
|
+
"codsen-utils": "^1.9.0",
|
|
71
|
+
"object-boolean-combinations": "^6.3.1"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=18.20.8"
|