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
46 stars 69 forks source link

Update NPM packages #184

Closed TimidRobot closed 5 months ago

TimidRobot commented 5 months ago

Fixes

Description

Update NPM packages

Technical details

Update process

  1. main branch, webpack/ directory
  2. Create list of old/current packages
    npm list --package-lock-only --depth 9 > npmlist.old
  3. npm-updates branch, webpack/ directory
  4. 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
  5. Create list of new/PR packages
    npm list --package-lock-only --depth 9 > npmlist.new
  6. Generate package name/version diff
    diff -U0 npmlist.old npmlist.new

Package changes

--- npmlist.old 2024-06-18 08:14:11
+++ npmlist.new 2024-06-18 08:15:36
@@ -6 +6 @@
-β”‚ β”‚ └── postcss@8.4.31 deduped
+β”‚ β”‚ └── postcss@8.4.38 deduped
@@ -11,3 +11,3 @@
-β”‚ β”œβ”€β”¬ postcss-modules-extract-imports@3.0.0
-β”‚ β”‚ └── postcss@8.4.31 deduped
-β”‚ β”œβ”€β”¬ postcss-modules-local-by-default@4.0.3
+β”‚ β”œβ”€β”¬ postcss-modules-extract-imports@3.1.0
+β”‚ β”‚ └── postcss@8.4.38 deduped
+β”‚ β”œβ”€β”¬ postcss-modules-local-by-default@4.0.5
@@ -15 +15 @@
-β”‚ β”‚ β”œβ”€β”¬ postcss-selector-parser@6.0.13
+β”‚ β”‚ β”œβ”€β”¬ postcss-selector-parser@6.1.0
@@ -19,4 +19,4 @@
-β”‚ β”‚ └── postcss@8.4.31 deduped
-β”‚ β”œβ”€β”¬ postcss-modules-scope@3.0.0
-β”‚ β”‚ β”œβ”€β”€ postcss-selector-parser@6.0.13 deduped
-β”‚ β”‚ └── postcss@8.4.31 deduped
+β”‚ β”‚ └── postcss@8.4.38 deduped
+β”‚ β”œβ”€β”¬ postcss-modules-scope@3.2.0
+β”‚ β”‚ β”œβ”€β”€ postcss-selector-parser@6.1.0 deduped
+β”‚ β”‚ └── postcss@8.4.38 deduped
@@ -25 +25 @@
-β”‚ β”‚ └── postcss@8.4.31 deduped
+β”‚ β”‚ └── postcss@8.4.38 deduped
@@ -27,4 +27,4 @@
-β”‚ β”œβ”€β”¬ postcss@8.4.31
-β”‚ β”‚ β”œβ”€β”€ nanoid@3.3.6
-β”‚ β”‚ β”œβ”€β”€ picocolors@1.0.0
-β”‚ β”‚ └── source-map-js@1.0.2 deduped
+β”‚ β”œβ”€β”¬ postcss@8.4.38
+β”‚ β”‚ β”œβ”€β”€ nanoid@3.3.7
+β”‚ β”‚ β”œβ”€β”€ picocolors@1.0.1
+β”‚ β”‚ └── source-map-js@1.2.0 deduped
@@ -32 +32 @@
-β”‚ β”‚ β”œβ”€β”€ @types/json-schema@7.0.14
+β”‚ β”‚ β”œβ”€β”€ @types/json-schema@7.0.15
@@ -40,5 +40,3 @@
-β”‚ β”‚     └── punycode@2.3.0
-β”‚ β”œβ”€β”¬ semver@7.5.4
-β”‚ β”‚ └─┬ lru-cache@6.0.0
-β”‚ β”‚   └── yallist@4.0.0
-β”‚ └── webpack@5.89.0 deduped
+β”‚ β”‚     └── punycode@2.3.1
+β”‚ β”œβ”€β”€ semver@7.6.2
+β”‚ └── webpack@5.92.0 deduped
@@ -51,2 +49,2 @@
-β”‚ └── webpack@5.89.0 deduped
-β”œβ”€β”¬ sass-loader@10.4.1
+β”‚ └── webpack@5.92.0 deduped
+β”œβ”€β”¬ sass-loader@10.5.2
@@ -57,2 +55,2 @@
-β”‚ β”œβ”€β”€ UNMET OPTIONAL DEPENDENCY node-sass@^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0
-β”‚ β”œβ”€β”€ sass@1.69.5 deduped
+β”‚ β”œβ”€β”€ UNMET OPTIONAL DEPENDENCY node-sass@^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0
+β”‚ β”œβ”€β”€ sass@1.77.6 deduped
@@ -60,4 +58,4 @@
-β”‚ β”œβ”€β”€ semver@7.5.4 deduped
-β”‚ └── webpack@5.89.0 deduped
-β”œβ”€β”¬ sass@1.69.5
-β”‚ β”œβ”€β”¬ chokidar@3.5.3
+β”‚ β”œβ”€β”€ semver@7.6.2 deduped
+β”‚ └── webpack@5.92.0 deduped
+β”œβ”€β”¬ sass@1.77.6
+β”‚ β”œβ”€β”¬ chokidar@3.6.0
@@ -67,2 +65,2 @@
-β”‚ β”‚ β”œβ”€β”¬ braces@3.0.2
-β”‚ β”‚ β”‚ └─┬ fill-range@7.0.1
+β”‚ β”‚ β”œβ”€β”¬ braces@3.0.3
+β”‚ β”‚ β”‚ └─┬ fill-range@7.1.1
@@ -75 +73 @@
-β”‚ β”‚ β”‚ └── binary-extensions@2.2.0
+β”‚ β”‚ β”‚ └── binary-extensions@2.3.0
@@ -81,2 +79,2 @@
-β”‚ β”œβ”€β”€ immutable@4.3.4
-β”‚ └── source-map-js@1.0.2
+β”‚ β”œβ”€β”€ immutable@4.3.6
+β”‚ └── source-map-js@1.2.0
@@ -86 +84 @@
-β”‚ └── webpack@5.89.0 deduped
+β”‚ └── webpack@5.92.0 deduped
@@ -91 +89 @@
-β”‚ β”‚ └── webpack@5.89.0 deduped
+β”‚ β”‚ └── webpack@5.92.0 deduped
@@ -93 +91 @@
-β”‚ β”‚ β”œβ”€β”€ envinfo@7.10.0
+β”‚ β”‚ β”œβ”€β”€ envinfo@7.13.0
@@ -120 +118 @@
-β”‚ β”‚   β”‚ └─┬ hasown@2.0.0
+β”‚ β”‚   β”‚ └─┬ hasown@2.0.2
@@ -133,9 +131,9 @@
-β”‚ └── webpack@5.89.0 deduped
-└─┬ webpack@5.89.0
-  β”œβ”€β”¬ @types/eslint-scope@3.7.6
-  β”‚ β”œβ”€β”¬ @types/eslint@8.44.6
-  β”‚ β”‚ β”œβ”€β”€ @types/estree@1.0.3 deduped
-  β”‚ β”‚ └── @types/json-schema@7.0.14 deduped
-  β”‚ └── @types/estree@1.0.3 deduped
-  β”œβ”€β”€ @types/estree@1.0.3
-  β”œβ”€β”¬ @webassemblyjs/ast@1.11.6
+β”‚ └── 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
+  β”œβ”€β”€ @types/estree@1.0.5
+  β”œβ”€β”¬ @webassemblyjs/ast@1.12.1
@@ -147,3 +145,3 @@
-  β”œβ”€β”¬ @webassemblyjs/wasm-edit@1.11.6
-  β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.11.6 deduped
-  β”‚ β”œβ”€β”€ @webassemblyjs/helper-buffer@1.11.6
+  β”œβ”€β”¬ @webassemblyjs/wasm-edit@1.12.1
+  β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.12.1 deduped
+  β”‚ β”œβ”€β”€ @webassemblyjs/helper-buffer@1.12.1
@@ -151,3 +149,3 @@
-  β”‚ β”œβ”€β”¬ @webassemblyjs/helper-wasm-section@1.11.6
-  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.11.6 deduped
-  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/helper-buffer@1.11.6 deduped
+  β”‚ β”œβ”€β”¬ @webassemblyjs/helper-wasm-section@1.12.1
+  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.12.1 deduped
+  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/helper-buffer@1.12.1 deduped
@@ -155,3 +153,3 @@
-  β”‚ β”‚ └── @webassemblyjs/wasm-gen@1.11.6 deduped
-  β”‚ β”œβ”€β”¬ @webassemblyjs/wasm-gen@1.11.6
-  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.11.6 deduped
+  β”‚ β”‚ └── @webassemblyjs/wasm-gen@1.12.1 deduped
+  β”‚ β”œβ”€β”¬ @webassemblyjs/wasm-gen@1.12.1
+  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.12.1 deduped
@@ -162,8 +160,8 @@
-  β”‚ β”œβ”€β”¬ @webassemblyjs/wasm-opt@1.11.6
-  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.11.6 deduped
-  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/helper-buffer@1.11.6 deduped
-  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/wasm-gen@1.11.6 deduped
-  β”‚ β”‚ └── @webassemblyjs/wasm-parser@1.11.6 deduped
-  β”‚ β”œβ”€β”€ @webassemblyjs/wasm-parser@1.11.6 deduped
-  β”‚ └─┬ @webassemblyjs/wast-printer@1.11.6
-  β”‚   β”œβ”€β”€ @webassemblyjs/ast@1.11.6 deduped
+  β”‚ β”œβ”€β”¬ @webassemblyjs/wasm-opt@1.12.1
+  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.12.1 deduped
+  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/helper-buffer@1.12.1 deduped
+  β”‚ β”‚ β”œβ”€β”€ @webassemblyjs/wasm-gen@1.12.1 deduped
+  β”‚ β”‚ └── @webassemblyjs/wasm-parser@1.12.1 deduped
+  β”‚ β”œβ”€β”€ @webassemblyjs/wasm-parser@1.12.1 deduped
+  β”‚ └─┬ @webassemblyjs/wast-printer@1.12.1
+  β”‚   β”œβ”€β”€ @webassemblyjs/ast@1.12.1 deduped
@@ -171,2 +169,2 @@
-  β”œβ”€β”¬ @webassemblyjs/wasm-parser@1.11.6
-  β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.11.6 deduped
+  β”œβ”€β”¬ @webassemblyjs/wasm-parser@1.12.1
+  β”‚ β”œβ”€β”€ @webassemblyjs/ast@1.12.1 deduped
@@ -180,13 +178,13 @@
-  β”œβ”€β”¬ acorn-import-assertions@1.9.0
-  β”‚ └── acorn@8.10.0 deduped
-  β”œβ”€β”€ acorn@8.10.0
-  β”œβ”€β”¬ browserslist@4.22.1
-  β”‚ β”œβ”€β”€ caniuse-lite@1.0.30001554
-  β”‚ β”œβ”€β”€ electron-to-chromium@1.4.567
-  β”‚ β”œβ”€β”€ node-releases@2.0.13
-  β”‚ └─┬ update-browserslist-db@1.0.13
-  β”‚   β”œβ”€β”€ browserslist@4.22.1 deduped
-  β”‚   β”œβ”€β”€ escalade@3.1.1
-  β”‚   └── picocolors@1.0.0 deduped
-  β”œβ”€β”€ chrome-trace-event@1.0.3
-  β”œβ”€β”¬ enhanced-resolve@5.15.0
+  β”œβ”€β”¬ acorn-import-attributes@1.9.5
+  β”‚ └── 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
+  β”œβ”€β”€ chrome-trace-event@1.0.4
+  β”œβ”€β”¬ enhanced-resolve@5.17.0
@@ -195 +193 @@
-  β”œβ”€β”€ es-module-lexer@1.3.1
+  β”œβ”€β”€ es-module-lexer@1.5.3
@@ -210,3 +208,3 @@
-  β”œβ”€β”¬ terser-webpack-plugin@5.3.9
-  β”‚ β”œβ”€β”¬ @jridgewell/trace-mapping@0.3.20
-  β”‚ β”‚ β”œβ”€β”€ @jridgewell/resolve-uri@3.1.1
+  β”œβ”€β”¬ terser-webpack-plugin@5.3.10
+  β”‚ β”œβ”€β”¬ @jridgewell/trace-mapping@0.3.25
+  β”‚ β”‚ β”œβ”€β”€ @jridgewell/resolve-uri@3.1.2
@@ -215 +213 @@
-  β”‚ β”‚ β”œβ”€β”¬ @types/node@20.8.9
+  β”‚ β”‚ β”œβ”€β”¬ @types/node@20.14.5
@@ -221 +219 @@
-  β”‚ β”œβ”€β”¬ serialize-javascript@6.0.1
+  β”‚ β”œβ”€β”¬ serialize-javascript@6.0.2
@@ -224,4 +222,4 @@
-  β”‚ β”œβ”€β”¬ terser@5.22.0
-  β”‚ β”‚ β”œβ”€β”¬ @jridgewell/source-map@0.3.5
-  β”‚ β”‚ β”‚ β”œβ”€β”¬ @jridgewell/gen-mapping@0.3.3
-  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ @jridgewell/set-array@1.1.2
+  β”‚ β”œβ”€β”¬ terser@5.31.1
+  β”‚ β”‚ β”œβ”€β”¬ @jridgewell/source-map@0.3.6
+  β”‚ β”‚ β”‚ β”œβ”€β”¬ @jridgewell/gen-mapping@0.3.5
+  β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ @jridgewell/set-array@1.2.1
@@ -229,3 +227,3 @@
-  β”‚ β”‚ β”‚ β”‚ └── @jridgewell/trace-mapping@0.3.20 deduped
-  β”‚ β”‚ β”‚ └── @jridgewell/trace-mapping@0.3.20 deduped
-  β”‚ β”‚ β”œβ”€β”€ acorn@8.10.0 deduped
+  β”‚ β”‚ β”‚ β”‚ └── @jridgewell/trace-mapping@0.3.25 deduped
+  β”‚ β”‚ β”‚ └── @jridgewell/trace-mapping@0.3.25 deduped
+  β”‚ β”‚ β”œβ”€β”€ acorn@8.12.0 deduped
@@ -236,2 +234,2 @@
-  β”‚ └── webpack@5.89.0 deduped
-  β”œβ”€β”¬ watchpack@2.4.0
+  β”‚ └── webpack@5.92.0 deduped
+  β”œβ”€β”¬ watchpack@2.4.1

Tests

command:

docker compose exec app ./manage.py test

output excerpt:

Ran 13 tests in 1.562s

OK

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 5 months ago

Deployed to Production

Per deploy_to_heroku.md:

git push heroku main
Enumerating objects: 42, done.
Counting objects: 100% (42/42), done.
Delta compression using up to 10 threads
Compressing objects: 100% (29/29), done.
Writing objects: 100% (30/30), 23.31 KiB | 7.77 MiB/s, done.
Total 30 (delta 17), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Updated 60 paths from e4ae135
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.3 to python-3.12.4, clearing cache
remote: -----> Installing python-3.12.4
remote: -----> Installing pip 24.0, setuptools 69.2.0 and wheel 0.43.0
remote: -----> Installing dependencies with Pipenv 2023.12.1
remote:        Installing dependencies from Pipfile.lock (fb569a)...
remote: -----> Installing SQLite3
remote: -----> $ python manage.py collectstatic --noinput
remote:        394 static files copied to '/tmp/build_045b67d6/staticfiles', 664 post-processed.
remote: 
remote: -----> Discovering process types
remote:        Procfile declares types -> release, web
remote: 
remote: -----> Compressing...
remote:        Done: 58.5M
remote: -----> Launching...
remote:  !     Release command declared: this new release will not be available until the command succeeds.
remote:        Released v58
remote:        https://fast-eyrie-10628.herokuapp.com/ deployed to Heroku
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
   78e241e..06efaf6  main -> main