test-mixer 4.2.0 → 4.3.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/CHANGELOG.md CHANGED
@@ -3,11 +3,23 @@
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.2.0 (2025-10-15)
6
+ ## 4.3.0 (2026-08-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ - preserve cloned defaults in generated test cases ([a669289](https://github.com/codsen/codsen/commit/a6692895cbfee4eeb6e0460cc99a7e8e8cf1119a))
11
+ - resolve review findings REV-004 through REV-007 ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
12
+ - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
7
13
 
8
14
  ### Features
9
15
 
10
- - if value to be added is a number, keep it as is, don't stringify ([ce3e1a5](https://github.com/codsen/codsen/commit/ce3e1a525998ca3c0abf0142affef95b14cd1990))
16
+ - add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
17
+ - refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
18
+
19
+ ### Reverts
20
+
21
+ - Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
22
+ - Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
11
23
 
12
24
  ## 4.1.0 (2022-12-22)
13
25
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright © 2010-2025 Roy Revelt and other contributors
3
+ Copyright © 2010-2026 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -32,128 +32,28 @@ npm i test-mixer
32
32
  ## Quick Take
33
33
 
34
34
  ```js
35
- import { strict as assert } from "assert";
35
+ import { strict as assert } from "node:assert";
36
36
 
37
37
  import { mixer } from "test-mixer";
38
38
 
39
- // check all possible combinations of all boolean opts:
39
+ // Generate all possible combinations of boolean options.
40
40
  const defaultOpts = {
41
- scrapeWindshield: true,
42
- checkOil: true,
43
- inflateTires: false,
44
- extinguishersCount: 1, // as non-boolean will be ignored
41
+ enabled: true,
42
+ cached: false,
45
43
  };
46
44
 
47
- // generates 2^3 = 8 combinations all possible bools
48
- assert.deepEqual(
49
- mixer(
50
- {
51
- // empty first arg object means you want all combinations
52
- },
53
- defaultOpts,
54
- ),
55
- [
56
- {
57
- scrapeWindshield: false,
58
- checkOil: false,
59
- inflateTires: false,
60
- extinguishersCount: 1,
61
- },
62
- {
63
- scrapeWindshield: true,
64
- checkOil: false,
65
- inflateTires: false,
66
- extinguishersCount: 1,
67
- },
68
- {
69
- scrapeWindshield: false,
70
- checkOil: true,
71
- inflateTires: false,
72
- extinguishersCount: 1,
73
- },
74
- {
75
- scrapeWindshield: true,
76
- checkOil: true,
77
- inflateTires: false,
78
- extinguishersCount: 1,
79
- },
80
- {
81
- scrapeWindshield: false,
82
- checkOil: false,
83
- inflateTires: true,
84
- extinguishersCount: 1,
85
- },
86
- {
87
- scrapeWindshield: true,
88
- checkOil: false,
89
- inflateTires: true,
90
- extinguishersCount: 1,
91
- },
92
- {
93
- scrapeWindshield: false,
94
- checkOil: true,
95
- inflateTires: true,
96
- extinguishersCount: 1,
97
- },
98
- {
99
- scrapeWindshield: true,
100
- checkOil: true,
101
- inflateTires: true,
102
- extinguishersCount: 1,
103
- },
104
- ],
105
- );
106
-
107
- // let's "pin" a value, prepare two sets of options objects,
108
- // one where scrapeWindshield === true and another with "false"
109
-
110
- // you'll get 2 ^ (3-1) = 4 variations:
111
- const variationsWithScrapeWindshieldOn = mixer(
112
- {
113
- scrapeWindshield: true,
114
- },
115
- defaultOpts,
116
- );
117
- assert.deepEqual(variationsWithScrapeWindshieldOn, [
118
- {
119
- scrapeWindshield: true, // <--- pinned
120
- checkOil: false,
121
- inflateTires: false,
122
- extinguishersCount: 1,
123
- },
124
- {
125
- scrapeWindshield: true, // <--- pinned
126
- checkOil: true,
127
- inflateTires: false,
128
- extinguishersCount: 1,
129
- },
130
- {
131
- scrapeWindshield: true, // <--- pinned
132
- checkOil: false,
133
- inflateTires: true,
134
- extinguishersCount: 1,
135
- },
136
- {
137
- scrapeWindshield: true, // <--- pinned
138
- checkOil: true,
139
- inflateTires: true,
140
- extinguishersCount: 1,
141
- },
45
+ assert.deepEqual(mixer({}, defaultOpts), [
46
+ { enabled: false, cached: false },
47
+ { enabled: true, cached: false },
48
+ { enabled: false, cached: true },
49
+ { enabled: true, cached: true },
142
50
  ]);
143
-
144
- // also 4 variations, similar but with scrapeWindshield === false pinned:
145
- const variationsWithScrapeWindshieldOff = mixer(
146
- {
147
- scrapeWindshield: false,
148
- },
149
- defaultOpts,
150
- );
151
- assert.equal(variationsWithScrapeWindshieldOff.length, 4);
152
51
  ```
153
52
 
53
+
154
54
  ## Documentation
155
55
 
156
- Please [visit codsen.com](https://codsen.com/os/test-mixer/) for a full description of the API.
56
+ Please [visit codsen.com](https://codsen.com/os/test-mixer/) for a full description of the API. If you’re looking for the **Changelog**, it’s [here](https://github.com/codsen/codsen/blob/main/packages/test-mixer/CHANGELOG.md).
157
57
 
158
58
  ## Contributing
159
59
 
@@ -163,6 +63,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
163
63
 
164
64
  MIT License
165
65
 
166
- Copyright © 2010-2025 Roy Revelt and other contributors
66
+ Copyright © 2010-2026 Roy Revelt and other contributors
167
67
 
168
68
  <p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
@@ -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.2.0
4
+ * @version 4.3.0
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/test-mixer/}
8
8
  */
9
9
 
10
- import{combinations as u}from"object-boolean-combinations";import m from"rfdc";var i="4.2.0";var l=m(),f=i;function y(o={},t={}){if(o&&typeof o!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let s;if(typeof o=="object"&&typeof t=="object"&&Object.keys(o).filter(e=>typeof o[e]=="boolean").some(e=>Object.keys(t).includes(e)?!1:(s=e,!0)))throw new Error(`test-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 "${s}" which 2nd input arg object doesn't have.`);if(!Object.keys(t).length)return[];let c=l(o),n=l(t),r={};return Object.keys(t).forEach(e=>{typeof n[e]=="boolean"&&!Object.keys(o).includes(e)&&(r[e]=n[e])}),u(r).map(e=>({...t,...c,...e}))}export{y as mixer,f as version};
10
+ import{deepClone as c}from"codsen-utils";import{combinations as m}from"object-boolean-combinations";var i="4.3.0";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};
@@ -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.2.0
4
+ * @version 4.3.0
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 N=Object.create;var y=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,_=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var x=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,g=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&x(t,s,e[s]);if(A)for(var s of A(e))I.call(e,s)&&x(t,s,e[s]);return t};var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),L=(t,e)=>{for(var s in e)y(t,s,{get:e[s],enumerable:!0})},k=(t,e,s,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of H(e))!v.call(t,u)&&u!==s&&y(t,u,{get:()=>e[u],enumerable:!(f=V(e,u))||f.enumerable});return t};var O=(t,e,s)=>(s=t!=null?N(_(t)):{},k(e||!t||!t.__esModule?y(s,"default",{value:t,enumerable:!0}):s,t)),W=t=>k(y({},"__esModule",{value:!0}),t);var j=M((G,C)=>{"use strict";C.exports=F;function d(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function F(t){if(t=t||{},t.circles)return J(t);let e=new Map;if(e.set(Date,o=>new Date(o)),e.set(Map,(o,c)=>new Map(f(Array.from(o),c))),e.set(Set,(o,c)=>new Set(f(Array.from(o),c))),t.constructorHandlers)for(let o of t.constructorHandlers)e.set(o[0],o[1]);let s=null;return t.proto?p:u;function f(o,c){let r=Object.keys(o),n=new Array(r.length);for(let l=0;l<r.length;l++){let i=r[l],a=o[i];typeof a!="object"||a===null?n[i]=a:a.constructor!==Object&&(s=e.get(a.constructor))?n[i]=s(a,c):ArrayBuffer.isView(a)?n[i]=d(a):n[i]=c(a)}return n}function u(o){if(typeof o!="object"||o===null)return o;if(Array.isArray(o))return f(o,u);if(o.constructor!==Object&&(s=e.get(o.constructor)))return s(o,u);let c={};for(let r in o){if(Object.hasOwnProperty.call(o,r)===!1)continue;let n=o[r];typeof n!="object"||n===null?c[r]=n:n.constructor!==Object&&(s=e.get(n.constructor))?c[r]=s(n,u):ArrayBuffer.isView(n)?c[r]=d(n):c[r]=u(n)}return c}function p(o){if(typeof o!="object"||o===null)return o;if(Array.isArray(o))return f(o,p);if(o.constructor!==Object&&(s=e.get(o.constructor)))return s(o,p);let c={};for(let r in o){let n=o[r];typeof n!="object"||n===null?c[r]=n:n.constructor!==Object&&(s=e.get(n.constructor))?c[r]=s(n,p):ArrayBuffer.isView(n)?c[r]=d(n):c[r]=p(n)}return c}}function J(t){let e=[],s=[],f=new Map;if(f.set(Date,r=>new Date(r)),f.set(Map,(r,n)=>new Map(p(Array.from(r),n))),f.set(Set,(r,n)=>new Set(p(Array.from(r),n))),t.constructorHandlers)for(let r of t.constructorHandlers)f.set(r[0],r[1]);let u=null;return t.proto?c:o;function p(r,n){let l=Object.keys(r),i=new Array(l.length);for(let a=0;a<l.length;a++){let m=l[a],b=r[m];if(typeof b!="object"||b===null)i[m]=b;else if(b.constructor!==Object&&(u=f.get(b.constructor)))i[m]=u(b,n);else if(ArrayBuffer.isView(b))i[m]=d(b);else{let w=e.indexOf(b);w!==-1?i[m]=s[w]:i[m]=n(b)}}return i}function o(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return p(r,o);if(r.constructor!==Object&&(u=f.get(r.constructor)))return u(r,o);let n={};e.push(r),s.push(n);for(let l in r){if(Object.hasOwnProperty.call(r,l)===!1)continue;let i=r[l];if(typeof i!="object"||i===null)n[l]=i;else if(i.constructor!==Object&&(u=f.get(i.constructor)))n[l]=u(i,o);else if(ArrayBuffer.isView(i))n[l]=d(i);else{let a=e.indexOf(i);a!==-1?n[l]=s[a]:n[l]=o(i)}}return e.pop(),s.pop(),n}function c(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return p(r,c);if(r.constructor!==Object&&(u=f.get(r.constructor)))return u(r,c);let n={};e.push(r),s.push(n);for(let l in r){let i=r[l];if(typeof i!="object"||i===null)n[l]=i;else if(i.constructor!==Object&&(u=f.get(i.constructor)))n[l]=u(i,c);else if(ArrayBuffer.isView(i))n[l]=d(i);else{let a=e.indexOf(i);a!==-1?n[l]=s[a]:n[l]=c(i)}}return e.pop(),s.pop(),n}}});var Z={};L(Z,{mixer:()=>q,version:()=>U});var D=O(j(),1);var K=(0,D.default)();function h(t){if(t==null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null?!1:!(Symbol.iterator in t)&&!(Symbol.toStringTag in t)}function E(t=[],e=[]){return!t||!e?[]:Array.from(new Set(Array.from(t).filter(s=>new Set(e).has(s))))}var $=O(j(),1);var S=(0,$.default)();function B(t,e={}){function s(l){let i=[];for(let a=0;a<1<<l;a++){let m=[];for(let b=0;b<l;b++)m.push(a&1<<b?1:0);i.push(m)}return i}if(!t)throw new Error("[THROW_ID_01] missing input object");if(!h(t))throw new Error("[THROW_ID_02] the first input object must be a plain object");if(e&&!h(e))throw new Error("[THROW_ID_03] the second override object must be a plain object");let f=S(t),u=S(e),p=Object.keys(f),o=[],c=[];h(u)&&Object.keys(u).length&&(c=E(Object.keys(u),Object.keys(f)),p=p.filter(l=>!c.includes(l)));let r=s(Object.keys(p).length),n;return r.forEach((l,i)=>{n={},p.forEach((a,m)=>{n[a]=r[i][m]===1}),o.push(n)}),h(u)&&Object.keys(u).length&&o.forEach(l=>{c.forEach(i=>{l[i]=u[i]})}),o}var T=O(j(),1);var R="4.2.0";var P=(0,T.default)(),U=R;function q(t={},e={}){if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(e&&typeof e!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let s;if(typeof t=="object"&&typeof e=="object"&&Object.keys(t).filter(c=>typeof t[c]=="boolean").some(c=>Object.keys(e).includes(c)?!1:(s=c,!0)))throw new Error('test-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(s,"\" which 2nd input arg object doesn't have."));if(!Object.keys(e).length)return[];let f=P(t),u=P(e),p={};return Object.keys(e).forEach(c=>{typeof u[c]=="boolean"&&!Object.keys(t).includes(c)&&(p[c]=u[c])}),B(p).map(c=>g(g(g({},e),f),c))}return W(Z);})();
10
+ "use strict";var testMixer=(()=>{var g=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,D=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,m=(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))D.call(t,r)&&y(e,r,t[r]);return e};var W=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},R=(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=S(t,i))||s.enumerable});return e};var B=e=>R(g({},"__esModule",{value:!0}),e);var h=(e,t,r)=>y(e,typeof t!="symbol"?t+"":t,r);var L={};W(L,{mixer:()=>T,version:()=>P});var U=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 E=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 I(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 I(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 E)}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)}function O(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 b={};for(let f=0;f<l.length;f++)b[l[f]]=(u&1<<f)!==0;if(o)for(let f of i)b[f]=o[f];a[u]=b}return a}var C="4.3.0";var P=C;function T(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])}),O(n).map(o=>m(m(m({},i),s),o))}var k=Object.prototype.hasOwnProperty;return B(L);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
14
- * @version 1.7.0
14
+ * @version 1.8.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.2.0
22
+ * @version 6.3.0
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.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Test helper to generate function opts object variations",
5
5
  "keywords": [
6
6
  "combinations",
@@ -32,44 +32,46 @@
32
32
  },
33
33
  "types": "types/index.d.ts",
34
34
  "scripts": {
35
- "build": "node '../../ops/scripts/esbuild.js' && npm run dts",
36
- "cjs-off": "exit 0",
37
- "cjs-on": "exit 0",
38
- "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
35
+ "build": "node ../../ops/scripts/esbuild.js && npm run dts",
36
+ "coverage": "c8 uvu test",
37
+ "dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
39
38
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
40
- "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
39
+ "dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
41
40
  "examples": "node '../../ops/scripts/run-examples.js'",
42
- "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
43
- "letspublish": "npm publish --provenance || :",
44
- "lint": "eslint . --fix --concurrency=auto --cache",
41
+ "lect": "node '../../ops/lect/lect.js'",
42
+ "lect:check": "node '../../ops/lect/lect.js' --check",
43
+ "lint": "biome lint --error-on-warnings . && npm run typecheck",
44
+ "lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
45
45
  "perf": "node perf/check.js",
46
46
  "prep": "echo 'ready'",
47
- "prettier": "prettier",
48
- "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
49
- "pretest": "npm run lect && npm run build",
47
+ "prettier": "biome format",
48
+ "prettier:format": "biome format --write .",
49
+ "pretest": "npm run lect:check && npm run build",
50
50
  "test": "npm run devtest",
51
+ "typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
51
52
  "unit": "uvu test"
52
53
  },
53
- "engines": {
54
- "node": ">=14.18.0"
55
- },
56
54
  "c8": {
55
+ "all": true,
56
+ "branches": 100,
57
57
  "check-coverage": true,
58
- "exclude": [
59
- "**/test/**/*.*"
60
- ],
61
- "lines": 100
58
+ "exclude": ["**/test/**/*.*"],
59
+ "functions": 100,
60
+ "include": ["dist/*.esm.js"],
61
+ "lines": 100,
62
+ "statements": 100
62
63
  },
63
64
  "lect": {
64
65
  "licence": {
65
- "extras": [
66
- ""
67
- ]
66
+ "extras": [""]
68
67
  }
69
68
  },
70
69
  "dependencies": {
71
- "object-boolean-combinations": "^6.2.0",
72
- "rfdc": "^1.4.1"
70
+ "codsen-utils": "^1.8.0",
71
+ "object-boolean-combinations": "^6.3.0"
72
+ },
73
+ "engines": {
74
+ "node": ">=18.20.8"
73
75
  },
74
76
  "publishConfig": {
75
77
  "registry": "https://registry.npmjs.org/"
package/.eslintcache DELETED
@@ -1 +0,0 @@
1
- [{"/home/runner/work/codsen/codsen/packages/test-mixer/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/test-mixer/perf/check.js":"2","/home/runner/work/codsen/codsen/packages/test-mixer/rollup.config.js":"3","/home/runner/work/codsen/codsen/packages/test-mixer/src/main.ts":"4","/home/runner/work/codsen/codsen/packages/test-mixer/test/api.js":"5","/home/runner/work/codsen/codsen/packages/test-mixer/test/test.js":"6"},{"size":2544,"mtime":1760566739162,"results":"7","hashOfConfig":"8"},{"size":424,"mtime":1760566739162,"results":"9","hashOfConfig":"10"},{"size":373,"mtime":1760566739162,"results":"11","hashOfConfig":"8"},{"size":4147,"mtime":1760566739162,"results":"12","hashOfConfig":"10"},{"size":1557,"mtime":1760566739162,"results":"13","hashOfConfig":"14"},{"size":6130,"mtime":1760566739162,"results":"15","hashOfConfig":"14"},{"filePath":"16","messages":"17","suppressedMessages":"18","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nlhngw",{"filePath":"19","messages":"20","suppressedMessages":"21","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xjytlu",{"filePath":"22","messages":"23","suppressedMessages":"24","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"25","messages":"26","suppressedMessages":"27","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","suppressedMessages":"30","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"nrihsz",{"filePath":"31","messages":"32","suppressedMessages":"33","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/codsen/codsen/packages/test-mixer/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/test-mixer/perf/check.js",[],[],"/home/runner/work/codsen/codsen/packages/test-mixer/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/test-mixer/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/test-mixer/test/api.js",[],["34","35","36","37","38"],"/home/runner/work/codsen/codsen/packages/test-mixer/test/test.js",[],["39","40","41","42","43","44"],{"ruleId":"45","severity":2,"message":"46","line":3,"column":17,"nodeType":null,"messageId":"47","endLine":3,"endColumn":19,"suppressions":"48"},{"ruleId":"45","severity":2,"message":"49","line":3,"column":21,"nodeType":null,"messageId":"47","endLine":3,"endColumn":23,"suppressions":"50"},{"ruleId":"45","severity":2,"message":"51","line":3,"column":33,"nodeType":null,"messageId":"47","endLine":3,"endColumn":37,"suppressions":"52"},{"ruleId":"45","severity":2,"message":"53","line":3,"column":39,"nodeType":null,"messageId":"47","endLine":3,"endColumn":42,"suppressions":"54"},{"ruleId":"45","severity":2,"message":"55","line":3,"column":44,"nodeType":null,"messageId":"47","endLine":3,"endColumn":49,"suppressions":"56"},{"ruleId":"45","severity":2,"message":"46","line":3,"column":17,"nodeType":null,"messageId":"47","endLine":3,"endColumn":19,"suppressions":"57"},{"ruleId":"45","severity":2,"message":"49","line":3,"column":21,"nodeType":null,"messageId":"47","endLine":3,"endColumn":23,"suppressions":"58"},{"ruleId":"45","severity":2,"message":"59","line":3,"column":25,"nodeType":null,"messageId":"47","endLine":3,"endColumn":31,"suppressions":"60"},{"ruleId":"45","severity":2,"message":"51","line":3,"column":33,"nodeType":null,"messageId":"47","endLine":3,"endColumn":37,"suppressions":"61"},{"ruleId":"45","severity":2,"message":"53","line":3,"column":39,"nodeType":null,"messageId":"47","endLine":3,"endColumn":42,"suppressions":"62"},{"ruleId":"45","severity":2,"message":"55","line":3,"column":44,"nodeType":null,"messageId":"47","endLine":3,"endColumn":49,"suppressions":"63"},"@typescript-eslint/no-unused-vars","'is' is defined but never used.","unusedVar",["64"],"'ok' is defined but never used.",["65"],"'type' is defined but never used.",["66"],"'not' is defined but never used.",["67"],"'match' is defined but never used.",["68"],["69"],["70"],"'throws' is defined but never used.",["71"],["72"],["73"],["74"],{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},{"kind":"75","justification":"76"},"directive",""]