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

Automatic conversion enum/int - when mapping to class #337

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npx eslint src/assets/netteForms.js
- run: npx eslint
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2', '8.3']
php: ['8.1', '8.2', '8.3', '8.4']

fail-fast: false

Expand Down Expand Up @@ -65,8 +65,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install -g karma-cli
- run: npm install
- working-directory: tests/netteForms
run: npm install
- working-directory: tests/netteForms
run: karma start
run: npx karma start karma.conf.cjs
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "8.1 - 8.3",
"php": "8.1 - 8.4",
"nette/component-model": "^3.1",
"nette/http": "^3.3",
"nette/utils": "^4.0.4"
Expand All @@ -24,12 +24,12 @@
"nette/application": "^3.0",
"nette/di": "^3.0",
"nette/tester": "^2.5.2",
"latte/latte": "^2.10.2 || ^3.0.12",
"latte/latte": "^3.0.12",
"tracy/tracy": "^2.9",
"phpstan/phpstan-nette": "^1"
},
"conflict": {
"latte/latte": ">=3.0.0 <3.0.12 || >=3.1"
"latte/latte": "<3.0.12"
},
"suggest": {
"ext-intl": "to use date/time controls"
Expand All @@ -44,7 +44,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "3.2-dev"
"dev-master": "4.0-dev"
}
}
}
48 changes: 48 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';

export default [
{
ignores: [
'*/', '!src/', '!tests/',
'**/*.min.js',
],
},

pluginJs.configs.recommended,

stylistic.configs.customize({
indent: 'tab',
braceStyle: '1tbs',
arrowParens: true,
semi: true,
jsx: false,
}),

{
languageOptions: {
ecmaVersion: 2021,
globals: {
...globals.browser,
...globals.jasmine,
...globals.amd,
...globals.commonjs,
Nette: 'readable',
Tracy: 'writeable',
},
},
plugins: {
'@stylistic': stylistic,
},
rules: {
'@stylistic/no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0 }],
'@stylistic/new-parens': ['error', 'never'],
'@stylistic/padded-blocks': 'off',
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'prefer-arrow-callback': 'error',
'arrow-body-style': 'error',
'no-var': 'error',
},
},
];
30 changes: 0 additions & 30 deletions eslint.config.mjs

This file was deleted.

32 changes: 10 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
{
"name": "nette-forms",
"version": "3.4.1",
"description": "Client side script for Nette Forms Component",
"keywords": [
"nette",
"validation",
"forms"
],
"homepage": "https://nette.org",
"author": "David Grudl (https://davidgrudl.com)",
"license": "BSD-3-Clause",
"main": "src/assets/netteForms.js",
"files": [
"src/assets"
],
"repository": {
"type": "git",
"url": "git+https://github.com/nette/forms.git"
},
"type": "module",
"devDependencies": {
"@eslint/js": "^9.1.1",
"eslint": "^9.1.1",
"globals": "^15.1.0"
"@eslint/js": "^9.4.0",
"@stylistic/eslint-plugin": "^2.1.0",
"eslint": "^9.4.0",
"globals": "^15.3.0",
"jasmine": "^5.1.0",
"jasmine-core": "^5.1.1",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-jasmine": "^5.1.0"
}
}
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Nette Forms: greatly facilitates web forms
==========================================

[![Downloads this Month](https://img.shields.io/packagist/dm/nette/forms.svg)](https://packagist.org/packages/nette/forms)
[![Tests](https://github.com/nette/forms/actions/workflows/tests.yml/badge.svg?branch=v3.2)](https://github.com/nette/forms/actions)
[![Coverage Status](https://coveralls.io/repos/github/nette/forms/badge.svg?branch=v3.2)](https://coveralls.io/github/nette/forms?branch=v3.2)
[![Tests](https://github.com/nette/forms/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/nette/forms/actions)
[![Coverage Status](https://coveralls.io/repos/github/nette/forms/badge.svg?branch=master)](https://coveralls.io/github/nette/forms?branch=master)
[![Latest Stable Version](https://poser.pugx.org/nette/forms/v/stable)](https://github.com/nette/forms/releases)
[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg)](https://github.com/nette/forms/blob/master/license.md)

Expand Down Expand Up @@ -44,7 +44,7 @@ The recommended way to install is via Composer:
composer require nette/forms
```

It requires PHP version 8.1 and supports PHP up to 8.3.
It requires PHP version 8.1 and supports PHP up to 8.4.


Client-side support can be installed with npm or yarn:
Expand Down
Loading
Loading