@stacksjs/actions 0.70.1 → 0.70.2

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/dist/build.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  generateTypes
4
4
  } from "./generate/index.js";
5
- import"./chunk-fksbe52b.js";
5
+ import"./chunk-1rcr814r.js";
6
6
  import"./helpers/vscode-custom-data.js";
7
7
  import"./chunk-494jp8d5.js";
8
- import"./chunk-kw5hbw3s.js";
8
+ import"./chunk-mm6thy3f.js";
9
9
  import"./chunk-fxan91t8.js";
10
- import"./chunk-nm3scdc6.js";
10
+ import"./chunk-w6fdq4hk.js";
11
11
  import"./chunk-wkwtsvym.js";
12
12
  import"./chunk-ze46550n.js";
13
13
  import"./helpers/utils.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  db
3
- } from "./chunk-kw5hbw3s.js";
3
+ } from "./chunk-mm6thy3f.js";
4
4
  import {
5
5
  customValidate,
6
6
  isObjectNotEmpty,
@@ -319,8 +319,8 @@ class Router {
319
319
  return this.routes;
320
320
  }
321
321
  async importRoutes() {
322
- await import("./chunk-7amvdrgs.js");
323
- await import("./chunk-bzpwrj82.js");
322
+ await import("./chunk-xfjdew8j.js");
323
+ await import("./chunk-d611vavk.js");
324
324
  }
325
325
  async resolveCallback(callback) {
326
326
  if (callback instanceof Promise) {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-fksbe52b.js";
5
- import"./chunk-kw5hbw3s.js";
4
+ } from "./chunk-1rcr814r.js";
5
+ import"./chunk-mm6thy3f.js";
6
6
  import"./chunk-fxan91t8.js";
7
- import"./chunk-nm3scdc6.js";
7
+ import"./chunk-w6fdq4hk.js";
8
8
  import"./chunk-wkwtsvym.js";
9
9
  import"./chunk-9v6qtbez.js";
10
10
 
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-fxan91t8.js";
5
5
  import {
6
6
  require_lib
7
- } from "./chunk-nm3scdc6.js";
7
+ } from "./chunk-w6fdq4hk.js";
8
8
  import {
9
9
  camelCase,
10
10
  kebabCase,
@@ -6023,10 +6023,10 @@ ${errors.join(`
6023
6023
  return (type, opts = {}) => {
6024
6024
  let defined = opts.aliases;
6025
6025
  if (!defined) {
6026
- var _store$opts$inherits$, _defined;
6026
+ var _store$opts$inherits$;
6027
6027
  if (opts.inherits)
6028
6028
  defined = (_store$opts$inherits$ = store[opts.inherits].aliases) == null ? undefined : _store$opts$inherits$.slice();
6029
- (_defined = defined) != null || (defined = []);
6029
+ defined != null || (defined = []);
6030
6030
  opts.aliases = defined;
6031
6031
  }
6032
6032
  const additional = aliases.filter((a) => !defined.includes(a));
@@ -21461,7 +21461,7 @@ var require_typescript2 = __commonJS((exports) => {
21461
21461
  this.word("static");
21462
21462
  this.space();
21463
21463
  }
21464
- printModifiersList(this, node, [!isPrivateField && node.override && "override", !isPrivateField && node.abstract && "abstract", (isPublicField || isPrivateField) && node.readonly && "readonly"]);
21464
+ printModifiersList(this, node, [!isPrivateField && node.abstract && "abstract", !isPrivateField && node.override && "override", (isPublicField || isPrivateField) && node.readonly && "readonly"]);
21465
21465
  }
21466
21466
  function printBraced(printer, node, cb) {
21467
21467
  printer.token("{");
@@ -23669,7 +23669,7 @@ var require_visitors = __commonJS((exports) => {
23669
23669
  if (shouldIgnoreKey(nodeType))
23670
23670
  continue;
23671
23671
  if (!TYPES.includes(nodeType)) {
23672
- throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${"7.26.9"}`);
23672
+ throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${"7.26.10"}`);
23673
23673
  }
23674
23674
  const visitors = visitor[nodeType];
23675
23675
  if (typeof visitors === "object") {
@@ -27080,20 +27080,19 @@ var require_cache = __commonJS((exports) => {
27080
27080
  }
27081
27081
  var nullHub = Object.freeze({});
27082
27082
  function getCachedPaths(hub, parent) {
27083
- var _pathsCache$get, _hub;
27083
+ var _pathsCache$get;
27084
27084
  {
27085
27085
  hub = null;
27086
27086
  }
27087
- return (_pathsCache$get = pathsCache.get((_hub = hub) != null ? _hub : nullHub)) == null ? undefined : _pathsCache$get.get(parent);
27087
+ return (_pathsCache$get = pathsCache.get(hub != null ? hub : nullHub)) == null ? undefined : _pathsCache$get.get(parent);
27088
27088
  }
27089
27089
  function getOrCreateCachedPaths(hub, parent) {
27090
- var _hub2, _hub3;
27091
27090
  {
27092
27091
  hub = null;
27093
27092
  }
27094
- let parents = pathsCache.get((_hub2 = hub) != null ? _hub2 : nullHub);
27093
+ let parents = pathsCache.get(hub != null ? hub : nullHub);
27095
27094
  if (!parents)
27096
- pathsCache.set((_hub3 = hub) != null ? _hub3 : nullHub, parents = new WeakMap);
27095
+ pathsCache.set(hub != null ? hub : nullHub, parents = new WeakMap);
27097
27096
  let paths = parents.get(parent);
27098
27097
  if (!paths)
27099
27098
  parents.set(parent, paths = new Map);
@@ -28017,8 +28016,7 @@ var require_scope = __commonJS((exports) => {
28017
28016
  let firstId;
28018
28017
  const init = [];
28019
28018
  for (const decl of parent.declarations) {
28020
- var _firstId;
28021
- (_firstId = firstId) != null || (firstId = decl.id);
28019
+ firstId != null || (firstId = decl.id);
28022
28020
  if (decl.init) {
28023
28021
  init.push(assignmentExpression("=", decl.id, decl.init));
28024
28022
  }
@@ -30060,6 +30058,23 @@ var require_evaluation = __commonJS((exports) => {
30060
30058
  deopt(binding.path, state);
30061
30059
  return;
30062
30060
  }
30061
+ const bindingPathScope = binding.path.scope;
30062
+ if (binding.kind === "var" && bindingPathScope !== binding.scope) {
30063
+ let hasUnsafeBlock = !bindingPathScope.path.parentPath.isBlockStatement();
30064
+ for (let scope = bindingPathScope.parent;scope; scope = scope.parent) {
30065
+ var _scope$path$parentPat;
30066
+ if (scope === path.scope) {
30067
+ if (hasUnsafeBlock) {
30068
+ deopt(binding.path, state);
30069
+ return;
30070
+ }
30071
+ break;
30072
+ }
30073
+ if ((_scope$path$parentPat = scope.path.parentPath) != null && _scope$path$parentPat.isBlockStatement()) {
30074
+ hasUnsafeBlock = true;
30075
+ }
30076
+ }
30077
+ }
30063
30078
  if (binding.hasValue) {
30064
30079
  return binding.value;
30065
30080
  }
@@ -31094,8 +31109,7 @@ var require_conversion = __commonJS((exports) => {
31094
31109
  let arrowParent;
31095
31110
  let thisEnvFn = fnPath.findParent((p) => {
31096
31111
  if (p.isArrowFunctionExpression()) {
31097
- var _arrowParent;
31098
- (_arrowParent = arrowParent) != null || (arrowParent = p);
31112
+ arrowParent != null || (arrowParent = p);
31099
31113
  return false;
31100
31114
  }
31101
31115
  return p.isFunction() || p.isProgram() || p.isClassProperty({
@@ -39387,13 +39401,14 @@ var require_lib10 = __commonJS((exports) => {
39387
39401
  Object.defineProperty(exports, "__esModule", { value: true });
39388
39402
  exports.createLRU = undefined;
39389
39403
  var createLRU = (options) => {
39390
- let { max, onEviction } = options;
39404
+ let { max } = options;
39391
39405
  if (!(Number.isInteger(max) && max > 0))
39392
39406
  throw new TypeError("`max` must be a positive integer");
39393
39407
  let size = 0;
39394
39408
  let head = 0;
39395
39409
  let tail = 0;
39396
39410
  let free = [];
39411
+ const { onEviction } = options;
39397
39412
  const keyMap = new Map;
39398
39413
  const keyList = new Array(max).fill(undefined);
39399
39414
  const valList = new Array(max).fill(undefined);
@@ -59550,7 +59565,7 @@ var require_query3 = __commonJS((exports, module) => {
59550
59565
  module.exports = Query;
59551
59566
  });
59552
59567
 
59553
- // ../../../../node_modules/pg/node_modules/pg-protocol/dist/messages.js
59568
+ // ../../../../node_modules/pg-protocol/dist/messages.js
59554
59569
  var require_messages = __commonJS((exports) => {
59555
59570
  Object.defineProperty(exports, "__esModule", { value: true });
59556
59571
  exports.NoticeMessage = exports.DataRowMessage = exports.CommandCompleteMessage = exports.ReadyForQueryMessage = exports.NotificationResponseMessage = exports.BackendKeyDataMessage = exports.AuthenticationMD5Password = exports.ParameterStatusMessage = exports.ParameterDescriptionMessage = exports.RowDescriptionMessage = exports.Field = exports.CopyResponse = exports.CopyDataMessage = exports.DatabaseError = exports.copyDone = exports.emptyQuery = exports.replicationStart = exports.portalSuspended = exports.noData = exports.closeComplete = exports.bindComplete = exports.parseComplete = undefined;
@@ -59726,7 +59741,7 @@ var require_messages = __commonJS((exports) => {
59726
59741
  exports.NoticeMessage = NoticeMessage;
59727
59742
  });
59728
59743
 
59729
- // ../../../../node_modules/pg/node_modules/pg-protocol/dist/buffer-writer.js
59744
+ // ../../../../node_modules/pg-protocol/dist/buffer-writer.js
59730
59745
  var require_buffer_writer = __commonJS((exports) => {
59731
59746
  Object.defineProperty(exports, "__esModule", { value: true });
59732
59747
  exports.Writer = undefined;
@@ -59805,7 +59820,7 @@ var require_buffer_writer = __commonJS((exports) => {
59805
59820
  exports.Writer = Writer;
59806
59821
  });
59807
59822
 
59808
- // ../../../../node_modules/pg/node_modules/pg-protocol/dist/serializer.js
59823
+ // ../../../../node_modules/pg-protocol/dist/serializer.js
59809
59824
  var require_serializer = __commonJS((exports) => {
59810
59825
  Object.defineProperty(exports, "__esModule", { value: true });
59811
59826
  exports.serialize = undefined;
@@ -59967,7 +59982,7 @@ var require_serializer = __commonJS((exports) => {
59967
59982
  exports.serialize = serialize;
59968
59983
  });
59969
59984
 
59970
- // ../../../../node_modules/pg/node_modules/pg-protocol/dist/buffer-reader.js
59985
+ // ../../../../node_modules/pg-protocol/dist/buffer-reader.js
59971
59986
  var require_buffer_reader = __commonJS((exports) => {
59972
59987
  Object.defineProperty(exports, "__esModule", { value: true });
59973
59988
  exports.BufferReader = undefined;
@@ -60024,7 +60039,7 @@ var require_buffer_reader = __commonJS((exports) => {
60024
60039
  exports.BufferReader = BufferReader;
60025
60040
  });
60026
60041
 
60027
- // ../../../../node_modules/pg/node_modules/pg-protocol/dist/parser.js
60042
+ // ../../../../node_modules/pg-protocol/dist/parser.js
60028
60043
  var require_parser = __commonJS((exports) => {
60029
60044
  Object.defineProperty(exports, "__esModule", { value: true });
60030
60045
  exports.Parser = undefined;
@@ -60313,7 +60328,7 @@ var require_parser = __commonJS((exports) => {
60313
60328
  exports.Parser = Parser;
60314
60329
  });
60315
60330
 
60316
- // ../../../../node_modules/pg/node_modules/pg-protocol/dist/index.js
60331
+ // ../../../../node_modules/pg-protocol/dist/index.js
60317
60332
  var require_dist2 = __commonJS((exports) => {
60318
60333
  Object.defineProperty(exports, "__esModule", { value: true });
60319
60334
  exports.DatabaseError = exports.serialize = exports.parse = undefined;
@@ -13,7 +13,7 @@ var require_lib = __commonJS((exports) => {
13
13
  var t = {};
14
14
  for (var n in r)
15
15
  if ({}.hasOwnProperty.call(r, n)) {
16
- if (e.includes(n))
16
+ if (e.indexOf(n) !== -1)
17
17
  continue;
18
18
  t[n] = r[n];
19
19
  }
@@ -4861,8 +4861,7 @@ var require_lib = __commonJS((exports) => {
4861
4861
  }
4862
4862
  }
4863
4863
  flowParseQualifiedTypeIdentifier(startLoc, id) {
4864
- var _startLoc;
4865
- (_startLoc = startLoc) != null || (startLoc = this.state.startLoc);
4864
+ startLoc != null || (startLoc = this.state.startLoc);
4866
4865
  let node = id || this.flowParseRestrictedIdentifier(true);
4867
4866
  while (this.eat(16)) {
4868
4867
  const node2 = this.startNodeAt(startLoc);
@@ -7338,14 +7337,7 @@ var require_lib = __commonJS((exports) => {
7338
7337
  const elt = exprList[i];
7339
7338
  if (!elt)
7340
7339
  continue;
7341
- if (elt.type === "SpreadElement") {
7342
- elt.type = "RestElement";
7343
- const arg = elt.argument;
7344
- this.checkToRestConversion(arg, true);
7345
- this.toAssignable(arg, isLHS);
7346
- } else {
7347
- this.toAssignable(elt, isLHS);
7348
- }
7340
+ this.toAssignableListItem(exprList, i, isLHS);
7349
7341
  if (elt.type === "RestElement") {
7350
7342
  if (i < end) {
7351
7343
  this.raise(Errors.RestTrailingComma, elt);
@@ -7355,6 +7347,17 @@ var require_lib = __commonJS((exports) => {
7355
7347
  }
7356
7348
  }
7357
7349
  }
7350
+ toAssignableListItem(exprList, index, isLHS) {
7351
+ const node = exprList[index];
7352
+ if (node.type === "SpreadElement") {
7353
+ node.type = "RestElement";
7354
+ const arg = node.argument;
7355
+ this.checkToRestConversion(arg, true);
7356
+ this.toAssignable(arg, isLHS);
7357
+ } else {
7358
+ this.toAssignable(node, isLHS);
7359
+ }
7360
+ }
7358
7361
  isAssignable(node, isBinding) {
7359
7362
  switch (node.type) {
7360
7363
  case "Identifier":
@@ -7448,13 +7451,15 @@ var require_lib = __commonJS((exports) => {
7448
7451
  }
7449
7452
  } else {
7450
7453
  const decorators = [];
7451
- if (this.match(26) && this.hasPlugin("decorators")) {
7452
- this.raise(Errors.UnsupportedParameterDecorator, this.state.startLoc);
7453
- }
7454
- while (this.match(26)) {
7455
- decorators.push(this.parseDecorator());
7454
+ if (flags & 2) {
7455
+ if (this.match(26) && this.hasPlugin("decorators")) {
7456
+ this.raise(Errors.UnsupportedParameterDecorator, this.state.startLoc);
7457
+ }
7458
+ while (this.match(26)) {
7459
+ decorators.push(this.parseDecorator());
7460
+ }
7456
7461
  }
7457
- elts.push(this.parseAssignableListItem(flags, decorators));
7462
+ elts.push(this.parseBindingElement(flags, decorators));
7458
7463
  }
7459
7464
  }
7460
7465
  return elts;
@@ -7484,7 +7489,7 @@ var require_lib = __commonJS((exports) => {
7484
7489
  prop.method = false;
7485
7490
  return this.parseObjPropValue(prop, startLoc, false, false, true, false);
7486
7491
  }
7487
- parseAssignableListItem(flags, decorators) {
7492
+ parseBindingElement(flags, decorators) {
7488
7493
  const left = this.parseMaybeDefault();
7489
7494
  if (this.hasPlugin("flow") || flags & 2) {
7490
7495
  this.parseFunctionParamType(left);
@@ -7499,9 +7504,8 @@ var require_lib = __commonJS((exports) => {
7499
7504
  return param;
7500
7505
  }
7501
7506
  parseMaybeDefault(startLoc, left) {
7502
- var _startLoc, _left;
7503
- (_startLoc = startLoc) != null || (startLoc = this.state.startLoc);
7504
- left = (_left = left) != null ? _left : this.parseBindingAtom();
7507
+ startLoc != null || (startLoc = this.state.startLoc);
7508
+ left = left != null ? left : this.parseBindingAtom();
7505
7509
  if (!this.eat(29))
7506
7510
  return left;
7507
7511
  const node = this.startNodeAt(startLoc);
@@ -7695,6 +7699,9 @@ var require_lib = __commonJS((exports) => {
7695
7699
  IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.",
7696
7700
  IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.",
7697
7701
  InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.",
7702
+ InvalidHeritageClauseType: ({
7703
+ token
7704
+ }) => `'${token}' list can only include identifiers or qualified-names with optional type arguments.`,
7698
7705
  InvalidModifierOnTypeMember: ({
7699
7706
  modifier
7700
7707
  }) => `'${modifier}' modifier cannot appear on a type member.`,
@@ -8754,8 +8761,8 @@ var require_lib = __commonJS((exports) => {
8754
8761
  tsParseHeritageClause(token) {
8755
8762
  const originalStartLoc = this.state.startLoc;
8756
8763
  const delimitedList = this.tsParseDelimitedList("HeritageClauseElement", () => {
8757
- const node = this.startNode();
8758
8764
  {
8765
+ const node = this.startNode();
8759
8766
  node.expression = this.tsParseEntityName(1 | 2);
8760
8767
  if (this.match(47)) {
8761
8768
  node.typeParameters = this.tsParseTypeArguments();
@@ -9165,7 +9172,7 @@ var require_lib = __commonJS((exports) => {
9165
9172
  return false;
9166
9173
  return super.isExportDefaultSpecifier();
9167
9174
  }
9168
- parseAssignableListItem(flags, decorators) {
9175
+ parseBindingElement(flags, decorators) {
9169
9176
  const startLoc = this.state.startLoc;
9170
9177
  const modified = {};
9171
9178
  this.tsParseModifiers({
@@ -9602,19 +9609,16 @@ var require_lib = __commonJS((exports) => {
9602
9609
  return super.shouldParseExportDeclaration();
9603
9610
  }
9604
9611
  parseConditional(expr, startLoc, refExpressionErrors) {
9605
- if (!this.state.maybeInArrowParameters || !this.match(17)) {
9606
- return super.parseConditional(expr, startLoc, refExpressionErrors);
9607
- }
9608
- const result = this.tryParse(() => super.parseConditional(expr, startLoc));
9609
- if (!result.node) {
9610
- if (result.error) {
9611
- super.setOptionalParametersError(refExpressionErrors, result.error);
9612
- }
9612
+ if (!this.match(17))
9613
9613
  return expr;
9614
+ if (this.state.maybeInArrowParameters) {
9615
+ const nextCh = this.lookaheadCharCode();
9616
+ if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) {
9617
+ this.setOptionalParametersError(refExpressionErrors);
9618
+ return expr;
9619
+ }
9614
9620
  }
9615
- if (result.error)
9616
- this.state = result.failState;
9617
- return result.node;
9621
+ return super.parseConditional(expr, startLoc, refExpressionErrors);
9618
9622
  }
9619
9623
  parseParenItem(node, startLoc) {
9620
9624
  const newNode = super.parseParenItem(node, startLoc);
@@ -9844,8 +9848,8 @@ var require_lib = __commonJS((exports) => {
9844
9848
  throw ((_jsx3 = jsx2) == null ? undefined : _jsx3.error) || arrow.error || ((_typeCast2 = typeCast) == null ? undefined : _typeCast2.error);
9845
9849
  }
9846
9850
  reportReservedArrowTypeParam(node) {
9847
- var _node$extra;
9848
- if (node.params.length === 1 && !node.params[0].constraint && !((_node$extra = node.extra) != null && _node$extra.trailingComma) && this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) {
9851
+ var _node$extra2;
9852
+ if (node.params.length === 1 && !node.params[0].constraint && !((_node$extra2 = node.extra) != null && _node$extra2.trailingComma) && this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) {
9849
9853
  this.raise(TSErrors.ReservedArrowTypeParam, node);
9850
9854
  }
9851
9855
  }
@@ -9949,7 +9953,6 @@ var require_lib = __commonJS((exports) => {
9949
9953
  case "TSParameterProperty":
9950
9954
  return "parameter";
9951
9955
  case "TSNonNullExpression":
9952
- case "TSInstantiationExpression":
9953
9956
  return "expression";
9954
9957
  case "TSAsExpression":
9955
9958
  case "TSSatisfiesExpression":
@@ -10035,14 +10038,12 @@ var require_lib = __commonJS((exports) => {
10035
10038
  }
10036
10039
  return type;
10037
10040
  }
10038
- toAssignableList(exprList, trailingCommaLoc, isLHS) {
10039
- for (let i = 0;i < exprList.length; i++) {
10040
- const expr = exprList[i];
10041
- if ((expr == null ? undefined : expr.type) === "TSTypeCastExpression") {
10042
- exprList[i] = this.typeCastToParameter(expr);
10043
- }
10041
+ toAssignableListItem(exprList, index, isLHS) {
10042
+ const node = exprList[index];
10043
+ if (node.type === "TSTypeCastExpression") {
10044
+ exprList[index] = this.typeCastToParameter(node);
10044
10045
  }
10045
- super.toAssignableList(exprList, trailingCommaLoc, isLHS);
10046
+ super.toAssignableListItem(exprList, index, isLHS);
10046
10047
  }
10047
10048
  typeCastToParameter(node) {
10048
10049
  node.expression.typeAnnotation = node.typeAnnotation;
@@ -10618,18 +10619,18 @@ var require_lib = __commonJS((exports) => {
10618
10619
  var mixinPluginNames = Object.keys(mixinPlugins);
10619
10620
 
10620
10621
  class ExpressionParser extends LValParser {
10621
- checkProto(prop, isRecord, protoRef, refExpressionErrors) {
10622
+ checkProto(prop, isRecord, sawProto, refExpressionErrors) {
10622
10623
  if (prop.type === "SpreadElement" || this.isObjectMethod(prop) || prop.computed || prop.shorthand) {
10623
- return;
10624
+ return sawProto;
10624
10625
  }
10625
10626
  const key = prop.key;
10626
10627
  const name = key.type === "Identifier" ? key.name : key.value;
10627
10628
  if (name === "__proto__") {
10628
10629
  if (isRecord) {
10629
10630
  this.raise(Errors.RecordNoProto, key);
10630
- return;
10631
+ return true;
10631
10632
  }
10632
- if (protoRef.used) {
10633
+ if (sawProto) {
10633
10634
  if (refExpressionErrors) {
10634
10635
  if (refExpressionErrors.doubleProtoLoc === null) {
10635
10636
  refExpressionErrors.doubleProtoLoc = key.loc.start;
@@ -10638,8 +10639,9 @@ var require_lib = __commonJS((exports) => {
10638
10639
  this.raise(Errors.DuplicateProto, key);
10639
10640
  }
10640
10641
  }
10641
- protoRef.used = true;
10642
+ return true;
10642
10643
  }
10644
+ return sawProto;
10643
10645
  }
10644
10646
  shouldExitDescending(expr, potentialArrowAt) {
10645
10647
  return expr.type === "ArrowFunctionExpression" && this.offsetToSourcePos(expr.start) === potentialArrowAt;
@@ -10685,9 +10687,8 @@ var require_lib = __commonJS((exports) => {
10685
10687
  parseMaybeAssignAllowIn(refExpressionErrors, afterLeftParse) {
10686
10688
  return this.allowInAnd(() => this.parseMaybeAssign(refExpressionErrors, afterLeftParse));
10687
10689
  }
10688
- setOptionalParametersError(refExpressionErrors, resultError) {
10689
- var _resultError$loc;
10690
- refExpressionErrors.optionalParametersLoc = (_resultError$loc = resultError == null ? undefined : resultError.loc) != null ? _resultError$loc : this.state.startLoc;
10690
+ setOptionalParametersError(refExpressionErrors) {
10691
+ refExpressionErrors.optionalParametersLoc = this.state.startLoc;
10691
10692
  }
10692
10693
  parseMaybeAssign(refExpressionErrors, afterLeftParse) {
10693
10694
  const startLoc = this.state.startLoc;
@@ -11679,7 +11680,7 @@ var require_lib = __commonJS((exports) => {
11679
11680
  }
11680
11681
  const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
11681
11682
  this.state.inFSharpPipelineDirectBody = false;
11682
- const propHash = Object.create(null);
11683
+ let sawProto = false;
11683
11684
  let first = true;
11684
11685
  const node = this.startNode();
11685
11686
  node.properties = [];
@@ -11699,7 +11700,7 @@ var require_lib = __commonJS((exports) => {
11699
11700
  prop = this.parseBindingProperty();
11700
11701
  } else {
11701
11702
  prop = this.parsePropertyDefinition(refExpressionErrors);
11702
- this.checkProto(prop, isRecord, propHash, refExpressionErrors);
11703
+ sawProto = this.checkProto(prop, isRecord, sawProto, refExpressionErrors);
11703
11704
  }
11704
11705
  if (isRecord && !this.isObjectProperty(prop) && prop.type !== "SpreadElement") {
11705
11706
  this.raise(Errors.InvalidRecordProperty, prop);
@@ -12701,14 +12702,8 @@ var require_lib = __commonJS((exports) => {
12701
12702
  let result;
12702
12703
  if (startType === 83) {
12703
12704
  result = this.parseImport(node);
12704
- if (result.type === "ImportDeclaration" && (!result.importKind || result.importKind === "value")) {
12705
- this.sawUnambiguousESM = true;
12706
- }
12707
12705
  } else {
12708
12706
  result = this.parseExport(node, decorators);
12709
- if (result.type === "ExportNamedDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportAllDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportDefaultDeclaration") {
12710
- this.sawUnambiguousESM = true;
12711
- }
12712
12707
  }
12713
12708
  this.assertModuleNodeAllowed(result);
12714
12709
  return result;
@@ -13627,6 +13622,7 @@ var require_lib = __commonJS((exports) => {
13627
13622
  throw this.raise(Errors.UnsupportedDecoratorExport, node);
13628
13623
  }
13629
13624
  this.parseExportFrom(node, true);
13625
+ this.sawUnambiguousESM = true;
13630
13626
  return this.finishNode(node, "ExportAllDeclaration");
13631
13627
  }
13632
13628
  const hasSpecifiers = this.maybeParseExportNamedSpecifiers(node);
@@ -13655,6 +13651,7 @@ var require_lib = __commonJS((exports) => {
13655
13651
  } else if (decorators) {
13656
13652
  throw this.raise(Errors.UnsupportedDecoratorExport, node);
13657
13653
  }
13654
+ this.sawUnambiguousESM = true;
13658
13655
  return this.finishNode(node2, "ExportNamedDeclaration");
13659
13656
  }
13660
13657
  if (this.eat(65)) {
@@ -13667,6 +13664,7 @@ var require_lib = __commonJS((exports) => {
13667
13664
  throw this.raise(Errors.UnsupportedDecoratorExport, node);
13668
13665
  }
13669
13666
  this.checkExport(node2, true, true);
13667
+ this.sawUnambiguousESM = true;
13670
13668
  return this.finishNode(node2, "ExportDefaultDeclaration");
13671
13669
  }
13672
13670
  this.unexpected(null, 5);
@@ -13705,10 +13703,12 @@ var require_lib = __commonJS((exports) => {
13705
13703
  const isTypeExport = node2.exportKind === "type";
13706
13704
  node2.specifiers.push(...this.parseExportSpecifiers(isTypeExport));
13707
13705
  node2.source = null;
13708
- node2.declaration = null;
13709
13706
  if (this.hasPlugin("importAssertions")) {
13710
13707
  node2.assertions = [];
13708
+ } else {
13709
+ node2.attributes = [];
13711
13710
  }
13711
+ node2.declaration = null;
13712
13712
  return true;
13713
13713
  }
13714
13714
  return false;
@@ -13719,6 +13719,8 @@ var require_lib = __commonJS((exports) => {
13719
13719
  node.source = null;
13720
13720
  if (this.hasPlugin("importAssertions")) {
13721
13721
  node.assertions = [];
13722
+ } else {
13723
+ node.attributes = [];
13722
13724
  }
13723
13725
  node.declaration = this.parseExportDeclaration(node);
13724
13726
  return true;
@@ -14087,6 +14089,7 @@ var require_lib = __commonJS((exports) => {
14087
14089
  this.checkImportReflection(node);
14088
14090
  this.checkJSONModuleImport(node);
14089
14091
  this.semicolon();
14092
+ this.sawUnambiguousESM = true;
14090
14093
  return this.finishNode(node, "ImportDeclaration");
14091
14094
  }
14092
14095
  parseImportSource() {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-fksbe52b.js";
5
- import"./chunk-kw5hbw3s.js";
4
+ } from "./chunk-1rcr814r.js";
5
+ import"./chunk-mm6thy3f.js";
6
6
  import"./chunk-fxan91t8.js";
7
- import"./chunk-nm3scdc6.js";
7
+ import"./chunk-w6fdq4hk.js";
8
8
  import"./chunk-wkwtsvym.js";
9
9
  import"./chunk-9v6qtbez.js";
10
10
 
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  seed
4
- } from "../chunk-kw5hbw3s.js";
4
+ } from "../chunk-mm6thy3f.js";
5
5
  import"../chunk-fxan91t8.js";
6
- import"../chunk-nm3scdc6.js";
6
+ import"../chunk-w6fdq4hk.js";
7
7
  import"../chunk-wkwtsvym.js";
8
8
  import"../chunk-9v6qtbez.js";
9
9
 
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  generateComponentMeta
5
5
  } from "../helpers/component-meta.js";
6
- import"../chunk-nm3scdc6.js";
6
+ import"../chunk-w6fdq4hk.js";
7
7
  import"../chunk-9v6qtbez.js";
8
8
 
9
9
  // src/generate/component-meta.ts
@@ -1,16 +1,16 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "../chunk-fksbe52b.js";
4
+ } from "../chunk-1rcr814r.js";
5
5
  import {
6
6
  generateVsCodeCustomData
7
7
  } from "../helpers/vscode-custom-data.js";
8
8
  import"../chunk-494jp8d5.js";
9
9
  import {
10
10
  generateModelFiles
11
- } from "../chunk-kw5hbw3s.js";
11
+ } from "../chunk-mm6thy3f.js";
12
12
  import"../chunk-fxan91t8.js";
13
- import"../chunk-nm3scdc6.js";
13
+ import"../chunk-w6fdq4hk.js";
14
14
  import"../chunk-wkwtsvym.js";
15
15
  import"../chunk-ze46550n.js";
16
16
  import {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  require_lib
4
- } from "../chunk-nm3scdc6.js";
4
+ } from "../chunk-w6fdq4hk.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __export,
@@ -189494,8 +189494,7 @@ var require_cjs = __commonJS((exports, module) => {
189494
189494
  return SubscriberFlags2;
189495
189495
  })(SubscriberFlags || {});
189496
189496
  function createReactiveSystem({ updateComputed, notifyEffect: notifyEffect2 }) {
189497
- let queuedEffects;
189498
- let queuedEffectsTail;
189497
+ const queuedEffects = [];
189499
189498
  return { link(dep, sub) {
189500
189499
  const currentDep = sub.depsTail;
189501
189500
  if (currentDep !== undefined && currentDep.dep === dep) {
@@ -189534,22 +189533,12 @@ var require_cjs = __commonJS((exports, module) => {
189534
189533
  continue;
189535
189534
  }
189536
189535
  if (subFlags & 2) {
189537
- if (queuedEffectsTail !== undefined) {
189538
- queuedEffectsTail.depsTail.nextDep = sub.deps;
189539
- } else {
189540
- queuedEffects = sub;
189541
- }
189542
- queuedEffectsTail = sub;
189536
+ queuedEffects.push(sub);
189543
189537
  }
189544
189538
  } else if (!(subFlags & (4 | targetFlag))) {
189545
189539
  sub.flags = subFlags | targetFlag | 8;
189546
189540
  if ((subFlags & (2 | 8)) === 2) {
189547
- if (queuedEffectsTail !== undefined) {
189548
- queuedEffectsTail.depsTail.nextDep = sub.deps;
189549
- } else {
189550
- queuedEffects = sub;
189551
- }
189552
- queuedEffectsTail = sub;
189541
+ queuedEffects.push(sub);
189553
189542
  }
189554
189543
  } else if (!(subFlags & targetFlag) && subFlags & 224 && isValidLink(link22, sub)) {
189555
189544
  sub.flags = subFlags | targetFlag;
@@ -189619,17 +189608,8 @@ var require_cjs = __commonJS((exports, module) => {
189619
189608
  } while (link22 !== undefined);
189620
189609
  }
189621
189610
  }, processEffectNotifications() {
189622
- while (queuedEffects !== undefined) {
189623
- const effect2 = queuedEffects;
189624
- const depsTail = effect2.depsTail;
189625
- const queuedNext = depsTail.nextDep;
189626
- if (queuedNext !== undefined) {
189627
- depsTail.nextDep = undefined;
189628
- queuedEffects = queuedNext.sub;
189629
- } else {
189630
- queuedEffects = undefined;
189631
- queuedEffectsTail = undefined;
189632
- }
189611
+ while (queuedEffects.length) {
189612
+ const effect2 = queuedEffects.shift();
189633
189613
  if (!notifyEffect2(effect2)) {
189634
189614
  effect2.flags &= ~8;
189635
189615
  }
@@ -189729,12 +189709,7 @@ var require_cjs = __commonJS((exports, module) => {
189729
189709
  if ((subFlags & (64 | 32)) === 64) {
189730
189710
  sub.flags = subFlags | 32 | 8;
189731
189711
  if ((subFlags & (2 | 8)) === 2) {
189732
- if (queuedEffectsTail !== undefined) {
189733
- queuedEffectsTail.depsTail.nextDep = sub.deps;
189734
- } else {
189735
- queuedEffects = sub;
189736
- }
189737
- queuedEffectsTail = sub;
189712
+ queuedEffects.push(sub);
189738
189713
  }
189739
189714
  }
189740
189715
  link22 = link22.nextSub;
package/dist/index.js CHANGED
@@ -41,12 +41,12 @@ import {
41
41
  generateWebTypes,
42
42
  invoke
43
43
  } from "./generate/index.js";
44
- import"./chunk-fksbe52b.js";
44
+ import"./chunk-1rcr814r.js";
45
45
  import"./helpers/vscode-custom-data.js";
46
46
  import"./chunk-494jp8d5.js";
47
- import"./chunk-kw5hbw3s.js";
47
+ import"./chunk-mm6thy3f.js";
48
48
  import"./chunk-fxan91t8.js";
49
- import"./chunk-nm3scdc6.js";
49
+ import"./chunk-w6fdq4hk.js";
50
50
  import"./chunk-wkwtsvym.js";
51
51
  import {
52
52
  runApiDevServer,
package/dist/release.js CHANGED
@@ -5,12 +5,12 @@ import"./commit.js";
5
5
  import"./make.js";
6
6
  import"./add.js";
7
7
  import"./generate/index.js";
8
- import"./chunk-fksbe52b.js";
8
+ import"./chunk-1rcr814r.js";
9
9
  import"./helpers/vscode-custom-data.js";
10
10
  import"./chunk-494jp8d5.js";
11
- import"./chunk-kw5hbw3s.js";
11
+ import"./chunk-mm6thy3f.js";
12
12
  import"./chunk-fxan91t8.js";
13
- import"./chunk-nm3scdc6.js";
13
+ import"./chunk-w6fdq4hk.js";
14
14
  import"./chunk-wkwtsvym.js";
15
15
  import"./dev/index.js";
16
16
  import"./chunk-ze46550n.js";
package/dist/upgrade.js CHANGED
@@ -9,7 +9,7 @@ import { log } from "@stacksjs/logging";
9
9
  import { projectPath } from "@stacksjs/path";
10
10
  import * as storage from "@stacksjs/storage";
11
11
  // package.json
12
- var version = "0.70.1";
12
+ var version = "0.70.2";
13
13
 
14
14
  // src/upgrade.ts
15
15
  function checkForUncommittedChanges(options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.70.1",
4
+ "version": "0.70.2",
5
5
  "description": "The Stacks actions.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],