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

Upgrades from yarn 1.x to yarn berry (4.x) #147

Merged
merged 10 commits into from
Jan 23, 2024

Conversation

arthurgousset
Copy link
Contributor

@arthurgousset arthurgousset commented Jan 18, 2024

Description

Upgrades our yarn package manager from 1.x to "yarn berry" (current yarn 4.x).

References

Tested

An explanation of how the changes were tested or an explanation as to why they don't need to be.

Top level ./package.json

Web workspace web/package.json

Firebase workspace firebase/package.json

Related issues

Backwards compatibility

This change is backwards compatible. All scripts work as expected or are updated accordingly.

Documentation

No additional docs for yarn berry needed. The version is specified in the top level package.json under

"packageManager": "[email protected]"

@arthurgousset arthurgousset linked an issue Jan 18, 2024 that may be closed by this pull request
Copy link

vercel bot commented Jan 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
faucet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2024 10:06am

@arthurgousset arthurgousset changed the title Upgrade to Yarn Berry (v3) Upgrade to Yarn Berry Jan 18, 2024
@arthurgousset arthurgousset changed the title Upgrade to Yarn Berry Upgrades to Yarn Berry Jan 18, 2024
Copy link

socket-security bot commented Jan 18, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@apidevtools/[email protected] filesystem, network Transitive: environment +5 857 kB philsturgeon
npm/@babel/[email protected] Transitive: environment +9 164 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 31.6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 49.1 kB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment +8 141 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 1.89 MB nicolo-ribaudo
npm/@babel/[email protected] None +1 274 kB nicolo-ribaudo
npm/@babel/[email protected] environment +3 2.5 MB nicolo-ribaudo
npm/@eslint/[email protected] filesystem, unsafe Transitive: environment, eval +26 3.73 MB eslintbot
npm/@eslint/[email protected] None 0 13.9 kB eslintbot
npm/@firebase/[email protected] Transitive: environment, filesystem, network, unsafe +30 50.1 MB google-wombot
npm/@firebase/[email protected] Transitive: environment, filesystem, network, unsafe +26 49 MB google-wombot
npm/@google-cloud/[email protected] environment Transitive: filesystem, network, shell +76 19.9 MB google-wombot
npm/@google-cloud/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +136 36.2 MB google-wombot
npm/@grpc/[email protected] environment, filesystem, network +16 8.75 MB murgatroid99
npm/@humanwhocodes/[email protected] Transitive: environment +7 216 kB nzakas
npm/@humanwhocodes/[email protected] None 0 53.3 kB nzakas
npm/@isaacs/[email protected] None +14 297 kB isaacs
npm/@jridgewell/[email protected] None 0 55.2 kB jridgewell
npm/@jridgewell/[email protected] None 0 45.9 kB jridgewell
npm/@jsdoc/[email protected] None 0 26.3 kB hegemonic
npm/@npmcli/[email protected] environment, network +8 453 kB npm-cli-ops
npm/@npmcli/[email protected] filesystem +2 136 kB lukekarrys
npm/@opentelemetry/[email protected] None 0 1.15 MB pichlermarc
npm/@panva/[email protected] None 0 12.6 kB panva
npm/@pkgjs/[email protected] None 0 74.2 kB oss-bot
npm/@pnpm/[email protected] None 0 15.2 kB zkochan
npm/@pnpm/[email protected] environment, filesystem +3 89 kB zkochan
npm/@rushstack/[email protected] None 0 205 kB odspnpm
npm/@scure/[email protected] None 0 79.4 kB paulmillr
npm/@tsconfig/[email protected] None 0 2.45 kB typescript-deploys
npm/@types/[email protected] None +2 3.95 MB types
npm/@types/[email protected] None +3 3.95 MB types
npm/@types/[email protected] None +2 3.94 MB types
npm/@types/[email protected] None +2 3.94 MB types
npm/@types/[email protected] None +2 3.94 MB types
npm/@types/[email protected] None +3 3.96 MB types
npm/@types/[email protected] None +6 4 MB types
npm/@types/[email protected] None +3 3.95 MB types
npm/@types/[email protected] None 0 9.28 kB types
npm/@types/[email protected] None 0 6.59 kB types
npm/@types/[email protected] None 0 31.7 kB types
npm/@types/[email protected] None +2 3.94 MB types
npm/@types/[email protected] None 0 6.71 kB types
npm/@types/[email protected] None 0 3.35 kB types
npm/@types/[email protected] None 0 3.78 kB types
npm/@types/[email protected] None 0 12.5 kB types
npm/@types/[email protected] None 0 3.2 kB types
npm/@types/[email protected] None +1 3.93 MB types
npm/@types/[email protected] None 0 5.81 kB types
npm/@types/[email protected] None +2 3.94 MB types
npm/@types/[email protected] None 0 6.16 kB types
npm/@types/[email protected] None 0 6.39 kB types
npm/@types/[email protected] None 0 4.62 kB types
npm/@types/[email protected] None +3 1.63 MB types
npm/@types/[email protected] None +2 3.94 MB types
npm/@types/[email protected] None +4 3.96 MB types
npm/@types/[email protected] None 0 8.25 kB types
npm/@types/[email protected] None +2 3.94 MB types
npm/@types/[email protected] None 0 23.2 kB types
npm/@types/[email protected] None +3 3.95 MB types
npm/@types/[email protected] None +4 3.95 MB types
npm/@types/[email protected] None 0 3.36 kB types
npm/@types/[email protected] None 0 8.65 kB types
npm/@vercel/[email protected] None +1 125 kB vercel-release-bot
npm/[email protected] None 0 4.83 kB lukekarrys
npm/[email protected] None 0 52.4 kB marijn
npm/[email protected] None 0 531 kB marijn
npm/[email protected] filesystem Transitive: environment +45 1.87 MB ctalkington
npm/[email protected] None +1 206 kB jessebeach
npm/[email protected] Transitive: eval +57 3.23 MB ljharb
npm/[email protected] None 0 126 kB kyldvs
npm/[email protected] None 0 808 kB aearly
npm/[email protected] None 0 2.18 MB npmdeque
npm/[email protected] None +1 130 kB jessebeach
npm/[email protected] network Transitive: environment, eval, filesystem, unsafe +32 1.42 MB dougwilson
npm/[email protected] Transitive: environment, filesystem +1 428 kB lpinca
npm/[email protected] filesystem Transitive: environment, shell +53 3.58 MB npm-cli-ops
npm/[email protected] network Transitive: filesystem +13 156 kB jaredwray
npm/[email protected] None 0 32.1 kB sindresorhus
npm/[email protected] None 0 17 kB jorgebucaran
npm/[email protected] environment, filesystem, shell 0 174 kB abetomo
npm/[email protected] Transitive: environment +9 275 kB ctalkington
npm/[email protected] None 0 10.5 kB dougwilson
npm/[email protected] Transitive: environment +6 220 kB ctalkington
npm/[email protected] None 0 1.25 MB faddee
npm/[email protected] None 0 1.4 MB david
npm/[email protected] None 0 14.2 kB lukeed
npm/[email protected] None 0 13.6 kB komagata
npm/[email protected] Transitive: environment, filesystem +2 267 kB thelarkinn
npm/[email protected] Transitive: eval +6 130 kB ljharb
npm/[email protected] None +2 53.3 kB ljharb
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +191 16.8 MB jounqin
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +188 20 MB ljharb
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +98 10.7 MB eslintbot
npm/[email protected] None 0 37.3 kB sssayegh
npm/[email protected] filesystem +17 506 kB mrmlnc
npm/[email protected] None +1 49.5 kB matteo.collina
npm/[email protected] Transitive: environment, filesystem, network, unsafe +64 113 MB google-wombot
npm/[email protected] shell Transitive: environment, filesystem +7 189 kB isaacs
npm/[email protected] None 0 173 kB pipobscure
npm/[email protected] filesystem, unsafe +1 116 kB hirokiosame
npm/[email protected] None +1 163 kB sindresorhus
npm/[email protected] environment, filesystem, shell Transitive: network +24 2.27 MB google-wombot
npm/[email protected] Transitive: environment, filesystem, network, shell +73 15.4 MB bcoe, google-wombot, mrdoob, ...1 more
npm/[email protected] Transitive: eval +5 121 kB ljharb
npm/[email protected] None 0 213 kB ignlg
npm/[email protected] Transitive: environment, filesystem, shell +46 5.93 MB sboudrias
npm/[email protected] None 0 20.3 kB elazutkin
npm/[email protected] environment +16 624 kB isaacs
npm/[email protected] network 0 547 kB panva
npm/[email protected] Transitive: environment, eval, filesystem, unsafe +23 7.03 MB hegemonic
npm/[email protected] None +15 310 kB charlesrea
npm/[email protected] Transitive: eval +60 3.52 MB ljharb
npm/[email protected] network Transitive: environment +22 4.86 MB auth0-oss
npm/[email protected] Transitive: environment, filesystem +7 1.77 MB fanatid
npm/[email protected] None +1 1.57 MB mcg
npm/[email protected] Transitive: filesystem +1 640 kB jedisct1
npm/[email protected] filesystem 0 531 kB jedisct1
npm/[email protected] None 0 21.9 kB jdalton
npm/[email protected] None 0 4.27 kB jdalton
npm/[email protected] None 0 9.21 kB jdalton
npm/[email protected] None 0 4.47 kB jdalton
npm/[email protected] None 0 4.75 kB jdalton
npm/[email protected] None 0 10.2 kB jdalton
npm/[email protected] Transitive: environment +6 355 kB dabh
npm/[email protected] None 0 119 kB dcode
npm/[email protected] Transitive: environment +4 159 kB jfromaniello
npm/[email protected] network Transitive: environment, filesystem, shell +73 4.75 MB npm-cli-ops
npm/[email protected] Transitive: environment, filesystem +9 1.04 MB valeriangalliat
npm/[email protected] Transitive: environment, filesystem +17 1.61 MB mikaelb
npm/[email protected] None 0 428 kB tonybrix
npm/[email protected] None 0 54.5 kB ljharb
npm/[email protected] None +1 290 kB isaacs
npm/[email protected] environment, network +4 569 kB npm-cli-ops
npm/[email protected] None 0 107 kB isaacs
npm/[email protected] None 0 429 kB kkoopa
npm/[email protected] environment, filesystem 0 13.4 kB mafintosh
npm/[email protected] environment, shell Transitive: filesystem, network +82 6.64 MB lukekarrys
npm/[email protected] None +1 31 kB npm-cli-ops
npm/[email protected] Transitive: eval +12 309 kB ljharb
npm/[email protected] Transitive: eval +56 3.23 MB ljharb
npm/[email protected] Transitive: eval +56 3.21 MB ljharb
npm/[email protected] None 0 8.43 kB panva
npm/[email protected] Transitive: environment +1 755 kB pjmolina
npm/[email protected] network +4 765 kB panva
npm/[email protected] filesystem 0 529 kB isaacs
npm/[email protected] None 0 1.35 MB marvinhagemeister
npm/[email protected] None 0 5.21 kB lukekarrys
npm/[email protected] Transitive: filesystem, network +14 7.02 MB google-wombot
npm/[email protected] filesystem, shell Transitive: environment, eval, network, unsafe +77 18 MB google-wombot
npm/[email protected] filesystem, network +13 6.93 MB google-wombot
npm/[email protected] network, unsafe Transitive: environment, eval +9 479 kB dougwilson
npm/[email protected] Transitive: environment, filesystem, network, shell +85 18.8 MB elazutkin
npm/[email protected] environment +4 180 kB matteo.collina
npm/[email protected] filesystem +2 69.2 kB yqnn
npm/[email protected] None 0 27.9 kB benjamn
npm/[email protected] None 0 314 kB dmitrysoshnikov
npm/[email protected] environment Transitive: filesystem +4 104 kB rexxars
npm/[email protected] None 0 15 kB hirokiosame
npm/[email protected] Transitive: environment, filesystem, network +28 5.52 MB google-wombot, stephenplusplus
npm/[email protected] Transitive: network +6 92.8 kB dougwilson
npm/[email protected] None +1 4.59 MB blesh
npm/[email protected] Transitive: eval +10 215 kB ljharb
npm/[email protected] Transitive: eval +12 248 kB ljharb
npm/[email protected] None 0 30.1 kB bridgear
npm/[email protected] Transitive: eval +8 176 kB ljharb
npm/[email protected] None 0 77 kB isaacs
npm/[email protected] None +3 49.7 kB kemitchell
npm/[email protected] None 0 11.8 kB kemitchell
npm/[email protected] Transitive: environment, filesystem +9 667 kB bahamat
npm/[email protected] None 0 38.7 kB npm-cli-ops
npm/[email protected] None +1 130 kB elazutkin
npm/[email protected] None 0 4.46 kB mafintosh
npm/[email protected] None +3 123 kB sindresorhus
npm/[email protected] Transitive: eval +56 3.23 MB ljharb
npm/[email protected] None 0 3.5 kB sindresorhus
npm/[email protected] None 0 10.2 kB dabh
npm/[email protected] None 0 84 kB typescript-bot
npm/[email protected] None +2 17.9 kB lukekarrys
npm/[email protected] None +1 14.5 kB lukekarrys
npm/[email protected] network 0 57.4 kB jakechampion
npm/[email protected] Transitive: environment +12 590 kB dabh
npm/[email protected] filesystem, network Transitive: environment +29 1.86 MB dabh
npm/[email protected] None 0 11.8 kB jonschlinkert
npm/[email protected] None +5 152 kB sindresorhus
npm/[email protected] environment 0 661 kB eemeli
npm/[email protected] Transitive: environment, filesystem +33 749 kB ctalkington

🚮 Removed packages: npm/@apidevtools/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@firebase/[email protected], npm/@gar/[email protected], npm/@google-cloud/[email protected], npm/@google-cloud/[email protected], npm/@grpc/[email protected], npm/@npmcli/[email protected], npm/@npmcli/[email protected], npm/@panva/[email protected], npm/@pkgr/[email protected], npm/@pnpm/[email protected], npm/@rushstack/[email protected], npm/@tsconfig/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@vercel/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

[`yarn global` is deprecated in Yarn 2.x](https://yarnpkg.com/migration/guide#use-yarn-dlx-instead-of-yarn-global), instead `yarn dlx` is recommended for temporary installs.
@arthurgousset
Copy link
Contributor Author

arthurgousset commented Jan 18, 2024

Re: "setup" script deleted

The "setup" script in ./package.json that installs vercel globally is broken: yarn global add vercel@latest.

That's because yarn global is deprecated in Yarn 2.x, which seems to be annoying quite a few people:

Luckily, the vercel dependency is only used in "setup": "vercel env pull" in web/package.json.

Potential solutions:

  1. remove the "setup" script in ./package.json and add vercel as devDependencies
  2. remove the "setup" script in ./package.json and modify vercel env pull in web/package.json to use yarn dlx

I chose option (2) to keep the number of actual dependencies low. vercel is only used to fetch .env variables once when a dev wants to run the web app locally. In that case, using yarn dlx to temporarily install vercel seems like a good approach.

Added detailed setup and usage instructions in the top level README.

@arthurgousset
Copy link
Contributor Author

arthurgousset commented Jan 19, 2024

Existing concerns and bugs on master that are out of scope for this PR

  1. Concern: yarn run serve: not clear how to test the local server works as expected

  2. Bug: yarn run transfer-funds: exits with TS compilation error

/Users/arthur/Documents/celo-org/faucet/apps/firebase/node_modules/ts-node/src/index.ts:859
    return new TSError(diagnosticText, diagnosticCodes, diagnostics);
           ^
TSError: ⨯ Unable to compile TypeScript:
scripts/transfer-funds.ts:91:44 - error TS2339: Property 'sendAndWaitForReceipt' does not exist on type 'false | CeloTransactionObject<boolean>'.
  Property 'sendAndWaitForReceipt' does not exist on type 'false'.

91           console.log('receipt', await tx?.sendAndWaitForReceipt())
                                              ~~~~~~~~~~~~~~~~~~~~~
  1. Bug: ESLint error that can't find faucet/tsconfig.json in multiple files. Parsing error: Cannot read file '/users/arthur/documents/celo-org/faucet/tsconfig.json'.eslint. For example: firebase/scripts/transfer-funds.ts

  2. Concern: Not clear what the use case for scripts/transfer-funds.ts is. Maybe this was an old script to make faucet transfers? Maybe this is used to rebalance validator accounts used to finance faucet requests?

  3. Concern: Do we still use yarn run keys:encrypt to manage secrets for the faucet? Slack thread with similar question for monorepo. If not, we can remove the script and encrypted secrets. Out of scope for this PR.

env.mnemonic.alfajores.enc
env.mnemonic.baklava.enc
env.mnemonic.enc
env.mnemonic.rc1.enc

@arthurgousset
Copy link
Contributor Author

Testing that firebase anyCommand works in the firebase/ workspace:

"scripts": {
+    "firebase-yarn-berry-test": "firebase --version"
  },
$ yarn run firebase-yarn-berry-test
13.0.3

@arthurgousset arthurgousset marked this pull request as ready for review January 19, 2024 15:33
@arthurgousset arthurgousset requested a review from a team January 19, 2024 15:33
Copy link

socket-security bot commented Jan 19, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Invalid package.json npm/[email protected]
Native code npm/[email protected]
Native code npm/[email protected]

View full report↗︎

Next steps

What is an invalid package.json?

Package has an invalid package.json and can cause installation problems if you try to use it.

Fix syntax errors in the invalid package.json and publish a new version with a valid package.json. Consumers can use npm overrides to force a version that does not have this problem if one exists.

What's wrong with native code?

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@arthurgousset
Copy link
Contributor Author

arthurgousset commented Jan 19, 2024

The last commit that merges master into my branch seems to have broken the build :(

Looks like the build is failing because of a TS compilation error

Running "yarn run build"
--
15:33:59.823 | Linting and checking validity of types ...
15:34:04.181 | Failed to compile.
15:34:04.181 |  
15:34:04.182 | ./pages/_app.tsx:17:12
15:34:04.182 | Type error: 'Component' cannot be used as a JSX component.
15:34:04.183 | Its element type 'Component<any, any, any> \| ReactElement<any, any> \| null' is not a valid JSX element.
15:34:04.183 | Type 'Component<any, any, any>' is not assignable to type 'Element \| ElementClass \| null'.
15:34:04.183 | Type 'Component<any, any, any>' is not assignable to type 'ElementClass'.
15:34:04.183 | The types returned by 'render()' are incompatible between these types.
15:34:04.183 | Type 'React.ReactNode' is not assignable to type 'import("/vercel/path0/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode'.
15:34:04.183 |  
15:34:04.183 | 15 \|       >
15:34:04.183 | 16 \|         <SessionProvider session={session}>
15:34:04.183 | > 17 \|           <Component {...pageProps} />
15:34:04.183 | \|            ^
15:34:04.183 | 18 \|         </SessionProvider>
15:34:04.184 | 19 \|       </GoogleReCaptchaProvider>
15:34:04.184 | 20 \|       <Analytics />
15:34:04.300 | Error: Command "yarn run build" exited with 1

Might have to do with this PR that was merged 6h ago:

The PR:

  • ugprades from "next": "13.2.4" to "next": "13.5.6", and
  • downgrades (?) from "@types/react": "18.2.48" to "@types/react": "18.2.3"

@arthurgousset
Copy link
Contributor Author

arthurgousset commented Jan 19, 2024

master branch has a recent commit (8bd8859) that downgrades from "@types/react": "18.2.48" to "@types/react": "18.2.3".

I hypothesise that the build error originates here.

Upgrading back to "@types/react": "18.2.48" fixed the build error:

$ cd apps/web
$ yarn add @types/[email protected]
$ yarn run build     
✓ Linting and checking validity of types    
 ✓ Creating an optimized production build    
 ✓ Compiled successfully
 ✓ Collecting page data    
 ✓ Generating static pages (2/2) 
 ✓ Collecting build traces    
 ✓ Finalizing page optimization    

Route (pages)                              Size     First Load JS
┌   /_app                                  0 B            93.8 kB
├ λ /[chain]                               14.6 kB         108 kB
├   └ css/ab4939cb46ff182c.css             2 kB
├ ○ /404                                   178 B            94 kB
├ λ /api/auth/[...nextauth]                0 B            93.8 kB
└ λ /api/faucet                            0 B            93.8 kB
+ First Load JS shared by all              94.5 kB
  ├ chunks/framework-8e279965036b6169.js   45.4 kB
  ├ chunks/main-3099200c5c7ddf87.js        32.9 kB
  ├ chunks/pages/_app-331eabd72a9d2c3b.js  13.8 kB
  ├ chunks/webpack-266e854748dabb79.js     1.74 kB
  └ css/442e2a1785394bda.css               669 B

λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
○  (Static)  automatically rendered as static HTML (uses no initial props)

…mismatch

The version was downgraded in a previous commit on master.
@arthurgousset
Copy link
Contributor Author

arthurgousset commented Jan 19, 2024

Build is fixed ✅

But socket.dev complains. This was not happening before I merged master into my branch, see this commit 989ea0a

image

@arthurgousset arthurgousset changed the title Upgrades to Yarn Berry Upgrades from yarn 1.x to yarn berry (4.x) Jan 19, 2024
@arthurgousset arthurgousset self-assigned this Jan 19, 2024
Copy link
Member

@aaronmgdr aaronmgdr left a comment

Choose a reason for hiding this comment

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

it builds and deploys and your changes make sense

package.json Outdated Show resolved Hide resolved
@arthurgousset
Copy link
Contributor Author

arthurgousset commented Jan 22, 2024

I noticed husky is a dev dependency in:

  • the top level package.json, and separately

    "devDependencies": {
    
        "husky": "^8.0.0",
    
      },
  • in the firebase/ workspace package.json

    "devDependencies": {
      
        "husky": "^8.0.3",
       
      },

I'm wondering if I can delete husky from the dev dependencies in the firebase/ workspace.
I don't see any husky configs in the firebase repo.

Can you think of any reason why I shouldn't remove it @aaronmgdr ?

@arthurgousset
Copy link
Contributor Author

arthurgousset commented Jan 22, 2024

Also asked the socket team about an alert that is inconsistent on Slack:

I'm seeing a socket.dev alert in the following PR: Upgrades from yarn 1.x to yarn berry (4.x) #147
It states that npm/[email protected] has an invalid package.json (see screenshot).
When I follow the hyperlink or check any issues in npm/[email protected] (at socket.dev/npm/package/archiver-utils/issues/2.1.0) I can't find any issues.
Am I missing something? Socket.dev flagged this issue on 3 separate reports I ran when committing to this PR.
Thanks in advance 👍

image

image

Edit: This is a bug on socket.dev side

Hi Arthur this is actually a bug on our side that we are working on fixing. When you go to https://socket.dev/npm/package/archiver-utils/overview/2.1.0 you will find that the File Explorer is empty. This is a caching issue that we are trying to resolve.

@arthurgousset
Copy link
Contributor Author

Noting that I checked these two socket alerts. The use of native code looks good to me.

image

@aaronmgdr
Copy link
Member

agree no need for husky in firebase package. just in root

`husky` is already a dependency at the top-level.
@arthurgousset
Copy link
Contributor Author

Removed husky in firebase/ workspace in efc5822

@arthurgousset arthurgousset requested review from a team and aaronmgdr January 23, 2024 10:06
@arthurgousset arthurgousset merged commit fe2797d into master Jan 23, 2024
6 of 7 checks passed
@arthurgousset arthurgousset deleted the arthurgousset/yarn-berry branch January 23, 2024 10:08
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.

upgrade to yarn berry
2 participants