@zuplo/cli 7.12.5 → 7.12.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"featureFlagLocalEvaluation.d.ts","sourceRoot":"","sources":["../src/featureFlagLocalEvaluation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEzD,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAA;AAE/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,wBAAwB,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,QAAQ,GAAG,mBAAmB,CAAA;AAE3E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,mBAAmB,CAAC,EAAE,8BAA8B,CAAA;IACpD,mGAAmG;IACnG,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,kBAAkB,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AASD,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,YAAY,OAAO,EAAE,MAAM,EAI1B;CACF;AAsLD,KAAK,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AAa3C,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,aAAa,GAAE,8BAAyC,GACvD,WAAW,CAeb;A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GAAE,+BAAoC,GAC5C,OAAO,CAoKT;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAQ5D;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,MAAM,EACtB,IAAI,GAAE,MAAW,EACjB,SAAS,GAAE,MAAY,GACtB,OAAO,CAAC,MAAM,CAAC,CAGjB;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,oBAAoB,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EACxE,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA0B7B;AAED,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACtC,6BAA6B,EAAE,CASjC;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACtC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAK7B;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAC3E,SAAS,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GAC7C,QAAQ,GAAG,IAAI,CAMjB"}
@@ -41,8 +41,16 @@ __webpack_require__.d(__webpack_exports__, {
41
41
  });
42
42
  const external_featureFlagUtils_js_namespaceObject = require("./featureFlagUtils.js");
43
43
  const NULL_VALUES_ALLOWED_OPERATORS = [
44
+ 'exact',
44
45
  'is_not',
45
- 'is_set'
46
+ 'icontains',
47
+ 'not_icontains',
48
+ 'starts_with',
49
+ 'not_starts_with',
50
+ 'ends_with',
51
+ 'not_ends_with',
52
+ 'regex',
53
+ 'not_regex'
46
54
  ];
47
55
  const LONG_SCALE = 0xfffffffffffffff;
48
56
  class InconclusiveMatchError extends Error {
@@ -335,9 +343,9 @@ function matchFeatureFlagProperty(property, propertyValues, options = {}) {
335
343
  const overrideValue = propertyValues[key];
336
344
  if (void 0 === overrideValue) {
337
345
  options.warnFunction?.(`Property ${key} cannot have a value of undefined with the ${operator} operator`);
338
- return 'is_not' === operator;
346
+ throw new InconclusiveMatchError(`Property ${key} is undefined in propertyValues`);
339
347
  }
340
- if (null === overrideValue && !NULL_VALUES_ALLOWED_OPERATORS.includes(operator) && 'exact' !== operator && 'is_not' !== operator) {
348
+ if (null === overrideValue && !NULL_VALUES_ALLOWED_OPERATORS.includes(operator)) {
341
349
  options.warnFunction?.(`Property ${key} cannot have a value of null with the ${operator} operator`);
342
350
  return false;
343
351
  }
@@ -1,7 +1,15 @@
1
1
  import { parsePayload } from "./featureFlagUtils.mjs";
2
2
  const NULL_VALUES_ALLOWED_OPERATORS = [
3
+ 'exact',
3
4
  'is_not',
4
- 'is_set'
5
+ 'icontains',
6
+ 'not_icontains',
7
+ 'starts_with',
8
+ 'not_starts_with',
9
+ 'ends_with',
10
+ 'not_ends_with',
11
+ 'regex',
12
+ 'not_regex'
5
13
  ];
6
14
  const LONG_SCALE = 0xfffffffffffffff;
7
15
  class InconclusiveMatchError extends Error {
@@ -294,9 +302,9 @@ function matchFeatureFlagProperty(property, propertyValues, options = {}) {
294
302
  const overrideValue = propertyValues[key];
295
303
  if (void 0 === overrideValue) {
296
304
  options.warnFunction?.(`Property ${key} cannot have a value of undefined with the ${operator} operator`);
297
- return 'is_not' === operator;
305
+ throw new InconclusiveMatchError(`Property ${key} is undefined in propertyValues`);
298
306
  }
299
- if (null === overrideValue && !NULL_VALUES_ALLOWED_OPERATORS.includes(operator) && 'exact' !== operator && 'is_not' !== operator) {
307
+ if (null === overrideValue && !NULL_VALUES_ALLOWED_OPERATORS.includes(operator)) {
300
308
  options.warnFunction?.(`Property ${key} cannot have a value of null with the ${operator} operator`);
301
309
  return false;
302
310
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/core",
3
- "version": "1.59.1",
3
+ "version": "1.59.3",
4
4
  "bugs": {
5
5
  "url": "https://github.com/PostHog/posthog-js/issues"
6
6
  },
@@ -29,7 +29,19 @@ export type FeatureFlagVariantLookupEntry = {
29
29
  key: string
30
30
  }
31
31
 
32
- const NULL_VALUES_ALLOWED_OPERATORS = ['is_not', 'is_set']
32
+ // String operators match null as the string "null", like the flags service.
33
+ const NULL_VALUES_ALLOWED_OPERATORS = [
34
+ 'exact',
35
+ 'is_not',
36
+ 'icontains',
37
+ 'not_icontains',
38
+ 'starts_with',
39
+ 'not_starts_with',
40
+ 'ends_with',
41
+ 'not_ends_with',
42
+ 'regex',
43
+ 'not_regex',
44
+ ]
33
45
 
34
46
  // This value is intentionally larger than Number.MAX_SAFE_INTEGER. Changing its rounding changes
35
47
  // existing rollout and variant assignments.
@@ -370,14 +382,10 @@ export function matchFeatureFlagProperty(
370
382
  const overrideValue = propertyValues[key]
371
383
  if (overrideValue === undefined) {
372
384
  options.warnFunction?.(`Property ${key} cannot have a value of undefined with the ${operator} operator`)
373
- return operator === 'is_not'
374
- }
375
- if (
376
- overrideValue === null &&
377
- !NULL_VALUES_ALLOWED_OPERATORS.includes(operator) &&
378
- operator !== 'exact' &&
379
- operator !== 'is_not'
380
- ) {
385
+ // Undefined is omitted from JSON; partial local context cannot establish a remote value.
386
+ throw new InconclusiveMatchError(`Property ${key} is undefined in propertyValues`)
387
+ }
388
+ if (overrideValue === null && !NULL_VALUES_ALLOWED_OPERATORS.includes(operator)) {
381
389
  options.warnFunction?.(`Property ${key} cannot have a value of null with the ${operator} operator`)
382
390
  return false
383
391
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/core",
3
- "version": "7.12.5",
3
+ "version": "7.12.6",
4
4
  "repository": "https://github.com/zuplo/zuplo",
5
5
  "author": "Zuplo, Inc.",
6
6
  "type": "module",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/graphql",
3
3
  "type": "module",
4
- "version": "7.12.5",
4
+ "version": "7.12.6",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
@@ -2,7 +2,7 @@
2
2
  "name": "@zuplo/openapi-tools",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "7.12.5",
5
+ "version": "7.12.6",
6
6
  "description": "Tooling for OpenAPI files",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/otel",
3
3
  "type": "module",
4
- "version": "7.12.5",
4
+ "version": "7.12.6",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {