Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @builder.io/sdk-vue to v2 #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 15, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@builder.io/sdk-vue (source) ^1.0.15 -> ^2.0.31 age adoption passing confidence

Release Notes

BuilderIO/builder (@​builder.io/sdk-vue)

v2.0.31

Compare Source

Patch Changes
  • 9b11521: fix serializing single arg arrow functions that some compilers emit
  • 027a07a: fix: standardize locale handling

v2.0.30

Compare Source

Patch Changes
  • 5e88efa: Logs every API URL hit from the SDK whenever process.env.DEBUG is set to true in the project

v2.0.29

Compare Source

Patch Changes
  • efa4798: Fix: accordion block order of items and visual editing empty blocks

v2.0.28

Compare Source

Patch Changes
  • c2e7846: Fix: make Column block's state reactive to its props

v2.0.26

Compare Source

Patch Changes
  • 2e2f937: Fix: resolve nuxt-isolated-vm-plugin.js import path correctly so that it doesn't check from the root folder
  • 9da4f89: Feature: Adds apiHost prop to Content. It dictates which API endpoint is used for the content fetching. Defaults to 'https://cdn.builder.io'
  • 185ee23: Fix: duplication of content in the Visual Editor when editing a symbol model that renders another symbol

v2.0.25

Compare Source

Patch Changes

v2.0.24

Compare Source

Patch Changes

v2.0.23

Compare Source

Patch Changes
  • 4660aa6: Feature: optimize simple state.* read access bindings by avoiding runtime-specific eval, and instead fetching the value directly from the state

v2.0.22

Compare Source

Patch Changes
  • 49d0aa3: [Types]: adds a second argument to the onChange argument for custom component Inputs called previousOptions. It contains the options argument in its old state before the current onChange event was triggered.

    Before:

    onChange?:
      | ((options: Map<string, any>) => void | Promise<void>)
      | string;

    After:

      onChange?:
        | ((options: Map<string, any>, previousOptions?: Map<string, any>) => void | Promise<void>)
        | string;

v2.0.21

Compare Source

Patch Changes
  • 269db7b: Fix: execute JS code and make http requests on Content initialization (instead of "on mount")

  • 269db7b: Various improvements to edge runtime interpreter:

    • Correctly handle code blocks with async/await polyfills (typically jsCode blocks)
    • Improve handling of getters and setters on state values

v2.0.20

Compare Source

Patch Changes
  • ff58662: Fix: remove @builder.io/sdk-vue/nuxt-initialize-node-runtime-plugin plugin export

v2.0.17

Compare Source

Patch Changes
  • 01d8496: Feature: add @builder.io/sdk-vue/node/init entry point with initializeNodeRuntime export that sets the isolated-vm instance.

    This import should be called in a server-only environment. For convenience, we offer:

    • (Recommended) Updates to @builder.io/sdk-vue/nuxt Nuxt module which helps you achieve this in one place:

      • added includeCompiledCss flag that adds the compiled Builder.io CSS in Nuxt (defaults to true)
      • added initializeNodeRuntime flag that automatically imports and executes initializeNodeRuntime() in the server (defaults to false)
      // nuxt.config.ts
      export default defineNuxtConfig({
        // ...
        modules: [
          [
            "@&#8203;builder.io/sdk-vue/nuxt",
            {
              includeCompiledCss: true, // Includes Builder.io CSS (default: true)
              initializeNodeRuntime: true, // Initializes isolated VM in Node runtime (default: false)
            },
          ],
        ],
      });
    • If you prefer to call this manually without using our Nuxt module, you can import and call initializeNodeRuntime() from the package @builder.io/sdk-vue/node/init. Make sure that this function is imported and executed only in the Node runtime environment, for example:

      // server/middleware/builder.global.ts
      export default defineEventHandler(async (event) => {
        const { initializeNodeRuntime } = await import(
          "@&#8203;builder.io/sdk-vue/node/init"
        );
        initializeNodeRuntime();
      });
    • If you are not using Nuxt, or would rather initialize isolated-vm yourself, you must import and call initializeNodeRuntime() in such a way that the function is imported and executed ONLY in the Node runtime, and never in the browser. Failure to do so will result in a build and/or runtime error.

v2.0.16

Compare Source

Patch Changes
  • 348de96: Fix: disable initializeNodeRuntime() on arm64 machines running node 20

v2.0.15

Compare Source

Patch Changes
  • 50778a4: types: export GetContentOptions

v2.0.14

Compare Source

v2.0.13

Compare Source

Patch Changes
  • 51285ea: Fix: repeat items when they are Symbols

v2.0.8

Compare Source

Patch Changes
  • e8b80b3: Fix: scoped isInteractive prop for RSC SDK only so that it fixes Inner Layout > "Columns" option during visual editing

v2.0.5

Compare Source

Patch Changes
  • 345086b: Fixes data bindings in Text blocks

v2.0.3

Compare Source

Patch Changes
  • 5e88efa: Logs every API URL hit from the SDK whenever process.env.DEBUG is set to true in the project

v2.0.2

Compare Source

Patch Changes
  • efa4798: Fix: accordion block order of items and visual editing empty blocks

v2.0.1

Compare Source

Patch Changes
  • 01d8496: Feature: add @builder.io/sdk-vue/node/init entry point with initializeNodeRuntime export that sets the isolated-vm instance.

    This import should be called in a server-only environment. For convenience, we offer:

    • (Recommended) Updates to @builder.io/sdk-vue/nuxt Nuxt module which helps you achieve this in one place:

      • added includeCompiledCss flag that adds the compiled Builder.io CSS in Nuxt (defaults to true)
      • added initializeNodeRuntime flag that automatically imports and executes initializeNodeRuntime() in the server (defaults to false)
      // nuxt.config.ts
      export default defineNuxtConfig({
        // ...
        modules: [
          [
            "@&#8203;builder.io/sdk-vue/nuxt",
            {
              includeCompiledCss: true, // Includes Builder.io CSS (default: true)
              initializeNodeRuntime: true, // Initializes isolated VM in Node runtime (default: false)
            },
          ],
        ],
      });
    • If you prefer to call this manually without using our Nuxt module, you can import and call initializeNodeRuntime() from the package @builder.io/sdk-vue/node/init. Make sure that this function is imported and executed only in the Node runtime environment, for example:

      // server/middleware/builder.global.ts
      export default defineEventHandler(async (event) => {
        const { initializeNodeRuntime } = await import(
          "@&#8203;builder.io/sdk-vue/node/init"
        );
        initializeNodeRuntime();
      });
    • If you are not using Nuxt, or would rather initialize isolated-vm yourself, you must import and call initializeNodeRuntime() in such a way that the function is imported and executed ONLY in the Node runtime, and never in the browser. Failure to do so will result in a build and/or runtime error.

v2.0.0

Compare Source

Major Changes
  • 2c6330f: Breaking Change 🧨: updated shouldReceiveBuilderProps config of Registered Components, with the following NEW defaults:

    shouldReceiveBuilderProps: {
        builderBlock: false, // used to be `true`
        builderContext: false, // used to be `true`
        builderComponents: false, // unchanged
        builderLinkComponent: false, // unchanged
      },

    This means that by default, the SDK will no longer provide any Builder props unless its respective config is explicitly set to true.

  • d031580: Breaking Change 🧨: Columns block now computes percentage widths correctly, by subtracting gutter space proportionally to each percentage.
    Previously, it computed the column's widths by subtracting gutter space equally from each column's width. This previous behavior was incorrect, and most strongly felt when the space was a substantially high percentage of the total width of the Columns block.

v1.1.2

Compare Source

Patch Changes
  • 1defae7: Refactor: move Embed iframe generation to Visual Editor

v1.1.1

Compare Source

Patch Changes
  • 22de13c: Fix: add missing override component config

v1.1.0

Compare Source

Minor Changes
  • 3594120: Feature: add shouldReceiveBuilderProps config to Registered Components, with the following defaults:

    shouldReceiveBuilderProps: {
        builderBlock: true,
        builderContext: true,
        builderComponents: false,
        builderLinkComponent: false,
      },

    To configure a component to receive only certain Builder props, override the shouldReceiveBuilderProps config:

    Example:

    export const componentInfo = {
      name: "Text",
    
      shouldReceiveBuilderProps: {
        builderBlock: true,
        builderContext: false,
        builderComponents: true,
        builderLinkComponent: false,
      },
    
      inputs: [
        {
          name: "text",
          type: "html",
          required: true,
          autoFocus: true,
          bubble: true,
          defaultValue: "Enter some text...",
        },
      ],
    };

v1.0.36

Compare Source

Patch Changes
  • 6187c39: Fix: required option for TextArea and Select blocks
  • 6187c39: Feat: Add support for TextArea block

v1.0.35

Compare Source

Patch Changes
  • bb4a5fd: Feature: add webp support for Image block file uploads.
  • 1f62b28: Fix: Remove iframely API key from Embed block logic.

v1.0.33

Compare Source

Patch Changes
  • 6c8db7e: Fix: check e.origin of the message to be a URL first

v1.0.32

Compare Source

Patch Changes
  • a38eae0: Fix: pass Builder props to blocks and custom components only when needed.
  • e31ef49: Misc: cleanup error message for edge runtime evaluation.
  • 945f26e: Adds the highPriority option to the Image block component to ensure eager loading.

v1.0.31

Compare Source

Patch Changes
  • b4381f5: Fix: canTrack=false not respected in Symbols

v1.0.30

Compare Source

Patch Changes
  • 4aaba38: Fix: bump isolated-vm dependency to 5.0.0, adding support for Node v22.

v1.0.29

Compare Source

Patch Changes

v1.0.28

Compare Source

Patch Changes
  • f3aab34: Feat: Accordion widget for gen2 sdks
  • 3f98355: Fix: types for ESM build

v1.0.27

Compare Source

Patch Changes
  • 70fccea: Fix: query option correctly flattens mongodb queries

v1.0.26

Compare Source

Patch Changes
  • af84d1e: Fix: make initializeNodeRuntime argument optional

v1.0.25

Compare Source

Patch Changes
  • bd21dcf: Fix: improve NodeJS runtime performance by reusing the same IsolatedVM Isolate instance for all data bindings. Add the ability to provide arguments to configure the isolate in initializeNodeRuntime via an ivmIsolateOptions parameter.

v1.0.24

Compare Source

Patch Changes
  • 84cd444: feature: add the Builder Tabs block (ported from gen1 widgets).

v1.0.23

Compare Source

Patch Changes
  • 78dee25: Fix: remove redundant warning for evaluation of empty code blocks.

v1.0.22

Compare Source

Patch Changes
  • f3c5ff3: Fix: isPreviewing logic on the server, and make usage of isEditing unnecessary.
  • 46bd611: Feature: add support for hover animations.

v1.0.21

Compare Source

Patch Changes
  • 7bad8d9: Fix: better error-logging for isolated-vm import.
  • d8e08ae: Fix: fetchOneEntry prop types of fetch and fetchOptions

v1.0.20

Compare Source

Patch Changes
  • a309a4f: Fix: add missing key prop to Select block's option

v1.0.19

Compare Source

Patch Changes
  • cde7c61: feat: export BuilderContext from sdks

v1.0.18

Compare Source

Patch Changes
  • 6aa7dd0: Fix: flicker during SSR of A/B test content due to re-hydration with new element.

v1.0.17

Compare Source

Patch Changes
  • 2ed2cb8: Fix: data connections making multiple unnecessary API calls

v1.0.16

Compare Source

Patch Changes
  • 35fc152: Fix: add data-id attributes to all inline script and style tags

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

netlify bot commented Jul 15, 2024

Deploy Preview for curious-haupia-7ca22e canceled.

Name Link
🔨 Latest commit a6f6c37
🔍 Latest deploy log https://app.netlify.com/sites/curious-haupia-7ca22e/deploys/67346e9803d2880008d16456

@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch from 1db1988 to 0f94939 Compare July 23, 2024 23:14
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch from 0f94939 to 3bdf888 Compare July 31, 2024 16:30
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch from 3bdf888 to 27e92c0 Compare August 7, 2024 17:45
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch 2 times, most recently from df6a4f8 to dda49c0 Compare August 22, 2024 17:31
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch from dda49c0 to 0fb1c70 Compare September 10, 2024 15:13
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch from 0fb1c70 to 69eacf1 Compare September 26, 2024 21:35
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch 3 times, most recently from a02dfe3 to 462da87 Compare October 8, 2024 21:09
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch 5 times, most recently from d1b5d20 to 50c3864 Compare October 25, 2024 21:38
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch 3 times, most recently from b717a18 to bf5804d Compare November 5, 2024 23:17
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch from bf5804d to 3c0c06c Compare November 12, 2024 15:21
@renovate renovate bot force-pushed the renovate/builder.io-sdk-vue-2.x branch from 3c0c06c to a6f6c37 Compare November 13, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants