Nette Framework 2.4 (2016–07–31)
Notice: This thread is very old.
- David Grudl
- Nette Core | 8218
Nette Framework 2.4 (2016–07–31) has just been released.
This summarizes the differences from 2016–06–30.
Latte
- CoreMacros: translate macro does not use output buffer when possible nette/latte#124
- Snippets: disable snippet mode when rendering snippets [BC break – interface changed] (nette/latte#127)
- CoreMacros: {spaceless} works the same way as |strip and strips output in chunks
- Revert “deprecated filter |strip”, changed implementation to prevent backtrace limit errors
- BlockMacros: fixed expandTokens in dynamic blocks (nette/latte#125)
- PhpWriter: fixed handling of uppercase class name
- fixed compatibility with PHP 7.1
For the details you can have a look at the diff.
Application
- SnippetBridge: added setSnippetMode; added snippet test (nette/application#150)
- Presenter: removed static from refUrl variable (nette/application#80)
- Presenter: fixed creating link with required persistent parameters (nette/application#148)
- Presenter: flash key has to be string (fix for “Array to string conversion” notice) (nette/application#147)
- ComponentReflection::parseAnnotations: fixed regexp quoting
For the details you can have a look at the diff.
Caching
- SQLiteJournal: checking for extension pdo_sqlite is lazy, service cache.journal is created always
For the details you can have a look at the diff.
Deprecated
All classes and methods trigger deprecation notices.
For the details you can have a look at the diff.
DI
- PhpReflection::
parseAnnotation()
regexp fix - DependencyChecker: prevents fatal error when undefined constant is used as default value of method parameter
- DIExtension: added option ‘parentClass’ nette/bootstrap#52
- ContainerBuilder::resolveImplement: use isDefaultValueAvailable instead of isOptional (nette/di#121)
- ContainerBuilder: improved exception messages
- Config\Loader: removed
realpath()
to be compatible with FileMock nette/di#120 - ContainerLoader: fixed extra
implode()
nette/di#119
For the details you can have a look at the diff.
Forms
- added netteForms.min.js
- netteForms: forms are initialized on DOMContentLoaded instead of onload
- netteForms: fixed compatibility with IE 8
- Container::
addInteger()
is nullable - TextInput: Reverts, validators FLOAT doesn't automatically sets type to ‘number’
- TextBase: added
setNullable()
- TextBase: emptyValue is removed from value in
validate()
- TextBase, TextInput, TextArea: refactoring, rendered value is built
in
getRenderedValue()
- TextInput: rules are processed in
addRule()
instead ofgetControl()
(is consistent with TextBase)
For the details you can have a look at the diff.
- SmtpMailer: add support for AUTH PLAIN (nette/mail#31)
For the details you can have a look at the diff.
Php Generator
- ClassType: added @property $properties (nette/php-generator#23)
- Helpers::
dump()
native dumping of DateTime & DateTimeImmutable
For the details you can have a look at the diff.
Tracy
- BlueScreen: catches exceptions while rendering user panels nette/tracy#208
- Dumper: removed dependency on utf8_decode because it is missing in some PHP packages nette/tracy#212
- Bar: assets path dependent on session cookie path (nette/tracy#213)
- bar.js: fix for protocol-less ajax url request (nette/tracy#211)
- bar.js: warning about IE11+ thrown as exception because console may not exist
- Debugger::
enable()
anddispatch()
throws exception when output has been sent - bar.js: tracks XMLHttpRequest.getResponseHeader method nette/tracy#205
- bar.js: Strip tags from window title when opening in new window (nette/tracy#203)
- Bars: sends CSS with UTF-8 charset (nette/tracy#201)
- TracyExtension: Don't dispatch Debugger in a CLI (nette/tracy#200)
- bar.js: auto hide labels works after ajax
For the details you can have a look at the diff.