Skip to content

Commit 67df910

Browse files
committed
Update express version
1 parent 86bcd07 commit 67df910

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/content/3/en/part3a.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ The dependency is also added to our <i>package.json</i> file:
240240
{
241241
// ...
242242
"dependencies": {
243-
"express": "^4.18.2"
243+
"express": "^4.21.2"
244244
}
245245
}
246246
```
@@ -251,15 +251,15 @@ The source code for the dependency is installed in the <i>node\_modules</i> dire
251251

252252
These are the dependencies of the Express library and the dependencies of all of its dependencies, and so forth. These are called the [transitive dependencies](https://lexi-lambda.github.io/blog/2016/08/24/understanding-the-npm-dependency-model/) of our project.
253253

254-
Version 4.18.2 of Express was installed in our project. What does the caret in front of the version number in <i>package.json</i> mean?
254+
Version 4.21.2 of Express was installed in our project. What does the caret in front of the version number in <i>package.json</i> mean?
255255

256256
```json
257-
"express": "^4.18.2"
257+
"express": "^4.21.2"
258258
```
259259

260260
The versioning model used in npm is called [semantic versioning](https://docs.npmjs.com/about-semantic-versioning).
261261

262-
The caret in the front of <i>^4.18.2</i> means that if and when the dependencies of a project are updated, the version of Express that is installed will be at least <i>4.18.2</i>. However, the installed version of Express can also have a larger <i>patch</i> number (the last number), or a larger <i>minor</i> number (the middle number). The major version of the library indicated by the first <i>major</i> number must be the same.
262+
The caret in the front of <i>^4.21.2</i> means that if and when the dependencies of a project are updated, the version of Express that is installed will be at least <i>4.21.2</i>. However, the installed version of Express can also have a larger <i>patch</i> number (the last number), or a larger <i>minor</i> number (the middle number). The major version of the library indicated by the first <i>major</i> number must be the same.
263263

264264
We can update the dependencies of the project with the command:
265265

@@ -376,7 +376,7 @@ The contents of <i>package.json</i> have also changed:
376376
{
377377
//...
378378
"dependencies": {
379-
"express": "^4.18.2"
379+
"express": "^4.21.2"
380380
},
381381
"devDependencies": {
382382
"nodemon": "^3.0.3"

src/content/3/fi/osa3a.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Riippuvuus tulee nyt määritellyksi tiedostoon <i>package.json</i>:
238238
{
239239
// ...
240240
"dependencies": {
241-
"express": "^4.18.2"
241+
"express": "^4.21.2"
242242
}
243243
}
244244

@@ -250,13 +250,13 @@ Riippuvuuden koodi asentuu kaikkien projektin riippuvuuksien tapaan projektin ju
250250

251251
Kyseessä ovat Expressin riippuvuudet ja niiden riippuvuudet jne. eli projektimme [transitiiviset riippuvuudet](https://lexi-lambda.github.io/blog/2016/08/24/understanding-the-npm-dependency-model/).
252252

253-
Projektiin asentui Expressin versio 4.18.2. </i>package.json:issa</i> versiomerkinnän edessä on väkänen, eli muoto on
253+
Projektiin asentui Expressin versio 4.21.2. </i>package.json:issa</i> versiomerkinnän edessä on väkänen, eli muoto on
254254

255255
```json
256-
"express": "^4.18.2"
256+
"express": "^4.21.2"
257257
```
258258

259-
npm:n yhteydessä käytetään ns. [semanttista versiointia](https://docs.npmjs.com/getting-started/semantic-versioning). Merkintä <i>^4.18.2</i> tarkoittaa, että jos projektin riippuvuudet päivitetään, asennetaan Expressistä versio, joka on vähintään <i>4.18.2</i>, mutta asennetuksi voi tulla versio, jonka <i>patch</i> eli viimeinen numero tai <i>minor</i> eli keskimmäinen numero voi olla suurempi. Pääversio eli <i>major</i> täytyy kuitenkin olla edelleen sama.
259+
npm:n yhteydessä käytetään ns. [semanttista versiointia](https://docs.npmjs.com/getting-started/semantic-versioning). Merkintä <i>^4.21.2</i> tarkoittaa, että jos projektin riippuvuudet päivitetään, asennetaan Expressistä versio, joka on vähintään <i>4.21.2</i>, mutta asennetuksi voi tulla versio, jonka <i>patch</i> eli viimeinen numero tai <i>minor</i> eli keskimmäinen numero voi olla suurempi. Pääversio eli <i>major</i> täytyy kuitenkin olla edelleen sama.
260260

261261
Voimme päivittää projektin riippuvuudet komennolla
262262

@@ -373,7 +373,7 @@ Tiedoston <i>package.json</i> sisältö muuttuu seuraavasti:
373373
{
374374
//...
375375
"dependencies": {
376-
"express": "^4.18.2"
376+
"express": "^4.21.2"
377377
},
378378
"devDependencies": {
379379
"nodemon": "^3.0.3"

0 commit comments

Comments
 (0)