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

Update Node dependencies #1676

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Update Node dependencies #1676

merged 1 commit into from
Jan 3, 2024

Conversation

ggrossetie
Copy link
Member

@ggrossetie ggrossetie commented Nov 8, 2023

This PR contains the following updates:

Package Type Update Change
@excalidraw/excalidraw dependencies minor 0.16.1 -> 0.17.2
node volta minor 18.18.2 -> 18.19.0
pino (source) dependencies minor 8.16.1 -> 8.17.2
vega dependencies minor 5.25.0 -> 5.26.1
vega-lite (source) dependencies patch 5.16.1 -> 5.16.3

Release Notes

excalidraw/excalidraw

v0.17.0

Compare Source

v0.17.0 (2023-11-14)

Features
  • Added support for disabling image tool (also disabling image insertion in general, though keeps support for importing from .excalidraw files) #​6320.

    For disabling image you need to set 👇

    UIOptions.tools = {
      image: false
    }
    
  • Support excalidrawAPI prop for accessing the Excalidraw API #​7251.

  • Export getCommonBounds helper from the package #​7247.

  • Support frames via programmatic API #​7205.

  • Export elementsOverlappingBBox, isElementInsideBBox, elementPartiallyOverlapsWithOrContainsBBox helpers for filtering/checking if elements within bounds. #​6727

  • Regenerate ids by default when using transform api and also update bindings by 0.5px to avoid possible overlapping #​7195

  • Add onChange, onPointerDown, onPointerUp api subscribers #​7154.

  • Support props.locked for setActiveTool #​7153.

  • Add selected prop for MainMenu.Item and MainMenu.ItemCustom components to indicate active state. #​7078

Fixes
  • Double image dialog on image insertion #​7152.
Breaking Changes
  • The Ref support has been removed in v0.17.0 so if you are using refs, please update the integration to use the excalidrawAPI #​7251.

  • Additionally ready and readyPromise from the API have been discontinued. These APIs were found to be superfluous, and as part of the effort to streamline the APIs and maintain simplicity, they were removed in version v0.17.0 #​7251.

  • useDevice hook's return value was changed to differentiate between editor and viewport breakpoints. #​7243

Build
  • Support Preact #​7255. The host needs to set process.env.IS_PREACT to true

    When using vite or any build tools, you will have to make sure the process is accessible as we are accessing process.env.IS_PREACT to decide whether to use the preact build.

    Since Vite removes env variables by default, you can update the Vite config to ensure it's available 👇

    define: {
      "process.env.IS_PREACT": process.env.IS_PREACT,
    },
    

Excalidraw Library

This section lists the updates made to the excalidraw library and will not affect the integration.

Features
  • Allow D&D dice app domain for embeds #​7263

  • Remove full screen shortcut #​7222

  • Make adaptive-roughness less aggressive #​7250

  • Render frames on export #​7210

  • Support mermaid flowchart and sequence diagrams to excalidraw diagrams 🥳 #​6920

  • Support frames via programmatic API #​7205

  • Make clipboard more robust and reintroduce contextmenu actions #​7198

  • Support giphy.com embed domain #​7192

  • Renderer tweaks #​6698

  • Closing of "Save to.." Dialog on Save To Disk #​7168

  • Added Copy/Paste from Google Docs #​7136

  • Remove bound-arrows from frames #​7157

  • New dark mode theme & light theme tweaks #​7104

  • Better laser cursor for dark mode #​7132

  • Laser pointer improvements #​7128

  • Initial Laser Pointer MVP #​6739

  • Export iconFillColor() #​6996

  • Element alignments - snapping #​6256

Fixes
  • Image insertion bugs #​7278

  • ExportToSvg to honor frameRendering also for name not only for frame itself #​7270

  • Can't toggle penMode off due to missing typecheck in togglePenMode #​7273

  • Replace hard coded font family with const value in addFrameLabelsAsTextElements #​7269

  • Perf issue when ungrouping elements within frame #​7265

  • Fixes the shortcut collision between "toggleHandTool" and "distributeHorizontally" #​7189

  • Allow pointer events when editing a linear element #​7238

  • Make modal use viewport breakpoints #​7246

  • Align input :hover/:focus with spec #​7225

  • Dialog remounting on className updates #​7224

  • Don't update label position when dragging labelled arrows #​6891

  • Frame add/remove/z-index ordering changes #​7194

  • Element relative position when dragging multiple elements on grid #​7107

  • Freedraw non-solid bg hitbox not working #​7193

  • Actions panel ux improvement #​6850

  • Better fill rendering with latest RoughJS #​7031

  • Fix for Strange Symbol Appearing on Canvas after Deleting Grouped Graphics (Issue #​7116) #​7170

  • Attempt to fix flake in wysiwyg tests #​7173

  • Ensure ClipboardItem created in the same tick to fix safari #​7066

  • Wysiwyg left in undefined state on reload #​7123

  • Ensure relative z-index of elements added to frame is retained #​7134

  • Memoize static canvas on props.renderConfig #​7131

  • Regression from #​6739 preventing redirect link in view mode #​7120

  • Update links to excalidraw-app #​7072

  • Ensure we do not stop laser update prematurely #​7100

  • Remove invisible elements safely #​7083

  • Icon size in manifest #​7073

  • Elements being dropped/duplicated when added to frame #​7057

  • Frame name not editable on dbl-click #​7037

  • Polyfill Element.replaceChildren #​7034

Refactor
  • DRY out tool typing #​7086

  • Refactor event globals to differentiate from lastPointerUp #​7084

  • DRY out and simplify setting active tool from toolbar #​7079

Performance
  • Improve element in frame check #​7124

nodejs/node

v18.19.0

Compare Source

Notable Changes
npm updated to v10

After two months of baking time in Node.js 20, npm 10 is backported, so that all
release lines include a supported version of npm. This release includes npm v10.2.3.

Refer to nodejs/Release#​884 for the plan to land npm 10.

ESM and customization hook changes
Leverage loaders when resolving subsequent loaders

Loaders now apply to subsequent loaders, for example: --experimental-loader ts-node --experimental-loader loader-written-in-typescript.

Contributed by Maël Nison in #​43772.

New node:module API register for module customization hooks; new initialize hook

There is a new API register available on node:module to specify a file that exports module customization hooks, and pass data to the hooks, and establish communication channels with them. The “define the file with the hooks” part was previously handled by a flag --experimental-loader, but when the hooks moved into a dedicated thread in 20.0.0 there was a need to provide a way to communicate between the main (application) thread and the hooks thread. This can now be done by calling register from the main thread and passing data, including MessageChannel instances.

We encourage users to migrate to an approach that uses --import with register, such as:

node --import ./file-that-calls-register.js ./app.js

Using --import ensures that the customization hooks are registered before any application code runs, even the entry point.

Contributed by João Lenon and Jacob Smith in #​46826, Izaak Schroeder and Jacob Smith in #​48842 and #​48559.

import.meta.resolve unflagged

In ES modules, import.meta.resolve(specifier)
can be used to get an absolute URL string to which specifier resolves, similar
to require.resolve in CommonJS. This aligns Node.js with browsers and other server-side runtimes.

Contributed by Guy Bedford in #​49028.

--experimental-default-type flag to flip module defaults

The new flag --experimental-default-type can be used to flip the default
module system used by Node.js. Input that is already explicitly defined as ES
modules or CommonJS, such as by a package.json "type" field or .mjs/.cjs
file extension or the --input-type flag, is unaffected. What is currently
implicitly CommonJS would instead be interpreted as ES modules under
--experimental-default-type=module:

  • String input provided via --eval or STDIN, if --input-type is unspecified.

  • Files ending in .js or with no extension, if there is no package.json file
    present in the same folder or any parent folder.

  • Files ending in .js or with no extension, if the nearest parent
    package.json field lacks a type field; unless the folder is inside a
    node_modules folder.

In addition, extensionless files are interpreted as Wasm if
--experimental-wasm-modules is passed and the file contains the "magic bytes"
Wasm header.

Contributed by Geoffrey Booth in #​49869.

Other ESM-related changes
  • [ed2d46f4cc] - doc: move and rename loaders section (Geoffrey Booth) #​49261
  • [92734d4480] - esm: use import attributes instead of import assertions (Antoine du Hamel) #​50140
  • [e96f7ef881] - (SEMVER-MINOR) vm: use import attributes instead of import assertions (Antoine du Hamel) #​50141
Test runner changes

Many changes to the built-in test runner have been backported. This includes
the following additions:

Other notable changes
  • [0c4a84e8e9] - (SEMVER-MINOR) deps: update uvwasi to 0.0.19 (Node.js GitHub Bot) #​49908
  • [fae60c5841] - stream: use bitmap in readable state (Benjamin Gruenbaum) #​49745
  • [17246be158] - (SEMVER-MINOR) lib: add api to detect whether source-maps are enabled (翠 / green) #​46391
  • [2e9f7284a1] - (SEMVER-MINOR) lib: add tracing channel to diagnostics_channel (Stephen Belanger) #​44943
  • [cc7bf1f641] - (SEMVER-MINOR) src: add cjs_module_lexer_version base64_version (Jithil P Ponnan) #​45629
  • [b5d16cd8f0] - (SEMVER-MINOR) tls: add ALPNCallback server option for dynamic ALPN negotiation (Tim Perry) #​45190
Commits

Configuration

📅 Schedule: 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

@ggrossetie ggrossetie added the 🔗 dependencies Pull requests that update a dependency file label Nov 8, 2023
@ggrossetie ggrossetie changed the title Update dependency vega to v5.26.0 Update Node dependencies Nov 9, 2023
@ggrossetie ggrossetie force-pushed the renovate/node-dependencies branch 3 times, most recently from 21aa2d5 to e600c70 Compare November 15, 2023 02:16
@ggrossetie ggrossetie force-pushed the renovate/node-dependencies branch 2 times, most recently from 991e4eb to 7414dd1 Compare December 5, 2023 02:18
@ggrossetie ggrossetie force-pushed the renovate/node-dependencies branch 2 times, most recently from 0ab6fcf to ffbcc2f Compare December 15, 2023 02:18
@ggrossetie ggrossetie merged commit a0a73ce into main Jan 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔗 dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant