creativecommons / legaldb

CC Legal Database: curated repository of Case Law and Scholarship data from around the world in a Django based website.
https://LegalDB.CreativeCommons.org/
MIT License
44 stars 54 forks source link

Update NPM packages (webpack@5.94.0, etc.) #192

Closed TimidRobot closed 3 weeks ago

TimidRobot commented 3 weeks ago

Fixes

Description

Technical details

Update process

  1. Move new listing to old
    mv npmlist.new npmlist.old
  2. Update packages

    1. command:
      npm update
    2. output:

      added 1 package, removed 3 packages, changed 52 packages, and audited 163 packages in 6s
      
      25 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
  3. Create list of new/PR packages
    npm list --package-lock-only --depth 9 > npmlist.new
  4. Generate package name/version diff
    diff -U0 npmlist.old npmlist.new

Package changes

--- npmlist.old 2024-06-18 08:15:36
+++ npmlist.new 2024-09-12 07:22:15
@@ -6 +6 @@
-β”‚ β”‚ └── postcss@8.4.38 deduped
+β”‚ β”‚ └── postcss@8.4.45 deduped
@@ -12 +12 @@
-β”‚ β”‚ └── postcss@8.4.38 deduped
+β”‚ β”‚ └── postcss@8.4.45 deduped
@@ -15 +15 @@
-β”‚ β”‚ β”œβ”€β”¬ postcss-selector-parser@6.1.0
+β”‚ β”‚ β”œβ”€β”¬ postcss-selector-parser@6.1.2
@@ -19 +19 @@
-β”‚ β”‚ └── postcss@8.4.38 deduped
+β”‚ β”‚ └── postcss@8.4.45 deduped
@@ -21,2 +21,2 @@
-β”‚ β”‚ β”œβ”€β”€ postcss-selector-parser@6.1.0 deduped
-β”‚ β”‚ └── postcss@8.4.38 deduped
+β”‚ β”‚ β”œβ”€β”€ postcss-selector-parser@6.1.2 deduped
+β”‚ β”‚ └── postcss@8.4.45 deduped
@@ -25 +25 @@
-β”‚ β”‚ └── postcss@8.4.38 deduped
+β”‚ β”‚ └── postcss@8.4.45 deduped
@@ -27 +27 @@
-β”‚ β”œβ”€β”¬ postcss@8.4.38
+β”‚ β”œβ”€β”¬ postcss@8.4.45
@@ -29,2 +29,2 @@
-β”‚ β”‚ β”œβ”€β”€ picocolors@1.0.1
-β”‚ β”‚ └── source-map-js@1.2.0 deduped
+β”‚ β”‚ β”œβ”€β”€ picocolors@1.1.0
+β”‚ β”‚ └── source-map-js@1.2.1 deduped
@@ -41,2 +41,2 @@
-β”‚ β”œβ”€β”€ semver@7.6.2
-β”‚ └── webpack@5.92.0 deduped
+β”‚ β”œβ”€β”€ semver@7.6.3
+β”‚ └── webpack@5.94.0 deduped
@@ -49 +49 @@
-β”‚ └── webpack@5.92.0 deduped
+β”‚ └── webpack@5.94.0 deduped
@@ -56 +56 @@
-β”‚ β”œβ”€β”€ sass@1.77.6 deduped
+β”‚ β”œβ”€β”€ sass@1.78.0 deduped
@@ -58,3 +58,3 @@
-β”‚ β”œβ”€β”€ semver@7.6.2 deduped
-β”‚ └── webpack@5.92.0 deduped
-β”œβ”€β”¬ sass@1.77.6
+β”‚ β”œβ”€β”€ semver@7.6.3 deduped
+β”‚ └── webpack@5.94.0 deduped
+β”œβ”€β”¬ sass@1.78.0
@@ -79,2 +79,2 @@
-β”‚ β”œβ”€β”€ immutable@4.3.6
-β”‚ └── source-map-js@1.2.0
+β”‚ β”œβ”€β”€ immutable@4.3.7
+β”‚ └── source-map-js@1.2.1
@@ -84 +84 @@
-β”‚ └── webpack@5.92.0 deduped
+β”‚ └── webpack@5.94.0 deduped
@@ -89 +89 @@
-β”‚ β”‚ └── webpack@5.92.0 deduped
+β”‚ β”‚ └── webpack@5.94.0 deduped
@@ -104 +104 @@
-β”‚ β”œβ”€β”¬ import-local@3.1.0
+β”‚ β”œβ”€β”¬ import-local@3.2.0
@@ -117 +117 @@
-β”‚ β”‚   β”œβ”€β”¬ is-core-module@2.13.1
+β”‚ β”‚   β”œβ”€β”¬ is-core-module@2.15.1
@@ -131,7 +131,2 @@
-β”‚ └── webpack@5.92.0 deduped
-└─┬ webpack@5.92.0
-  β”œβ”€β”¬ @types/eslint-scope@3.7.7
-  β”‚ β”œβ”€β”¬ @types/eslint@8.56.10
-  β”‚ β”‚ β”œβ”€β”€ @types/estree@1.0.5 deduped
-  β”‚ β”‚ └── @types/json-schema@7.0.15 deduped
-  β”‚ └── @types/estree@1.0.5 deduped
+β”‚ └── webpack@5.94.0 deduped
+└─┬ webpack@5.94.0
@@ -179,10 +174,10 @@
-  β”‚ └── acorn@8.12.0 deduped
-  β”œβ”€β”€ acorn@8.12.0
-  β”œβ”€β”¬ browserslist@4.23.1
-  β”‚ β”œβ”€β”€ caniuse-lite@1.0.30001636
-  β”‚ β”œβ”€β”€ electron-to-chromium@1.4.805
-  β”‚ β”œβ”€β”€ node-releases@2.0.14
-  β”‚ └─┬ update-browserslist-db@1.0.16
-  β”‚   β”œβ”€β”€ browserslist@4.23.1 deduped
-  β”‚   β”œβ”€β”€ escalade@3.1.2
-  β”‚   └── picocolors@1.0.1 deduped
+  β”‚ └── acorn@8.12.1 deduped
+  β”œβ”€β”€ acorn@8.12.1
+  β”œβ”€β”¬ browserslist@4.23.3
+  β”‚ β”œβ”€β”€ caniuse-lite@1.0.30001660
+  β”‚ β”œβ”€β”€ electron-to-chromium@1.5.20
+  β”‚ β”œβ”€β”€ node-releases@2.0.18
+  β”‚ └─┬ update-browserslist-db@1.1.0
+  β”‚   β”œβ”€β”€ browserslist@4.23.3 deduped
+  β”‚   β”œβ”€β”€ escalade@3.2.0
+  β”‚   └── picocolors@1.1.0 deduped
@@ -190 +185 @@
-  β”œβ”€β”¬ enhanced-resolve@5.17.0
+  β”œβ”€β”¬ enhanced-resolve@5.17.1
@@ -193 +188 @@
-  β”œβ”€β”€ es-module-lexer@1.5.3
+  β”œβ”€β”€ es-module-lexer@1.5.4
@@ -211 +206 @@
-  β”‚ β”‚ └── @jridgewell/sourcemap-codec@1.4.15
+  β”‚ β”‚ └── @jridgewell/sourcemap-codec@1.5.0
@@ -213,2 +208,2 @@
-  β”‚ β”‚ β”œβ”€β”¬ @types/node@20.14.5
-  β”‚ β”‚ β”‚ └── undici-types@5.26.5
+  β”‚ β”‚ β”œβ”€β”¬ @types/node@22.5.4
+  β”‚ β”‚ β”‚ └── undici-types@6.19.8
@@ -222 +217 @@
-  β”‚ β”œβ”€β”¬ terser@5.31.1
+  β”‚ β”œβ”€β”¬ terser@5.32.0
@@ -226 +221 @@
-  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ @jridgewell/sourcemap-codec@1.4.15 deduped
+  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ @jridgewell/sourcemap-codec@1.5.0 deduped
@@ -229 +224 @@
-  β”‚ β”‚ β”œβ”€β”€ acorn@8.12.0 deduped
+  β”‚ β”‚ β”œβ”€β”€ acorn@8.12.1 deduped
@@ -234,2 +229,2 @@
-  β”‚ └── webpack@5.92.0 deduped
-  β”œβ”€β”¬ watchpack@2.4.1
+  β”‚ └── webpack@5.94.0 deduped
+  β”œβ”€β”¬ watchpack@2.4.2

Tests

Unit tests

command:

docker compose exec app ./manage.py test

output excerpt:

Ran 13 tests in 1.531s

OK

Quick QA

Checklist

Developer Certificate of Origin

For the purposes of this DCO, "license" is equivalent to "license or public domain dedication," and "open source license" is equivalent to "open content license or public domain dedication."

Developer Certificate of Origin ``` Developer Certificate of Origin Version 1.1 Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 1 Letterman Drive Suite D4700 San Francisco, CA, 94129 Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. ```
TimidRobot commented 3 weeks ago

Deployed to production

Per deploy_to_heroku.md:

git push heroku main
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 10 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 11.59 KiB | 5.80 MiB/s, done.
Total 10 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Updated 60 paths from 0878773
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-22 stack
remote: -----> Using buildpack: heroku/python
remote: -----> Python app detected
remote: -----> Using Python version specified in Pipfile.lock
remote: -----> Python version has changed from python-3.12.4 to python-3.12.6, clearing cache
remote: -----> Installing python-3.12.6
remote: -----> Installing pip 24.0, setuptools 70.3.0 and wheel 0.44.0
remote: -----> Installing dependencies with Pipenv 2024.0.1
remote:        Installing dependencies from Pipfile.lock (2b6da2)...
remote: -----> Installing SQLite3
remote: -----> $ python manage.py collectstatic --noinput
remote:        394 static files copied to '/tmp/build_9f3608b6/staticfiles', 664 post-processed.
remote: 
remote: -----> Discovering process types
remote:        Procfile declares types -> release, web
remote: 
remote: -----> Compressing...
remote:        Done: 60.8M
remote: -----> Launching...
remote:  !     Release command declared: this new release will not be available until the command succeeds.
remote:        Released v61
remote:        https://fast-eyrie-10628.herokuapp.com/ deployed to Heroku
remote: 
remote: This app is using the Heroku-22 stack, however a newer stack is available.
remote: To upgrade to Heroku-24, see:
remote: https://devcenter.heroku.com/articles/upgrading-to-the-latest-stack
remote: 
remote: Verifying deploy... done.
remote: Running release command...
remote: 
remote: Operations to perform:
remote:   Apply all migrations: admin, auth, contenttypes, legal_db, sessions, taggit
remote: Running migrations:
remote:   No migrations to apply.
To https://git.heroku.com/fast-eyrie-10628.git
   64ac180..cc4a97c  main -> main