@builder.io/sdk-solid 2.0.13 → 2.0.16

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/index.d.ts CHANGED
@@ -1073,4 +1073,4 @@ declare const _processContentResult: (options: GetContentOptions, content: Conte
1073
1073
  */
1074
1074
  declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
1075
1075
 
1076
- export { Blocks, BlocksProps, BuilderBlock, BuilderContent, _default as BuilderContext, Button, ButtonProps, ColumnProps, Columns, ComponentInfo, ContentVariants as Content, ContentVariantsPrps as ContentProps, FragmentComponent as Fragment, FragmentProps, Image, ImageProps, InsertMenuConfig, InsertMenuItem, RegisteredComponent, SectionComponent as Section, SectionProps, Settings, Symbol, SymbolProps, Text, TextProps, Video, VideoProps, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
1076
+ export { Blocks, BlocksProps, BuilderBlock, BuilderContent, _default as BuilderContext, Button, ButtonProps, ColumnProps, Columns, ComponentInfo, ContentVariants as Content, ContentVariantsPrps as ContentProps, FragmentComponent as Fragment, FragmentProps, GetContentOptions, Image, ImageProps, InsertMenuConfig, InsertMenuItem, RegisteredComponent, SectionComponent as Section, SectionProps, Settings, Symbol, SymbolProps, Text, TextProps, Video, VideoProps, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
@@ -323,24 +323,30 @@ function isNodeRuntime() {
323
323
  }
324
324
 
325
325
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
326
- var shouldForceBrowserRuntimeInNode = () => {
326
+ var shouldForceBrowserRuntimeInNode = ({
327
+ shouldLogWarning
328
+ }) => {
327
329
  if (!isNodeRuntime())
328
330
  return false;
329
331
  const isArm64 = process.arch === "arm64";
330
332
  const isNode20 = process.version.startsWith("v20");
331
333
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
332
334
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
333
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
335
+ if (shouldLogWarning) {
336
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
334
337
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
335
338
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
336
339
  `);
340
+ }
337
341
  return true;
338
342
  }
339
343
  return false;
340
344
  };
341
345
 
342
346
  // src/functions/evaluate/choose-eval.ts
343
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInBrowser(args);
347
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
348
+ shouldLogWarning: true
349
+ }) ? runInBrowser(args) : runInBrowser(args);
344
350
 
345
351
  // src/functions/evaluate/evaluate.ts
346
352
  var DISABLE_CACHE = true;
@@ -5245,7 +5251,7 @@ function isFromTrustedHost(trustedHosts, e) {
5245
5251
  }
5246
5252
 
5247
5253
  // src/constants/sdk-version.ts
5248
- var SDK_VERSION = "2.0.13";
5254
+ var SDK_VERSION = "2.0.16";
5249
5255
 
5250
5256
  // src/functions/register.ts
5251
5257
  var registry = {};
@@ -316,24 +316,30 @@ function isNodeRuntime() {
316
316
  }
317
317
 
318
318
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
319
- var shouldForceBrowserRuntimeInNode = () => {
319
+ var shouldForceBrowserRuntimeInNode = ({
320
+ shouldLogWarning
321
+ }) => {
320
322
  if (!isNodeRuntime())
321
323
  return false;
322
324
  const isArm64 = process.arch === "arm64";
323
325
  const isNode20 = process.version.startsWith("v20");
324
326
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
325
327
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
326
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
328
+ if (shouldLogWarning) {
329
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
327
330
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
328
331
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
329
332
  `);
333
+ }
330
334
  return true;
331
335
  }
332
336
  return false;
333
337
  };
334
338
 
335
339
  // src/functions/evaluate/choose-eval.ts
336
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInBrowser(args);
340
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
341
+ shouldLogWarning: true
342
+ }) ? runInBrowser(args) : runInBrowser(args);
337
343
 
338
344
  // src/functions/evaluate/evaluate.ts
339
345
  var DISABLE_CACHE = true;
@@ -4746,7 +4752,7 @@ function isFromTrustedHost(trustedHosts, e) {
4746
4752
  }
4747
4753
 
4748
4754
  // src/constants/sdk-version.ts
4749
- var SDK_VERSION = "2.0.13";
4755
+ var SDK_VERSION = "2.0.16";
4750
4756
 
4751
4757
  // src/functions/register.ts
4752
4758
  var registry = {};
@@ -321,24 +321,30 @@ function isNodeRuntime() {
321
321
  }
322
322
 
323
323
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
324
- var shouldForceBrowserRuntimeInNode = () => {
324
+ var shouldForceBrowserRuntimeInNode = ({
325
+ shouldLogWarning
326
+ }) => {
325
327
  if (!isNodeRuntime())
326
328
  return false;
327
329
  const isArm64 = process.arch === "arm64";
328
330
  const isNode20 = process.version.startsWith("v20");
329
331
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
330
332
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
331
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
333
+ if (shouldLogWarning) {
334
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
332
335
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
333
336
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
334
337
  `);
338
+ }
335
339
  return true;
336
340
  }
337
341
  return false;
338
342
  };
339
343
 
340
344
  // src/functions/evaluate/choose-eval.ts
341
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInBrowser(args);
345
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
346
+ shouldLogWarning: true
347
+ }) ? runInBrowser(args) : runInBrowser(args);
342
348
 
343
349
  // src/functions/evaluate/evaluate.ts
344
350
  var DISABLE_CACHE = true;
@@ -5230,7 +5236,7 @@ function isFromTrustedHost(trustedHosts, e) {
5230
5236
  }
5231
5237
 
5232
5238
  // src/constants/sdk-version.ts
5233
- var SDK_VERSION = "2.0.13";
5239
+ var SDK_VERSION = "2.0.16";
5234
5240
 
5235
5241
  // src/functions/register.ts
5236
5242
  var registry = {};
@@ -314,24 +314,30 @@ function isNodeRuntime() {
314
314
  }
315
315
 
316
316
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
317
- var shouldForceBrowserRuntimeInNode = () => {
317
+ var shouldForceBrowserRuntimeInNode = ({
318
+ shouldLogWarning
319
+ }) => {
318
320
  if (!isNodeRuntime())
319
321
  return false;
320
322
  const isArm64 = process.arch === "arm64";
321
323
  const isNode20 = process.version.startsWith("v20");
322
324
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
323
325
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
324
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
326
+ if (shouldLogWarning) {
327
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
325
328
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
326
329
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
327
330
  `);
331
+ }
328
332
  return true;
329
333
  }
330
334
  return false;
331
335
  };
332
336
 
333
337
  // src/functions/evaluate/choose-eval.ts
334
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInBrowser(args);
338
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
339
+ shouldLogWarning: true
340
+ }) ? runInBrowser(args) : runInBrowser(args);
335
341
 
336
342
  // src/functions/evaluate/evaluate.ts
337
343
  var DISABLE_CACHE = true;
@@ -4731,7 +4737,7 @@ function isFromTrustedHost(trustedHosts, e) {
4731
4737
  }
4732
4738
 
4733
4739
  // src/constants/sdk-version.ts
4734
- var SDK_VERSION = "2.0.13";
4740
+ var SDK_VERSION = "2.0.16";
4735
4741
 
4736
4742
  // src/functions/register.ts
4737
4743
  var registry = {};
package/lib/edge/dev.js CHANGED
@@ -3479,24 +3479,30 @@ function isNodeRuntime() {
3479
3479
  }
3480
3480
 
3481
3481
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
3482
- var shouldForceBrowserRuntimeInNode = () => {
3482
+ var shouldForceBrowserRuntimeInNode = ({
3483
+ shouldLogWarning
3484
+ }) => {
3483
3485
  if (!isNodeRuntime())
3484
3486
  return false;
3485
3487
  const isArm64 = process.arch === "arm64";
3486
3488
  const isNode20 = process.version.startsWith("v20");
3487
3489
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
3488
3490
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
3489
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
3491
+ if (shouldLogWarning) {
3492
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
3490
3493
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
3491
3494
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
3492
3495
  `);
3496
+ }
3493
3497
  return true;
3494
3498
  }
3495
3499
  return false;
3496
3500
  };
3497
3501
 
3498
3502
  // src/functions/evaluate/choose-eval.ts
3499
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInEdge(args);
3503
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
3504
+ shouldLogWarning: true
3505
+ }) ? runInBrowser(args) : runInEdge(args);
3500
3506
 
3501
3507
  // src/functions/evaluate/evaluate.ts
3502
3508
  var DISABLE_CACHE = true;
@@ -8391,7 +8397,7 @@ function isFromTrustedHost(trustedHosts, e) {
8391
8397
  }
8392
8398
 
8393
8399
  // src/constants/sdk-version.ts
8394
- var SDK_VERSION = "2.0.13";
8400
+ var SDK_VERSION = "2.0.16";
8395
8401
 
8396
8402
  // src/functions/register.ts
8397
8403
  var registry = {};
package/lib/edge/dev.jsx CHANGED
@@ -3474,24 +3474,30 @@ function isNodeRuntime() {
3474
3474
  }
3475
3475
 
3476
3476
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
3477
- var shouldForceBrowserRuntimeInNode = () => {
3477
+ var shouldForceBrowserRuntimeInNode = ({
3478
+ shouldLogWarning
3479
+ }) => {
3478
3480
  if (!isNodeRuntime())
3479
3481
  return false;
3480
3482
  const isArm64 = process.arch === "arm64";
3481
3483
  const isNode20 = process.version.startsWith("v20");
3482
3484
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
3483
3485
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
3484
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
3486
+ if (shouldLogWarning) {
3487
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
3485
3488
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
3486
3489
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
3487
3490
  `);
3491
+ }
3488
3492
  return true;
3489
3493
  }
3490
3494
  return false;
3491
3495
  };
3492
3496
 
3493
3497
  // src/functions/evaluate/choose-eval.ts
3494
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInEdge(args);
3498
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
3499
+ shouldLogWarning: true
3500
+ }) ? runInBrowser(args) : runInEdge(args);
3495
3501
 
3496
3502
  // src/functions/evaluate/evaluate.ts
3497
3503
  var DISABLE_CACHE = true;
@@ -7894,7 +7900,7 @@ function isFromTrustedHost(trustedHosts, e) {
7894
7900
  }
7895
7901
 
7896
7902
  // src/constants/sdk-version.ts
7897
- var SDK_VERSION = "2.0.13";
7903
+ var SDK_VERSION = "2.0.16";
7898
7904
 
7899
7905
  // src/functions/register.ts
7900
7906
  var registry = {};
package/lib/edge/index.js CHANGED
@@ -3477,24 +3477,30 @@ function isNodeRuntime() {
3477
3477
  }
3478
3478
 
3479
3479
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
3480
- var shouldForceBrowserRuntimeInNode = () => {
3480
+ var shouldForceBrowserRuntimeInNode = ({
3481
+ shouldLogWarning
3482
+ }) => {
3481
3483
  if (!isNodeRuntime())
3482
3484
  return false;
3483
3485
  const isArm64 = process.arch === "arm64";
3484
3486
  const isNode20 = process.version.startsWith("v20");
3485
3487
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
3486
3488
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
3487
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
3489
+ if (shouldLogWarning) {
3490
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
3488
3491
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
3489
3492
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
3490
3493
  `);
3494
+ }
3491
3495
  return true;
3492
3496
  }
3493
3497
  return false;
3494
3498
  };
3495
3499
 
3496
3500
  // src/functions/evaluate/choose-eval.ts
3497
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInEdge(args);
3501
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
3502
+ shouldLogWarning: true
3503
+ }) ? runInBrowser(args) : runInEdge(args);
3498
3504
 
3499
3505
  // src/functions/evaluate/evaluate.ts
3500
3506
  var DISABLE_CACHE = true;
@@ -8376,7 +8382,7 @@ function isFromTrustedHost(trustedHosts, e) {
8376
8382
  }
8377
8383
 
8378
8384
  // src/constants/sdk-version.ts
8379
- var SDK_VERSION = "2.0.13";
8385
+ var SDK_VERSION = "2.0.16";
8380
8386
 
8381
8387
  // src/functions/register.ts
8382
8388
  var registry = {};
@@ -3472,24 +3472,30 @@ function isNodeRuntime() {
3472
3472
  }
3473
3473
 
3474
3474
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
3475
- var shouldForceBrowserRuntimeInNode = () => {
3475
+ var shouldForceBrowserRuntimeInNode = ({
3476
+ shouldLogWarning
3477
+ }) => {
3476
3478
  if (!isNodeRuntime())
3477
3479
  return false;
3478
3480
  const isArm64 = process.arch === "arm64";
3479
3481
  const isNode20 = process.version.startsWith("v20");
3480
3482
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
3481
3483
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
3482
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
3484
+ if (shouldLogWarning) {
3485
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
3483
3486
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
3484
3487
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
3485
3488
  `);
3489
+ }
3486
3490
  return true;
3487
3491
  }
3488
3492
  return false;
3489
3493
  };
3490
3494
 
3491
3495
  // src/functions/evaluate/choose-eval.ts
3492
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInEdge(args);
3496
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
3497
+ shouldLogWarning: true
3498
+ }) ? runInBrowser(args) : runInEdge(args);
3493
3499
 
3494
3500
  // src/functions/evaluate/evaluate.ts
3495
3501
  var DISABLE_CACHE = true;
@@ -7879,7 +7885,7 @@ function isFromTrustedHost(trustedHosts, e) {
7879
7885
  }
7880
7886
 
7881
7887
  // src/constants/sdk-version.ts
7882
- var SDK_VERSION = "2.0.13";
7888
+ var SDK_VERSION = "2.0.16";
7883
7889
 
7884
7890
  // src/functions/register.ts
7885
7891
  var registry = {};
package/lib/node/dev.js CHANGED
@@ -506,24 +506,30 @@ function isNodeRuntime() {
506
506
  }
507
507
 
508
508
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
509
- var shouldForceBrowserRuntimeInNode = () => {
509
+ var shouldForceBrowserRuntimeInNode = ({
510
+ shouldLogWarning
511
+ }) => {
510
512
  if (!isNodeRuntime())
511
513
  return false;
512
514
  const isArm64 = process.arch === "arm64";
513
515
  const isNode20 = process.version.startsWith("v20");
514
516
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
515
517
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
516
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
518
+ if (shouldLogWarning) {
519
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
517
520
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
518
521
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
519
522
  `);
523
+ }
520
524
  return true;
521
525
  }
522
526
  return false;
523
527
  };
524
528
 
525
529
  // src/functions/evaluate/choose-eval.ts
526
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInNode(args);
530
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
531
+ shouldLogWarning: true
532
+ }) ? runInBrowser(args) : runInNode(args);
527
533
 
528
534
  // src/functions/evaluate/evaluate.ts
529
535
  var DISABLE_CACHE = true;
@@ -5415,7 +5421,7 @@ function isFromTrustedHost(trustedHosts, e) {
5415
5421
  }
5416
5422
 
5417
5423
  // src/constants/sdk-version.ts
5418
- var SDK_VERSION = "2.0.13";
5424
+ var SDK_VERSION = "2.0.16";
5419
5425
 
5420
5426
  // src/functions/register.ts
5421
5427
  var registry = {};
package/lib/node/dev.jsx CHANGED
@@ -501,24 +501,30 @@ function isNodeRuntime() {
501
501
  }
502
502
 
503
503
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
504
- var shouldForceBrowserRuntimeInNode = () => {
504
+ var shouldForceBrowserRuntimeInNode = ({
505
+ shouldLogWarning
506
+ }) => {
505
507
  if (!isNodeRuntime())
506
508
  return false;
507
509
  const isArm64 = process.arch === "arm64";
508
510
  const isNode20 = process.version.startsWith("v20");
509
511
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
510
512
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
511
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
513
+ if (shouldLogWarning) {
514
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
512
515
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
513
516
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
514
517
  `);
518
+ }
515
519
  return true;
516
520
  }
517
521
  return false;
518
522
  };
519
523
 
520
524
  // src/functions/evaluate/choose-eval.ts
521
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInNode(args);
525
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
526
+ shouldLogWarning: true
527
+ }) ? runInBrowser(args) : runInNode(args);
522
528
 
523
529
  // src/functions/evaluate/evaluate.ts
524
530
  var DISABLE_CACHE = true;
@@ -4918,7 +4924,7 @@ function isFromTrustedHost(trustedHosts, e) {
4918
4924
  }
4919
4925
 
4920
4926
  // src/constants/sdk-version.ts
4921
- var SDK_VERSION = "2.0.13";
4927
+ var SDK_VERSION = "2.0.16";
4922
4928
 
4923
4929
  // src/functions/register.ts
4924
4930
  var registry = {};
package/lib/node/index.js CHANGED
@@ -504,24 +504,30 @@ function isNodeRuntime() {
504
504
  }
505
505
 
506
506
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
507
- var shouldForceBrowserRuntimeInNode = () => {
507
+ var shouldForceBrowserRuntimeInNode = ({
508
+ shouldLogWarning
509
+ }) => {
508
510
  if (!isNodeRuntime())
509
511
  return false;
510
512
  const isArm64 = process.arch === "arm64";
511
513
  const isNode20 = process.version.startsWith("v20");
512
514
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
513
515
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
514
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
516
+ if (shouldLogWarning) {
517
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
515
518
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
516
519
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
517
520
  `);
521
+ }
518
522
  return true;
519
523
  }
520
524
  return false;
521
525
  };
522
526
 
523
527
  // src/functions/evaluate/choose-eval.ts
524
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInNode(args);
528
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
529
+ shouldLogWarning: true
530
+ }) ? runInBrowser(args) : runInNode(args);
525
531
 
526
532
  // src/functions/evaluate/evaluate.ts
527
533
  var DISABLE_CACHE = true;
@@ -5400,7 +5406,7 @@ function isFromTrustedHost(trustedHosts, e) {
5400
5406
  }
5401
5407
 
5402
5408
  // src/constants/sdk-version.ts
5403
- var SDK_VERSION = "2.0.13";
5409
+ var SDK_VERSION = "2.0.16";
5404
5410
 
5405
5411
  // src/functions/register.ts
5406
5412
  var registry = {};
@@ -499,24 +499,30 @@ function isNodeRuntime() {
499
499
  }
500
500
 
501
501
  // src/functions/evaluate/should-force-browser-runtime-in-node.ts
502
- var shouldForceBrowserRuntimeInNode = () => {
502
+ var shouldForceBrowserRuntimeInNode = ({
503
+ shouldLogWarning
504
+ }) => {
503
505
  if (!isNodeRuntime())
504
506
  return false;
505
507
  const isArm64 = process.arch === "arm64";
506
508
  const isNode20 = process.version.startsWith("v20");
507
509
  const hasNoNodeSnapshotNodeOption = process.env.NODE_OPTIONS?.includes("--no-node-snapshot");
508
510
  if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
509
- logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
511
+ if (shouldLogWarning) {
512
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
510
513
  If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
511
514
  See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
512
515
  `);
516
+ }
513
517
  return true;
514
518
  }
515
519
  return false;
516
520
  };
517
521
 
518
522
  // src/functions/evaluate/choose-eval.ts
519
- var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInNode(args);
523
+ var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode({
524
+ shouldLogWarning: true
525
+ }) ? runInBrowser(args) : runInNode(args);
520
526
 
521
527
  // src/functions/evaluate/evaluate.ts
522
528
  var DISABLE_CACHE = true;
@@ -4903,7 +4909,7 @@ function isFromTrustedHost(trustedHosts, e) {
4903
4909
  }
4904
4910
 
4905
4911
  // src/constants/sdk-version.ts
4906
- var SDK_VERSION = "2.0.13";
4912
+ var SDK_VERSION = "2.0.16";
4907
4913
 
4908
4914
  // src/functions/register.ts
4909
4915
  var registry = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "2.0.13",
3
+ "version": "2.0.16",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",
@@ -80,7 +80,7 @@
80
80
  "scripts": {
81
81
  "release": "npm publish",
82
82
  "build-inline-fns": "yarn g:build-inline-fns",
83
- "build": "nx run-many -p @builder.io/sdk-solid -t build:node build:edge build:browser",
83
+ "build": "yarn g:nx run-many -p @builder.io/sdk-solid -t build:node build:edge build:browser",
84
84
  "build:one": "tsup",
85
85
  "build:node": "SDK_ENV=node yarn build:one",
86
86
  "build:edge": "SDK_ENV=edge yarn build:one",
@@ -97,8 +97,6 @@
97
97
  "@builder.io/sdks": "workspace:*",
98
98
  "esbuild": "^0.18.15",
99
99
  "esbuild-plugin-solid": "^0.5.0",
100
- "nx": "^19.6.5",
101
- "nx-cloud": "^19.0.0",
102
100
  "solid-js": "^1.7.8",
103
101
  "tsup": "^7.1.0",
104
102
  "tsup-preset-solid": "^2.0.1",