Skip to content

chore: bump many workspace deps#3930

Closed
lsh wants to merge 27 commits intomainfrom
lsh/bump-ws-deps
Closed

chore: bump many workspace deps#3930
lsh wants to merge 27 commits intomainfrom
lsh/bump-ws-deps

Conversation

@lsh
Copy link
Copy Markdown
Member

@lsh lsh commented Jun 11, 2024

The goal of this PR is to reduce out of date interdependencies in the workspace. I basically just went through and ran ncu -ui in each folder, and updated any minor or patch versions. The only project where this didn't work is in vega-typings, which has some issues related to the ts-schema-generator that we can look into later (and are semi-unrelated to the goal of this PR anyway).

Lukas Hermann added 27 commits June 11, 2024 14:46
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
@lsh lsh requested a review from a team as a code owner June 11, 2024 23:24
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying vega with  Cloudflare Pages  Cloudflare Pages

Latest commit: 752d4ac
Status:🚫  Build failed.

View logs

@domoritz
Copy link
Copy Markdown
Member

Why not use ncu -uiws?

@lsh
Copy link
Copy Markdown
Member Author

lsh commented Jun 11, 2024

ncu -uiws didn't seem to bump all of the deps (particularly it didn't bump any vega-* package when I tried)

Copy link
Copy Markdown
Member

@domoritz domoritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like these are all within bumps except one.

"vega-time": "~2.1.1",
"vega-transforms": "~4.11.1",
"vega-typings": "~1.1.0",
"vega-typings": "~1.3.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be the only non automatic version bump.

@lsh
Copy link
Copy Markdown
Member Author

lsh commented Jun 11, 2024

I wonder if ncu -uiws didn't work because we use lerna as opposed to NPM workspaces. We should probably migrate to that as a follow up

Copy link
Copy Markdown
Member

@hydrosquall hydrosquall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good first step, thanks for taking this on. Commenting to note that for every package that had its version changed, that package will also need to have a new version. (For example vega-functions was at 5.14.0 before this change. Upgrading the versions will cause a version bump for it, maybe 5.14.1.

Unfortunately, that will cause packages that reference vega-functions (like vega-view) to need to bump which copy of vega-function they're importing too.

The amount of churn here can be limited by running the upgrade in topological sort order (so that leaves are bumped first like vega-util, and roots like vega-view get bumped last.

To keep this already large change low risk, we could avoid the d3- deps, and just do the vega- ones in this PR. However, if we feel confident in all the d3-bumps, feel free to leave the change as is.

hydrosquall added a commit that referenced this pull request Jun 12, 2024
## Motivation

- Repeat vega/vega-lite#9362, but for vega repo
instead of vega-lite. Build broke after we changed from vite back to
parcel
- Noticed build preview was failing for a recent PR for reasons
unrelated to that change (
#3930 (comment) )

## Changes

- Update the build command to match what we have in vega-lite (remove
the dependency on vite)

## Testing

The cloudflare deploy preview should succeed on this branch (watch for
comment)
lsh pushed a commit that referenced this pull request Jun 13, 2024
Take two on #3930. Using @hydrosquall's diagram on the topological sort
to try and bump things in order.

---------

Signed-off-by: Lukas Hermann <lukas.hermann@databricks.com>
@lsh
Copy link
Copy Markdown
Member Author

lsh commented Jun 13, 2024

Closed in favor of #3932

@lsh lsh closed this Jun 13, 2024
@lsh lsh deleted the lsh/bump-ws-deps branch June 13, 2024 20:30
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.

3 participants