Package.json version management
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- react, typescript
- Ambito
- build-system, developer-experience
Direzione di ricerca
Inizia ispezionando le dichiarazioni delle dipendenze di package.json e qualsiasi configurazione di release o versioning. Confronta la policy richiesta per le versioni delle dipendenze con nuove installazioni e controlli di build esistenti; il lavoro è completato quando la policy scelta è concordata e impedisce aggiornamenti involontari delle dipendenze senza compromettere il progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
It's been more than a year I'm using React-Admin Library for multiple projects and I really like how this library helping me building Admin and Dashboard interfaces 🎉 😍
But, I often faced on react-admin dependencies version management issues. It appear that, without even changing react-admin version (fixed version in my package.json file) and executing from scratch install (yarn install) on my project (without a yarn.lock file or node_modules folder), result in errors if one or more new versions of dependencies had been released and has changes that are in conflict with my current react-admin version.
This is mostly due to allowing automatic updates to the latest minor version for react-admin dependencies (^x.x.x).
Last recent example is with ra-ui-materialui where, without updating react-admin version in my package.json, I've done a fresh install of my project and the compilation failed because ra-ui-materialui has a new minor version, 4.11.0, and now Typescript throw errors related to the render prop of a FunctionField I'm using.
Another significant example happened few months ago with react-router-dom where for a previous react-admin version, a new minor version of react-router[-dom] has been released (6.10.x) and has caused failure on my project. Here again, I didn't change the react-admin version on my side and I was stuck with this error few days (because I wasn't aware that the react-router[-dom] has been updated because nothing changed in my package.json file and the error was not clear but it's another problem)
This also causing issue during my deployment process because a from scratch install is done on my side.
What you were expecting
Having my React-Admin project not breaking when I'm doing a from scratch install of my project, when I'm not touching my react-admin version which is fixed in my package.json.
What happened instead
Doing a from scratch install of my project resulting some times by a project broken because dependencies had a new minor version released
Steps to reproduce and Related Code
The use of ^ for packages version in the package.json file of react-admin :
"dependencies": {
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@mui/icons-material": "^5.0.1",
"@mui/material": "^5.0.2",
"history": "^5.1.0",
"ra-core": "^4.10.2",
"ra-i18n-polyglot": "^4.10.2",
"ra-language-english": "^4.10.2",
"ra-ui-materialui": "^4.10.2",
"react-hook-form": "^7.40.0",
"react-router": "^6.1.0",
"react-router-dom": "^6.1.0"
},
Here is my current package.json to avoid having surprises :
"resolutions": {
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@mui/icons-material": "5.11.11",
"@mui/material": "5.12.0",
"@mui/styles": "5.12.0",
"@mui/utils": "5.12.0",
"react-router": "6.9.0",
"react-router-dom": "6.9.0",
"ra-core": "4.10.2",
"ra-ui-materialui": "4.10.2"
},
"dependencies": {
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@mui/icons-material": "5.11.11",
"@mui/material": "5.12.0",
"@mui/styles": "5.12.0",
"ra-data-fakerest": "4.8.3",
"ra-data-simple-rest": "4.8.3",
"react": "18.2.0",
"react-admin": "4.10.2",
"react-dom": "18.2.0",
"react-query": "3.39.3",
"react-router-dom": "6.9.0",
"react-scripts": "5.0.1",
"typescript": "4.7.4",
"web-vitals": "2.1.0"
},
Other information
Automatic minor update shouldn't be allowed in your project regarding the dependencies you have, I would suggest at least allowing automatic patch version (~) or a fixed version in this case.
Btw, I love the project and what you React-Admin team are doing ! 😘 🇫🇷
Environment
- React-admin version: 4.10.2
- React version: 18.2
- Browser: Chromium
- Lingua principale
- TypeScript
- Stelle
- 27k
- Fork
- 5.5k
- Merge medio
- 1g 3m
- PR unite (30g)
- 32
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di marmelab/react-admin
-
Blank page after logout when the app re-renders `<Admin>` during `authProvider.logout()`Forse già presa @uchiha-suraj l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
marmelab/react-admin#11431 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Pagination: page button aria-labels are not translated on small screensForse già presa @Singmin l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
marmelab/react-admin#11427 ·
I maintainer di solito rispondono entro 1 giorno
-
Add emptyText property to SelectArrayInputForse già presa @kwitykwity l’ha presa 61 giorni fa. Apertaenhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
marmelab/react-admin#10454 · 7 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 Più di una settimana Idoneità per principianti 38/100
marmelab/react-admin#11426 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
ra-data-graphql-simple: outdated graphql-ast-types-browser dependency causes npm peer warningsForse di nuovo libera @bipul724 l’ha presa 14 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
marmelab/react-admin#11395 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di marmelab/react-admin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Northeastern-Electric-Racing/FinishLine#4660 ·
I maintainer di solito rispondono entro 2 giorni
-
BeOS .json missingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mihaip/infinite-mac#475 ·
-
Let TypeScript accept an initial object in ReactiveDictForse già presa @yograj-vijay-yadav l’ha presa oggi. Apertabug good first issue help wanted workshop
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
meteor/meteor#14919 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
marmelab/atomic-crm#401 ·
I maintainer di solito rispondono entro 1 giorno
-
account: profile
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 5 giorni