@vpmedia/simplify 1.44.0 → 1.46.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/.oxlintrc.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "env": { "browser": true },
4
+ "plugins": [
5
+ "eslint",
6
+ "import",
7
+ "jsdoc",
8
+ "jsx-a11y",
9
+ "oxc",
10
+ "promise",
11
+ "react-perf",
12
+ "react",
13
+ "typescript",
14
+ "unicorn"
15
+ ],
16
+ "categories": {
17
+ "correctness": "warn",
18
+ "nursery": "warn",
19
+ "pedantic": "warn",
20
+ "perf": "warn",
21
+ "restriction": "warn",
22
+ "style": "warn",
23
+ "suspicious": "warn"
24
+ },
25
+ "rules": {
26
+ "arrow-body-style": "off",
27
+ "class-methods-use-this": "off",
28
+ "consistent-type-imports": "off",
29
+ "curly": "off",
30
+ "default-param-last": "off",
31
+ "explicit-module-boundary-types": "off",
32
+ "exports-last": "off",
33
+ "extensions": "off",
34
+ "filename-case": "off",
35
+ "first": "off",
36
+ "func-style": "off",
37
+ "group-exports": "off",
38
+ "id-length": "off",
39
+ "init-declarations": "off",
40
+ "max-dependencies": "off",
41
+ "max-params": "off",
42
+ "no-anonymous-default-export": "off",
43
+ "no-async-await": "off",
44
+ "no-await-in-loop": "off",
45
+ "no-console": "off",
46
+ "no-continue": "off",
47
+ "no-default-export": "off",
48
+ "no-empty-interface": "off",
49
+ "no-empty-object-type": "off",
50
+ "no-explicit-any": "off",
51
+ "no-magic-numbers": "off",
52
+ "no-named-export": "off",
53
+ "no-null": "off",
54
+ "no-optional-chaining": "off",
55
+ "no-param-reassign": "off",
56
+ "no-rest-spread-properties": "off",
57
+ "no-ternary": "off",
58
+ "no-undef": "off",
59
+ "no-undefined": "off",
60
+ "no-unused-expressions": "off",
61
+ "no-unused-vars": "off",
62
+ "numeric-operators-style": "off",
63
+ "numeric-separators-style": "off",
64
+ "prefer-default-export": "off",
65
+ "prefer-destructuring": "off",
66
+ "prefer-event-target": "off",
67
+ "prefer-global-this": "off",
68
+ "require-module-specifiers": "off",
69
+ "sort-imports": "off",
70
+ "sort-keys": "off"
71
+ }
72
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ ## [1.46.0] - 2025-11-23
2
+
3
+ ### ⚙️ Miscellaneous Tasks
4
+
5
+ - Adjusted publish release commit message format
6
+ - *(release)* V1.46.0
@@ -0,0 +1,117 @@
1
+ const config = {
2
+ rules: {
3
+ 'body-leading-blank': [1, 'always'],
4
+ 'body-max-line-length': [2, 'always', 100],
5
+ 'footer-leading-blank': [1, 'always'],
6
+ 'footer-max-line-length': [2, 'always', 100],
7
+ 'header-max-length': [2, 'always', 100],
8
+ 'header-trim': [2, 'always'],
9
+ 'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
10
+ 'subject-empty': [2, 'never'],
11
+ 'subject-full-stop': [2, 'never', '.'],
12
+ 'type-case': [2, 'always', 'lower-case'],
13
+ 'type-empty': [2, 'never'],
14
+ 'type-enum': [
15
+ 2,
16
+ 'always',
17
+ ['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
18
+ ],
19
+ },
20
+ prompt: {
21
+ questions: {
22
+ type: {
23
+ description: "Select the type of change that you're committing",
24
+ enum: {
25
+ feat: {
26
+ description: 'A new feature',
27
+ title: 'Features',
28
+ emoji: '✨',
29
+ },
30
+ fix: {
31
+ description: 'A bug fix',
32
+ title: 'Bug Fixes',
33
+ emoji: '🐛',
34
+ },
35
+ docs: {
36
+ description: 'Documentation only changes',
37
+ title: 'Documentation',
38
+ emoji: '📚',
39
+ },
40
+ style: {
41
+ description:
42
+ 'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)',
43
+ title: 'Styles',
44
+ emoji: '💎',
45
+ },
46
+ refactor: {
47
+ description: 'A code change that neither fixes a bug nor adds a feature',
48
+ title: 'Code Refactoring',
49
+ emoji: '📦',
50
+ },
51
+ perf: {
52
+ description: 'A code change that improves performance',
53
+ title: 'Performance Improvements',
54
+ emoji: '🚀',
55
+ },
56
+ test: {
57
+ description: 'Adding missing tests or correcting existing tests',
58
+ title: 'Tests',
59
+ emoji: '🚨',
60
+ },
61
+ build: {
62
+ description:
63
+ 'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)',
64
+ title: 'Builds',
65
+ emoji: '🛠',
66
+ },
67
+ ci: {
68
+ description:
69
+ 'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)',
70
+ title: 'Continuous Integrations',
71
+ emoji: '⚙️',
72
+ },
73
+ chore: {
74
+ description: "Other changes that don't modify src or test files",
75
+ title: 'Chores',
76
+ emoji: '♻️',
77
+ },
78
+ revert: {
79
+ description: 'Reverts a previous commit',
80
+ title: 'Reverts',
81
+ emoji: '🗑',
82
+ },
83
+ },
84
+ },
85
+ scope: {
86
+ description: 'What is the scope of this change (e.g. component or file name)',
87
+ },
88
+ subject: {
89
+ description: 'Write a short, imperative tense description of the change',
90
+ },
91
+ body: {
92
+ description: 'Provide a longer description of the change',
93
+ },
94
+ isBreaking: {
95
+ description: 'Are there any breaking changes?',
96
+ },
97
+ breakingBody: {
98
+ description: 'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself',
99
+ },
100
+ breaking: {
101
+ description: 'Describe the breaking changes',
102
+ },
103
+ isIssueAffected: {
104
+ description: 'Does this change affect any open issues?',
105
+ },
106
+ issuesBody: {
107
+ description:
108
+ 'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself',
109
+ },
110
+ issues: {
111
+ description: 'Add issue references (e.g. "fix #123", "re #123".)',
112
+ },
113
+ },
114
+ },
115
+ };
116
+
117
+ export default config;
package/eslint.config.js CHANGED
@@ -24,7 +24,7 @@ export default [
24
24
  ...globals.vitest,
25
25
  ...globals.browser,
26
26
  ...globals.node,
27
- ...globals.es2021,
27
+ ...globals.es2026,
28
28
  },
29
29
  parserOptions: {
30
30
  ecmaVersion: 'latest',
@@ -51,36 +51,12 @@ export default [
51
51
  ...js.configs.recommended.rules,
52
52
  ...jsdocPlugin.configs['flat/recommended'].rules,
53
53
  ...unicornPlugin.configs.recommended.rules,
54
+ 'no-unused-vars': 'off',
54
55
  'unicorn/filename-case': 'off',
55
56
  'unicorn/no-null': 'off',
56
- 'unicorn/prevent-abbreviations': 'off',
57
- 'unicorn/prefer-global-this': 'off',
58
57
  'unicorn/numeric-separators-style': 'off',
59
- 'no-unused-vars': 'off',
60
- 'prefer-arrow-callback': 'error',
61
- 'prefer-template': 'error',
62
- 'jsdoc/require-jsdoc': [
63
- 'error',
64
- {
65
- require: {
66
- FunctionDeclaration: true,
67
- MethodDefinition: true,
68
- ClassDeclaration: false,
69
- ArrowFunctionExpression: false,
70
- FunctionExpression: false,
71
- },
72
- },
73
- ],
74
- 'jsdoc/check-indentation': 1,
75
- 'jsdoc/check-line-alignment': 1,
76
- 'jsdoc/check-syntax': 1,
77
- 'jsdoc/require-asterisk-prefix': 1,
78
- 'jsdoc/require-description': 1,
79
- 'jsdoc/require-description-complete-sentence': 1,
80
- 'jsdoc/require-hyphen-before-param-description': 1,
81
- 'jsdoc/require-throws': 1,
82
- 'jsdoc/sort-tags': 1,
83
- 'jsdoc/no-undefined-types': 0,
58
+ 'unicorn/prefer-global-this': 'off',
59
+ 'unicorn/prevent-abbreviations': 'off',
84
60
  },
85
61
  },
86
62
  ];
package/lefthook.yml CHANGED
@@ -1,13 +1,26 @@
1
+ # Lefthook configuration
2
+ # @namespace javascript
3
+ # @copyright Copyright (c) 2025-present VPMedia
4
+ # @author Andras Csizmadia <andras@vpmedia.hu>
5
+ # @version 1.0.0
6
+ # @see https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
7
+
1
8
  pre-commit:
2
9
  parallel: false
3
10
  commands:
4
11
  lint_yaml:
5
12
  glob: "*.{yml,yaml}"
13
+ run: yq 'true' {staged_files} > /dev/null
14
+ format_js:
15
+ glob: "*.{js,jsx}"
6
16
  run: |
7
17
  set -e
8
- yq 'true' {staged_files} > /dev/null
18
+ pnpm exec prettier --write -- {staged_files}
19
+ git add {staged_files} &> /dev/null || true
9
20
  lint_js:
10
21
  glob: "*.{js,jsx}"
11
- run: |
12
- set -e
13
- ./node_modules/.bin/eslint {staged_files}
22
+ run: pnpm exec eslint {staged_files}
23
+ commit-msg:
24
+ commands:
25
+ commitlint:
26
+ run: pnpm exec commitlint --edit {1}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/simplify",
3
- "version": "1.44.0",
3
+ "version": "1.46.0",
4
4
  "description": "@vpmedia/simplify",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -22,21 +22,25 @@
22
22
  "eventemitter3": "^5.0.1"
23
23
  },
24
24
  "optionalDependencies": {
25
- "@sentry/browser": "^10.20.0"
25
+ "@sentry/browser": "^10.26.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@babel/preset-env": "^7.28.3",
29
- "@eslint/js": "^9.38.0",
30
- "@types/node": "^24.8.1",
31
- "@vitest/coverage-v8": "^3.2.4",
32
- "eslint-plugin-jsdoc": "^61.1.4",
33
- "eslint-plugin-unicorn": "^61.0.2",
34
- "eslint": "^9.38.0",
35
- "globals": "^16.4.0",
36
- "jsdom": "^27.0.1",
28
+ "@babel/preset-env": "^7.28.5",
29
+ "@commitlint/cli": "^20.1.0",
30
+ "@commitlint/config-conventional": "^20.0.0",
31
+ "@eslint/js": "^9.39.1",
32
+ "@types/node": "^24.10.1",
33
+ "@vitest/coverage-v8": "^4.0.13",
34
+ "eslint": "^9.39.1",
35
+ "eslint-plugin-jsdoc": "^61.4.0",
36
+ "eslint-plugin-oxlint": "^1.29.0",
37
+ "eslint-plugin-unicorn": "^62.0.0",
38
+ "globals": "^16.5.0",
39
+ "jsdom": "^27.2.0",
40
+ "oxlint": "^1.29.0",
37
41
  "prettier": "^3.6.2",
38
42
  "typescript": "^5.9.3",
39
- "vitest": "^3.2.4"
43
+ "vitest": "^4.0.13"
40
44
  },
41
45
  "browserslist": [
42
46
  "> 0.5%",
@@ -32,7 +32,7 @@ export class SentryLogHandler extends AbstractLogHandler {
32
32
  category: 'console',
33
33
  message: logMessage,
34
34
  level: levelName,
35
- data: extra === undefined ? undefined : { extra },
35
+ data: extra,
36
36
  };
37
37
  addBreadcrumb(breadcrumb);
38
38
  if (error) {