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 all dependencies #2693

Merged
merged 20 commits into from
Oct 18, 2023
Merged

update all dependencies #2693

merged 20 commits into from
Oct 18, 2023

Conversation

ac10n
Copy link
Contributor

@ac10n ac10n commented Oct 10, 2023

closes #2612
closes #2435
closes #2396

  • Your code builds cleanly without any errors or warnings
  • You have run the linter against the changes
  • You have added unit tests (if relevant/appropriate)
  • You have added integration tests (if relevant/appropriate)
  • All public methods or types have TypeDoc coverage with a complete description, and ideally an @example
  • You have added or updated corresponding documentation
  • If relevant, you have written a first draft summary describing the change for inclusion in Release Notes.

In this PR, please also make sure:

  • You have linked this PR to the issue by putting closes #TICKETNUMBER in the description box (when applicable)
  • You have added a concise description on your changes

Release Note Draft Snippet

All dependencies are updated to the latest versions. The only exception is axios, which will later be replace with fetch.
Also, the node version is upgraded from 16 to 18.

@netlify
Copy link

netlify bot commented Oct 10, 2023

Deploy Preview for taquito-test-dapp ready!

Name Link
🔨 Latest commit 88a8d59
🔍 Latest deploy log https://app.netlify.com/sites/taquito-test-dapp/deploys/652e1ab392ae9a00089b1f8a
😎 Deploy Preview https://deploy-preview-2693--taquito-test-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

github-actions bot commented Oct 10, 2023

A new deploy preview is available on Netlify at https://321a4da--tezostaquito.netlify.app

@ac10n ac10n requested review from dsawali and hui-an-yang October 11, 2023 17:52
@github-actions
Copy link

github-actions bot commented Oct 11, 2023

New packages have been deployed to the preview repository at https://npm.preview.tezostaquito.io/.

Published packages:

npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/

@ac10n ac10n force-pushed the 2023-oct-update-all-dependencies branch 3 times, most recently from 599f0d3 to 56c5726 Compare October 12, 2023 20:08
@ac10n ac10n marked this pull request as ready for review October 12, 2023 20:42
.github/workflows/deploy_website.yml Show resolved Hide resolved
@@ -17,7 +17,6 @@ jobs:
fail-fast: false
matrix:
node:
- 'lts/gallium'
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think we should remove gallium completely, even if gallium is maintenance LTS, it still is LTS. So we'd want to make sure it still works with gallium

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. I'll check to see how much things need to go back to support gallium.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a problem here: When we test Taquito on 16, we also build it. But new version of some of our dependencies require node >=18. Examples are rollup and lint-staged.
I think one good way to move faster is:

  1. Move the build environment with the lastest lts (or even latest current)
  2. Keep the engine version in package.json support the oldest supported lts
  3. In CI, build with a recent node version, but test with all supported node versions

This allows us to move faster, but make sure we keep supporting the node versions we still care about.

@@ -77,7 +76,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/gallium
node-version: lts/hydrogen
Copy link
Contributor

Choose a reason for hiding this comment

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

can we be certain that flextesa builds are good with hydrogen? iirc we used to have an issue with it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are getting more flextesa errors. Maybe this explains it. What is a possible reason for the relation?

| v16 LTS/Gallium | ✅ |
| 17.3.x | ✅ |
| v16.13.1 | ❌ |
| v16 LTS/Gallium | ❌ |
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should still support gallium until Node themselves stops maintenance LTS on gallium

});

return object;
test('Estimates, forges, signs, obtains the operation hash and injects the operation', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a little bit confused to read what the changes actually are here in this file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suggest you set the option "hide whitespaces"
image

@@ -12,7 +12,7 @@
},
"version": "17.3.1",
"dependencies": {
"@ledgerhq/devices": "6.20.0",
"@ledgerhq/devices": "8.0.7",
Copy link
Contributor

Choose a reason for hiding this comment

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

are we able to test these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ledgerhq/devices seems not used anywhere 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hui-an-yang Should we remove it then?

Copy link
Collaborator

@hui-an-yang hui-an-yang Oct 17, 2023

Choose a reason for hiding this comment

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

i'd love to remove it, might still want to be safe to test it's working as expected

@@ -22,8 +21,5 @@ export default {
json(),
// Compile TypeScript files
typescript({ tsconfig: './tsconfig.prod.json', useTsconfigDeclarationDir: true }),

// Resolve source maps to the original source
sourceMaps(),
Copy link
Contributor

Choose a reason for hiding this comment

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

do we not need these anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need to verify this. I'll compare packaged contents before and after this change to make sure nothing is being broken. The reason for this change is that the rollup-plugin-sourcemap is not updated for a long time, and depends on an older version of rollup.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked, and seems that the files are the same before and after this change

@@ -88,7 +88,13 @@ export class RemoteSigner implements Signer {

private createURL(path: string) {
// Trim trailing slashes because it is assumed to be included in path
return `${this.rootUrl.replace(/\/+$/g, '')}${path}`;
// the regex solution is prone to ReDoS. Please see: https://stackoverflow.com/questions/6680825/return-string-without-trailing-slash#comment124306698_6680877
Copy link
Contributor

Choose a reason for hiding this comment

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

good call on fixing this

REVEAL_TZ3: 2000,
REVEAL_TZ4: 2000,
};
export const DEFAULT_FEE = {
Copy link
Contributor

Choose a reason for hiding this comment

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

make sure to update all references to the type change from enum to object

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interestingly, there seemed to be no need to change. And frankly, I think object is more relevant here.

@ac10n ac10n force-pushed the 2023-oct-update-all-dependencies branch from 5145339 to 09663a5 Compare October 16, 2023 16:25
@@ -84,7 +83,8 @@ export default ({
const { Parser, packDataBytes } = await import('@taquito/michel-codec');
const { RpcClient } = await import('@taquito/rpc');
const { SaplingToolkit, InMemorySpendingKey, InMemoryViewingKey } = await import('@taquito/sapling');

const TransportWebHID = (await import("@ledgerhq/hw-transport-webhid")).default;
Copy link
Collaborator

Choose a reason for hiding this comment

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

curious the reason behind this change have the package update what it export?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, but as we update packages, some of them fail to be unable to be imported normally in the website. Should have something to do with ESM vs commonJS packaging

Copy link
Collaborator

Choose a reason for hiding this comment

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

If this is the only way it works, I understand that we have to
Not a blocker just trying to understand the root cause, unsure esm/commonjs is relevant in the context since @ledgerhq/hw-transport-webhid didn't upgrade

tsconfig.typedoc.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@hui-an-yang hui-an-yang left a comment

Choose a reason for hiding this comment

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

Left some comments to address, many thanks for updating all dependencies!
For next time will appreciate that we can separate a pr for style only changes will be easier for teamwork.

@ac10n ac10n merged commit d15c5ec into master Oct 18, 2023
9 of 10 checks passed
@ac10n ac10n deleted the 2023-oct-update-all-dependencies branch October 18, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants