pob-dependencies 8.6.1 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.7.0](https://github.com/christophehurpeau/pob/compare/pob-dependencies@8.6.1...pob-dependencies@8.7.0) (2023-10-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * **deps:** update @pob/eslint-config to v51.1.0 ([#1796](https://github.com/christophehurpeau/pob/issues/1796)) ([076afb2](https://github.com/christophehurpeau/pob/commit/076afb27c2225caa416d2160739dc408b6e0ca3a))
12
+ * **deps:** update dependency eslint to v8.51.0 ([#1802](https://github.com/christophehurpeau/pob/issues/1802)) ([a116098](https://github.com/christophehurpeau/pob/commit/a1160986eba0dd3be8f0b3ba2f08da2389156ba3))
13
+
14
+
15
+
6
16
  ## [8.6.1](https://github.com/christophehurpeau/pob/compare/pob-dependencies@8.6.0...pob-dependencies@8.6.1) (2023-09-30)
7
17
 
8
18
 
package/lib/index.d.ts CHANGED
@@ -1,26 +1,26 @@
1
1
  interface Dependencies {
2
- '@babel/core': '7.23.0';
3
- '@babel/preset-env': '7.22.20';
2
+ '@babel/core': '7.23.2';
3
+ '@babel/preset-env': '7.23.2';
4
4
  '@babel/preset-react': '7.22.15';
5
- '@babel/runtime': '7.23.1';
5
+ '@babel/runtime': '7.23.2';
6
6
  '@pob/commitlint-config': '6.0.1';
7
- '@pob/eslint-config': '51.0.2';
8
- '@pob/eslint-config-typescript': '51.0.2';
9
- '@pob/eslint-config-typescript-react': '51.0.2';
7
+ '@pob/eslint-config': '51.1.0';
8
+ '@pob/eslint-config-typescript': '51.1.0';
9
+ '@pob/eslint-config-typescript-react': '51.1.0';
10
10
  '@pob/lerna-light': '8.0.0';
11
11
  '@pob/pretty-pkg': '6.1.0';
12
- '@types/jest': '29.5.5';
12
+ '@types/jest': '29.5.6';
13
13
  'alp-rollup-plugin-config': '2.1.0';
14
14
  'check-package-dependencies': '6.8.0';
15
- eslint: '8.50.0';
15
+ eslint: '8.51.0';
16
16
  jest: '29.7.0';
17
17
  'jest-junit-reporter': '1.1.0';
18
- 'pob-babel': '36.4.1';
18
+ 'pob-babel': '36.4.2';
19
19
  prettier: '2.8.8';
20
20
  'repository-check-dirty': '6.1.0';
21
21
  rollup: '3.29.4';
22
22
  semver: '7.5.4';
23
- typedoc: '0.25.1';
23
+ typedoc: '0.25.2';
24
24
  typescript: '5.2.2';
25
25
  }
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pob-dependencies",
3
- "version": "8.6.1",
3
+ "version": "8.7.0",
4
4
  "description": "easier dependencies upgrade with a real package.json",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -25,6 +25,9 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "sideEffects": false,
28
+ "files": [
29
+ "lib"
30
+ ],
28
31
  "scripts": {
29
32
  "build": "yarn run build:definitions",
30
33
  "build:definitions": "tsc --lib esnext --noEmit --skipLibCheck ./lib/index.d.ts",
@@ -36,28 +39,28 @@
36
39
  "prettier": "@pob/root/prettier-config",
37
40
  "pob": {},
38
41
  "devDependencies": {
39
- "@babel/core": "7.23.0",
40
- "@babel/preset-env": "7.22.20",
42
+ "@babel/core": "7.23.2",
43
+ "@babel/preset-env": "7.23.2",
41
44
  "@babel/preset-react": "7.22.15",
42
- "@babel/runtime": "7.23.1",
43
- "@pob/commitlint-config": "6.0.1",
44
- "@pob/eslint-config": "51.0.2",
45
- "@pob/eslint-config-typescript": "51.0.2",
46
- "@pob/eslint-config-typescript-react": "51.0.2",
47
- "@pob/lerna-light": "8.0.0",
48
- "@pob/pretty-pkg": "6.1.0",
49
- "@types/jest": "29.5.5",
45
+ "@babel/runtime": "7.23.2",
46
+ "@pob/commitlint-config": "6.0.2",
47
+ "@pob/eslint-config": "51.1.0",
48
+ "@pob/eslint-config-typescript": "51.1.0",
49
+ "@pob/eslint-config-typescript-react": "51.1.0",
50
+ "@pob/lerna-light": "8.0.1",
51
+ "@pob/pretty-pkg": "6.1.1",
52
+ "@types/jest": "29.5.6",
50
53
  "alp-rollup-plugin-config": "2.1.0",
51
54
  "check-package-dependencies": "6.8.0",
52
- "eslint": "8.50.0",
55
+ "eslint": "8.51.0",
53
56
  "jest": "29.7.0",
54
57
  "jest-junit-reporter": "1.1.0",
55
- "pob-babel": "36.4.2",
58
+ "pob-babel": "36.4.3",
56
59
  "prettier": "2.8.8",
57
- "repository-check-dirty": "6.1.0",
60
+ "repository-check-dirty": "6.1.1",
58
61
  "rollup": "3.29.4",
59
62
  "semver": "7.5.4",
60
- "typedoc": "0.25.1",
63
+ "typedoc": "0.25.2",
61
64
  "typescript": "5.2.2"
62
65
  }
63
66
  }
package/.editorconfig DELETED
@@ -1,13 +0,0 @@
1
- # EditorConfig helps developers define and maintain consistent
2
- # coding styles between different editors and IDEs
3
- # http://editorconfig.org
4
-
5
- root = true
6
-
7
- [*]
8
- indent_style = space
9
- indent_size = 2
10
- end_of_line = lf
11
- charset = utf-8
12
- trim_trailing_whitespace = true
13
- insert_final_newline = true
package/.eslintrc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "root": true,
3
- "extends": ["@pob/eslint-config/root-module"],
4
- "ignorePatterns": ["*.d.ts"]
5
- }
@@ -1,13 +0,0 @@
1
- {
2
- "rules": {
3
- "import/no-extraneous-dependencies": [
4
- "error",
5
- {
6
- "devDependencies": true
7
- }
8
- ],
9
- "import/no-dynamic-require": "off",
10
- "node/no-extraneous-require": "off",
11
- "global-require": "off"
12
- }
13
- }
@@ -1,27 +0,0 @@
1
- import fs from 'node:fs';
2
- import prettier from 'prettier';
3
- import { pkgPath } from './helper.cjs';
4
-
5
- const pkg = JSON.parse(fs.readFileSync(pkgPath));
6
-
7
- fs.writeFileSync(
8
- './lib/index.d.ts',
9
- prettier.format(
10
- `
11
- interface Dependencies {
12
- ${Object.keys(pkg.devDependencies)
13
- .map((dep) => `'${dep}': '${pkg.devDependencies[dep]}'`)
14
- .join(';\n ')};
15
- }
16
-
17
- declare const dependencies: Dependencies;
18
- export = dependencies;
19
- `,
20
- {
21
- filepath: 'index.d.ts',
22
- trailingComma: 'all',
23
- singleQuote: true,
24
- arrowParens: 'always',
25
- },
26
- ),
27
- );
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- exports.pkgPath = require.resolve('../package.json');
4
-
5
- exports.requireIfPossible = (packageJsonPath) => {
6
- try {
7
- return require(packageJsonPath);
8
- } catch (error) {
9
- console.error(`Failed to require ${packageJsonPath}`);
10
- console.error(error.message);
11
- return {};
12
- }
13
- };
@@ -1,42 +0,0 @@
1
- import fs from 'node:fs';
2
- import prettyPkg from '@pob/pretty-pkg';
3
- import semver from 'semver';
4
- import { pkgPath, requireIfPossible } from './helper.cjs';
5
-
6
- let madeModifications = false;
7
-
8
- const pkg = JSON.parse(fs.readFileSync(pkgPath));
9
-
10
- Object.keys(pkg.devDependencies).forEach((key) => {
11
- const depPkg = requireIfPossible(`${key}/package.json`);
12
- if (!depPkg.peerDependencies) return;
13
- Object.keys(depPkg.peerDependencies).forEach((peerDep) => {
14
- const peerDepRange = depPkg.peerDependencies[peerDep];
15
- if (!pkg.devDependencies[peerDep]) {
16
- console.warn(
17
- `Missing peerdep "${peerDep}" from "${depPkg.name}", asking for "${peerDepRange}"`,
18
- );
19
- } else if (!semver.satisfies(pkg.devDependencies[peerDep], peerDepRange)) {
20
- const newVersion = semver.minVersion(peerDepRange).version;
21
- if (semver.lt(newVersion, pkg.devDependencies[peerDep])) {
22
- console.warn(
23
- `Incompatible peerdep "${peerDep}" required version "${newVersion}" from "${depPkg.name}", asking for ${peerDepRange}`,
24
- );
25
- } else {
26
- console.log(
27
- `update "${peerDep}" to "${newVersion}" because ${
28
- !pkg.devDependencies[peerDep]
29
- ? 'it was added in'
30
- : `version "${pkg.devDependencies[peerDep]}" doesn't match peer dependency in`
31
- } ${depPkg.name} (${depPkg.version})`,
32
- );
33
- pkg.devDependencies[peerDep] = newVersion;
34
- madeModifications = true;
35
- }
36
- }
37
- });
38
- });
39
-
40
- if (madeModifications) {
41
- prettyPkg.writeSync(pkg, pkgPath);
42
- }