@vpmedia/phaser 1.90.0 → 1.91.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
@@ -1,3 +1,10 @@
1
+ ## [1.91.0] - 2025-12-11
2
+
3
+ ### ⚙️ Miscellaneous Tasks
4
+
5
+ - Release
6
+ - Improve type checking
7
+ - *(release)* V1.91.0
1
8
  ## [1.90.0] - 2025-12-11
2
9
 
3
10
  ### 🚜 Refactor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/phaser",
3
- "version": "1.90.0",
3
+ "version": "1.91.0",
4
4
  "description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -56,7 +56,7 @@ export class DisplayObject {
56
56
  this._filters = null;
57
57
  /** @type {object} */
58
58
  this._filterBlock = null;
59
- /** @type {object[]} */
59
+ /** @type {DisplayObject[]} */
60
60
  this.children = [];
61
61
  /** @type {boolean} */
62
62
  this.ignoreChildInput = false;
package/.oxlintrc.json DELETED
@@ -1,28 +0,0 @@
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
- "no-unused-vars": "off"
27
- }
28
- }
@@ -1,117 +0,0 @@
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 DELETED
@@ -1,102 +0,0 @@
1
- import { defineConfig } from 'eslint/config';
2
- import js from '@eslint/js';
3
- import jsdocPlugin from 'eslint-plugin-jsdoc';
4
- import unicornPlugin from 'eslint-plugin-unicorn';
5
- import globals from 'globals';
6
-
7
- export default defineConfig([
8
- {
9
- ignores: [
10
- '.github/**/*.*',
11
- '.idea/**/*.*',
12
- '.vscode/**/*.*',
13
- 'build/**/*.*',
14
- 'coverage/**/*.*',
15
- 'dist/**/*.*',
16
- 'public/**/*.*',
17
- 'types/**/*.*',
18
- 'node_modules/**/*.*',
19
- ],
20
- },
21
- {
22
- languageOptions: {
23
- globals: {
24
- ...globals.vitest,
25
- ...globals.browser,
26
- ...globals.node,
27
- ...globals.es2026,
28
- },
29
- parserOptions: {
30
- ecmaVersion: 'latest',
31
- sourceType: 'module',
32
- ecmaFeatures: {
33
- jsx: true,
34
- },
35
- },
36
- },
37
- files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
38
- plugins: {
39
- jsdoc: jsdocPlugin,
40
- unicorn: unicornPlugin,
41
- },
42
- settings: {
43
- 'import/parsers': {
44
- espree: ['.js', '.cjs', '.mjs', '.jsx'],
45
- },
46
- 'import/resolver': {
47
- node: true,
48
- },
49
- },
50
- rules: {
51
- ...js.configs.recommended.rules,
52
- ...jsdocPlugin.configs['flat/recommended'].rules,
53
- ...unicornPlugin.configs.recommended.rules,
54
- 'no-unused-vars': 'off',
55
- 'prefer-arrow-callback': 'warn',
56
- 'prefer-template': 'warn',
57
- 'unicorn/consistent-function-scoping': 'off',
58
- 'unicorn/explicit-length-check': 'off',
59
- 'unicorn/filename-case': 'off',
60
- 'unicorn/no-array-for-each': 'off',
61
- 'unicorn/no-array-reverse': 'off',
62
- 'unicorn/no-for-loop': 'off',
63
- 'unicorn/no-immediate-mutation': 'warn',
64
- 'unicorn/no-lonely-if': 'off',
65
- 'unicorn/no-negated-condition': 'off',
66
- 'unicorn/no-nested-ternary': 'off',
67
- 'unicorn/no-null': 'off',
68
- 'unicorn/no-this-assignment': 'off',
69
- 'unicorn/no-typeof-undefined': 'off',
70
- 'unicorn/no-undefined': 'off',
71
- 'unicorn/no-useless-undefined': 'off',
72
- 'unicorn/number-literal-case': 'off',
73
- 'unicorn/numeric-separators-style': 'off',
74
- 'unicorn/prefer-add-event-listener': 'off',
75
- 'unicorn/prefer-at': 'off',
76
- 'unicorn/prefer-class-fields': 'off',
77
- 'unicorn/prefer-code-point': 'off',
78
- 'unicorn/prefer-default-parameters': 'off',
79
- 'unicorn/prefer-dom-node-append': 'off',
80
- 'unicorn/prefer-dom-node-remove': 'off',
81
- 'unicorn/prefer-global-this': 'off',
82
- 'unicorn/prefer-includes': 'off',
83
- 'unicorn/prefer-logical-operator-over-ternary': 'off',
84
- 'unicorn/prefer-math-min-max': 'off',
85
- 'unicorn/prefer-math-trunc': 'off',
86
- 'unicorn/prefer-modern-dom-apis': 'off',
87
- 'unicorn/prefer-modern-math-apis': 'off',
88
- 'unicorn/prefer-optional-catch-binding': 'off',
89
- 'unicorn/prefer-query-selector': 'off',
90
- 'unicorn/prefer-regexp-test': 'off',
91
- 'unicorn/prefer-single-call': 'off',
92
- 'unicorn/prefer-spread': 'off',
93
- 'unicorn/prefer-string-replace-all': 'off',
94
- 'unicorn/prefer-string-slice': 'off',
95
- 'unicorn/prefer-structured-clone': 'off',
96
- 'unicorn/prefer-switch': 'off',
97
- 'unicorn/prefer-ternary': 'off',
98
- 'unicorn/prevent-abbreviations': 'off',
99
- 'unicorn/switch-case-braces': 'off',
100
- },
101
- },
102
- ]);
package/lefthook.yml DELETED
@@ -1,26 +0,0 @@
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
-
8
- pre-commit:
9
- parallel: false
10
- commands:
11
- lint_yaml:
12
- glob: "*.{yml,yaml}"
13
- run: yq 'true' {staged_files} > /dev/null
14
- format_js:
15
- glob: "*.{js,jsx}"
16
- run: |
17
- set -e
18
- pnpm exec prettier --write -- {staged_files} || true
19
- git add {staged_files} &> /dev/null || true
20
- lint_js:
21
- glob: "*.{js,jsx}"
22
- run: pnpm exec eslint {staged_files}
23
- commit-msg:
24
- commands:
25
- commitlint:
26
- run: pnpm exec commitlint --edit {1}