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

Regenerate package-lock.json #843

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Regenerate package-lock.json #843

merged 1 commit into from
Nov 2, 2023

Conversation

lslezak
Copy link
Contributor

@lslezak lslezak commented Nov 2, 2023

For some reason the file was missing the "resolved" and "integrity" keys for the packages. That cause the OBS service to fail to fetch the NPM packages.

The diff is HUGE and cannot be displayed here, but the changes are basically like this:

@@ -104,21 +104,24 @@
     },
     "node_modules/@aashutoshrathi/word-wrap": {
       "version": "1.2.6",
+      "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
+      "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==",
       "dev": true,
-      "license": "MIT",
       "engines": {
         "node": ">=0.10.0"
       }
     },
     "node_modules/@adobe/css-tools": {
       "version": "4.3.1",
-      "dev": true,
-      "license": "MIT"
+      "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.1.tgz",
+      "integrity": "sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg==",
+      "dev": true
     },
     "node_modules/@ampproject/remapping": {
       "version": "2.2.1",
+      "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
+      "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
       "dev": true,
-      "license": "Apache-2.0",
       "dependencies": {
         "@jridgewell/gen-mapping": "^0.3.0",
         "@jridgewell/trace-mapping": "^0.3.9"

For some reason the file was missing the "resolved"
and "integrity" keys for the packages.
Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

LGTM. Let's see if OBS supports lockVersion: 3 already.

@lslezak lslezak merged commit fed4db1 into master Nov 2, 2023
10 checks passed
@lslezak lslezak deleted the regenerate_package-lock branch November 2, 2023 14:51
dgdavid added a commit that referenced this pull request Nov 15, 2023
Another boring PR for keeping dependencies up-to-date via `npm update` and `npm install @package/name@latest`.  No more `--lockfile-version 2`  because [OBS already supports version 3](https://github.com/openSUSE/obs-service-node_modules/blob/2153192f0baf8453c12bacf7b872c0c786ed645f/node_modules.py#L342-L343) as we realized at #843

Please, note that this time we manage to get rid of some dependencies which were there because cockpit-starter-kit (see #127) but actually not needed anymore. In fact, they are no longer dependencies of starter-kit. Namely, 

* [core-js](https://github.com/zloirock/core-js)
  - As a weird side effect, few tests were _fixed_ to wait a bit for the expected content. Some black magic around _Promise.resolve_, I guess. Honestly, I didn't dig too further on it since waiting for the content is somehow _expected_.
*  [stdio](https://github.com/sgmonda/stdio)
* [sizzle](https://www.npmjs.com/package/sizzle)

Apart from these, [regenerator-runtime](https://github.com/facebook/regenerator) was dropped too because 

> It was added more than a year ago in the context of "Adapt React
> components to the Starter Kit". But probably is no longer needed since
> async functions, ES6 generators, and `yield` JavaScript operator have
> broad support among major browsers.

---

* [web] Update dependencies via `npm update`

* [web] Update icons packages to their latest version

* [web] Update Patternfly libraries to latest version

* [web] Drop core-js dependency

    It was added because of cockpit-starter-kit[1] but they already dropped
    it[2] because
    
    > starter-kit does not use it directly, and none of our derived projects
    > have it.
    
    Thus, in principle it does not make sense to keep it as Agama
dependency.
    
    As weird side-effect, a few test were fixed to "waitFor" the expeced
content.
    
    [1] 55c75c3
    [2] cockpit-project/starter-kit@67c1c06

* [web] Update fast-sort to its latest version

* [web] Update ippadr.js to its latest version

* [web] Drop regenerator-runtime dependency

    It[1] was added more than a year ago[2] in the context of "Adapt React
    components to the Starter Kit". But probably is no longer needed since
    async functions, ES6 generators, and `yield` JavaScript operator have
    broad support among major browsers.
    
    [1] https://github.com/facebook/regenerator
    [2] 55c75c3

* [web] Update sprintf-js to the latest version

* [web] Update typedoc and related dependencies

* [web] Update webpack and related dependencies

* [web] Update stylint and related dependencies

* [web] Update @babel and related dependencies

* [web] Update cspell dev dependencies

* [web] More babel dev dependencies updates

* [web] Update eslint and eslint-config dependencies

* [web] Update eslint-plugin dependencies

* [web] Update jest dependencies

* [web] Update jsdoc dependency

* [web] Update sass dependencies

* [web] Update terser-webpack-plugin

* [web] Drop stdio dev dependency

    It was there because cockpit-starter-kit, which dropped it a year
ago[1][2]

    [1] cockpit-project/starter-kit#590
    [2] cockpit-project/starter-kit@6e1fd84

* [web] Drop sizzle dev dependency

    Which came from cockpit-starter-kit. It was dropped there few months
    ago, in Jun 2023[1]
    
    [1] cockpit-project/starter-kit@1e46595

* [web] Update qunit dev dependency to latest version

* [web] Update mini-css-extract-plugin

* [web] Update ajv dev dependency

* [web] Update @testing-library dependencies

* [web] Update @typescript-eslint dependencies

* [web] Update @types/jest

* [web] Adapt FileViewer test

For waiting for the expected content

* [web] Fix NetworkPage test

    Remove a leftover it.only and make examples wait a bit for the expected
content.

* [web] Little improvement in Sidebar test

* [web] Update ProductPage test

For waiting a bit to find the expected content
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.

2 participants