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

app: Dependency updates #2142

Merged
merged 26 commits into from
Jul 18, 2024
Merged

app: Dependency updates #2142

merged 26 commits into from
Jul 18, 2024

Conversation

illume
Copy link
Collaborator

@illume illume commented Jul 6, 2024

Remove and update some app/ dependencies.

Testing done

  • each commit builds on CI
  • ran the app, did some smoke testing
  • tested pushing assets using push-release-assets.js

@illume illume closed this Jul 15, 2024
@illume illume reopened this Jul 15, 2024
@illume illume added dependencies Pull requests that update a dependency file app labels Jul 15, 2024
@illume illume force-pushed the app-deps branch 2 times, most recently from 19122ac to b17a622 Compare July 15, 2024 11:01
@illume illume marked this pull request as ready for review July 15, 2024 12:13
@illume illume added security release Related to releasing labels Jul 15, 2024
@illume illume requested a review from a team July 15, 2024 12:19
@joaquimrocha
Copy link
Collaborator

@illume I have just tested push-release-assets.js:

  1. Create a new version draft, call it e.g. v0.1234 (DO NOT PUBLISH)
  2. Run the push-release-assets.js script with any file, like node push-release-assets.js v0.123 somefile.zip

Worked fine just by moving to this branch.

@illume
Copy link
Collaborator Author

illume commented Jul 16, 2024

Thanks @joaquimrocha

@illume
Copy link
Collaborator Author

illume commented Jul 16, 2024

Rebased against main, because merge conflict.

@illume illume marked this pull request as draft July 18, 2024 09:14
@illume
Copy link
Collaborator Author

illume commented Jul 18, 2024

The "Build Container" job failure is unrelated to this.

@illume illume marked this pull request as ready for review July 18, 2024 13:00
@illume
Copy link
Collaborator Author

illume commented Jul 18, 2024

I copied the plugin-management.js into the app/ and converted it to typescript. So running the built app works again.

@illume illume force-pushed the app-deps branch 2 times, most recently from 469b281 to 3e7fab4 Compare July 18, 2024 14:32
illume added 6 commits July 18, 2024 16:35
https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
illume added 19 commits July 18, 2024 16:36
From open docs:
"If you need this for Electron, use shell.openPath() instead."

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Much of the code already uses the built in console.log/info/error,
so just use that instead.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
The node:fs module can do these things now itself.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
@babel/cli 7.15.7 to 7.24.8
@babel/core 7.24.8 to 7.24.9
@babel/preset-env 7.15.8 to 7.24.8
@babel/preset-typescript 7.15.0 to 7.24.7

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Since we use a very recent chrome/electron and node we don't need
to use an old target with polyfils and such.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
This is not needed now. The error it fixed does not appear now.

Likely fixed with a newer babel/typescript or
fixed via a newer js target for ts.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Now node has fetch built in from 18.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
fetch is built into node now since 18.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
Signed-off-by: René Dudfield <renedudfield@microsoft.com>
@illume
Copy link
Collaborator Author

illume commented Jul 18, 2024

Rebased against main to fix conflict.

@illume
Copy link
Collaborator Author

illume commented Jul 18, 2024

Fixed a lint issue.

Because there were errors when importing from outside of tree in
the app builds.

This is temporary into a better solution can be done for sharing
this code between headlamp-plugin and app.

Had to remove env-paths usage because it wasn't working in when
running the build of the app.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
@joaquimrocha joaquimrocha merged commit 6051001 into main Jul 18, 2024
17 of 18 checks passed
@joaquimrocha joaquimrocha deleted the app-deps branch July 18, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app dependencies Pull requests that update a dependency file release Related to releasing security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants