Released version 2.3.10

@dg dg released this Apr 13, 2016 · 24 commits to master since this release

  • composer.json: relaxed dependencies to ~2.3.x
  • Http\RequestFactory: Fixed possible remoteAddr spoofing (issue nette/http#87)
  • PresenterFactory: added possibility to configure mapping via array
  • Presenter: isLinkCurrent is compatible with PHP 7 typehints
  • RouteList: added warmupCache()
  • JsonResponse: sends utf-8 charset
  • DI\ContainerBuilder: unused parameters check when generating factory
  • DI\Compiler: support for removing services via 'name: no'
  • Mail\Message: improved regexp for seaching embedded images
  • SafeStream: unregister protocols in cleaner way
  • Html::__toString() prints better error message
  • Latte: exception 'Template is not valid UTF-8 stream' provides line number
  • Latte: supports PHP 7 coalesce operator
  • Tracy\Bar: added CPU usage to info panel
  • TracyExtension: added option 'showBar'

For the details you can have a look at: application, di, http + previous, mail, reflection, safe-stream, utils, latte, tracy.

Downloads

Released version 2.2.13

@dg dg released this Apr 13, 2016 · 55 commits to master since this release

This release marks the end of life of the Nette 2.2 series. All users are encouraged to upgrade to the current stable version.

  • composer.json: relaxed dependencies to ~2.2.x
  • Http\RequestFactory: Fixed possible remoteAddr spoofing (issue nette/http#87)

Downloads

Released version 2.3.9

@dg dg released this Feb 22, 2016 · 24 commits to master since this release

Application

  • Presenter::argsToParams() computes default values for mandatory parameters with built-in typehint
  • Presenter: throws exception when parameter has scalar type hint & no default value and argument is missing
  • Route: support for optional [<module>]
  • Template: better error message when Translator is not set

Caching

  • added NewMemcachedStorage

DI

  • DI\Container: added getServiceType()
  • DI\Compiler: InjectExtension is moved after extensions added by ExtensionsExtension
  • DI\Compiler: calls prepareClassList() after each beforeCompile()
  • DI\ContainerBuilder::removeAlias() removes aliases
  • DI\Helpers::autowireArguments() better error message for PHP7 and class name case mismatch

Forms

  • Form: added IS_NOT_IN
  • Forms\Helpers::exportRules() correctly exports empty arrays
  • Forms: allow Form::VALID only in the addConditionOn
  • FormMacros: better error messages
  • SelectBox: is not required when size > 1
  • Validator: pattern: supports back reference
  • __toString handles Throwable errors
  • netteForms.js: validator 'equal' compares values as PHP strings

HTTP

  • IRequest: added PATCH method constant
  • Fix FileUpload::move($dest) when low permission to chmod

Neon

  • Neon\Decoder: fixed entity value conversion in the entity chain

Latte

  • BlockMacros: fixed enabling snippetMode in the dynamic snippetArea
  • Latte\Parser::parseMacroTag() fixed extraction of modifier
  • Parser: || is not modifier separator
  • Engine: fixed CompileException sourceLine on PHP7
  • FileLoader: error message explaining touching, when touch() fails

Tracy

  • added Debugger::$showBar, can disable debug bar
  • Bluescreen: link to google opens in new window
  • Bar: add xdebug version to info panel
  • bar.js: MouseEvent.buttons is not supported by Safari
  • Dumper: support for general object exporter which is called for every object
  • Dumper: object exporters are called in order from most specific to general
  • Debugger: removes output buffer for Bar, Bluescreen and production error. It decides whether clean or flush output buffers.
  • Dumper: variable term=xterm-256color enables colors

For the details you can have a look at: application + previous + previous, caching, di + previous, finder, forms + previous, http, neon, latte + previous, tracy + previous.

This release marks the end of active support of the Nette 2.3 series. For one year only critical issues will be fixed.

Downloads

Released version 2.1.12

@dg dg released this Dec 3, 2015 · 350 commits to master since this release

This release marks the end of life of the Nette 2.1 series. All users are encouraged to upgrade to the current stable version.

  • compatiblity with PHP 7, supports Throwable etc…
  • Image: fixed color allocation in palette-based images
  • Validator::is: fixed value overwriting
  • Route: action is mandatory when defined as 'Presenter:'
  • Control: global snippet changed from NULL to \0 to be distinguished from ''
  • UIMacros: {snippet} and {snippetArea} without name has name '' in both PHP 5 and PHP 7
  • Templating: improved HTML comments escaping nette/latte#87
  • Latte Parser: fixed substr_count() error on empty string
  • Debugger: support for PHP7 Throwable
  • __toString handles Throwable errors
  • Cache::save() handles Throwable errors
  • Cache: fixed deadlock when exception is thrown in fallback
  • Fix FileUpload::move($dest) when low permission to chmod
  • netteForms.js: updated to v2.2

For the details you can have a look at the diff.

Downloads

Released version 2.3.8

@dg dg released this Dec 3, 2015 · 24 commits to master since this release

  • compatiblity with PHP 7, supports Throwable etc…
  • Route: action is mandatory when defined as 'Presenter:'
  • UIMacros: better error message
  • TracyBridge: prints template name although is not file
  • Configurator: DI container cache key depends on PHP minor version
  • Cache: fixed deadlock when exception is thrown in fallback nette/caching#36
  • CacheMacro: added warning Modifiers are not allowed here
  • Selection::insert() fixed delimiting of FQN sequence name like 'aaa.bbb' nette/database#108
  • ActiveRow: optimization
  • tested on AppVeyor
  • DI: Compiler, CompilerExtension: shows suggestions for unexpected config items and extensions, better error message
  • FormMacros: added warnings Modifiers are not allowed here
  • Form::$onSuccess and Container::$onValidate must be array of Traversable
  • netteForms: updated regexp for URL and email validation nette/nette#1539 nette/nette#1540
  • SmtpMailer: used stream_socket_client instead of fsockopen nette/mail#19
  • Messages: fixed regexp for propagating links nette/mail#18
  • PhpGenerator: ClassType, Method: class types are not resolved when namespace is not specified nette/php-generator#21
  • Strings::toAscii() optimization
  • ObjectMixin::getSuggestion() better balance, replacement of prefix get|set|add|has|is costs 20
  • Callback::invokeSafe() removes function name also with arguments from error message
  • Latte Parser: used possessive quantifiers and atomic grouping (prevents 500 error)
  • Engine: throws CompileException when template contains parse error
  • CoreMacros: {else if} throws warning "Did you mean {elseif}"
  • Macroset: checks for allowed arguments
  • Latte Filters: improved HTML comments escaping nette/latte#87
  • Debugger: reserves some memory that is used when error "Allowed Memory Exhausted" occurs
  • Debugger: cleans output buffers on strictMode error
  • Debugger: error exit code changed from 254 to 255 for Error
  • Debugger: more readable exceptions in console
  • Helpers::editorUri default $line is 1; line is required by open-editor.js
  • Dumper: fixed live-dumping of floats like '1.0'
  • bluescreen: bigger exception/error message

For the details you can have a look at: application, bootstrap, caching, database, deprecated, di, forms, mail, php-generator, utils, latte + previous, tracy + previous.

Downloads

Released version 2.2.12

@dg dg released this Dec 3, 2015 · 55 commits to master since this release

  • compatiblity with PHP 7, supports Throwable etc…
  • Route: action is mandatory when defined as 'Presenter:'
  • Cache: fixed deadlock when exception is thrown in fallback
  • ControlGroup::add() validation fixed; typos
  • netteForms.js: validator 'equal' compares values as PHP strings
  • netteForms.js: fixed freeze browser on email validation nette/nette#1540
  • netteForms: updated regexp for URL and email validation nette/nette#1539
  • SmtpMailer: improved exception message on write failure
  • Neon Encoder: removed trailing spaces nette/neon#20
  • Neon Decoder: fixed support for hex numbers in PHP 7
  • Validator::is: fixed value overwriting
  • Random: use random_int() on PHP 7
  • Random: charlist now contains only unique characters
  • Random: rejects openssl_random_pseudo_bytes result when is not cryptographically strong
  • Random: skips microtime(), str_shuffle() and lcg_value() when cryptographically strong source is used
  • Image: fixed color allocation in palette-based images
  • Latte Parser: used possessive quantifiers and atomic grouping
  • Latte Filters: improved HTML comments escaping #87
  • Latte microoptimizations
  • BlockMacros: fixed triming of block nette/latte#83
  • BlockMacros: fixed child template without block nette/latte#80
  • added Helpers::getClass() class name can contain control characters in PHP 7
  • Helpers::editorUri default $line is 1; line is required by open-editor.js
  • Helpers::editorLink() improved way how file names are shortened

For the details you can have a look at: application, caching, forms, mail, neon, utils, latte + previous, tracy.

Downloads

Released version 2.3.7

@dg dg released this Oct 14, 2015 · 24 commits to master since this release

„Did you mean?“ feature

  • Database Row, ActiveRow: shows suggestions for undeclared columns
  • Tracy: shows suggestions for some errors and notices (see)
  • Nette\Object: suggestions for undeclared methods and properties (see)
  • Latte: missing macros and filters
  • component Container: shows suggestions for missing components

Application

  • RoutingPanel: redesign, added HTTP method
  • Presenter: better exception messages
  • PresenterComponentReflection::convertType() support for all built-in PHP typehints
  • PresenterComponentReflection::convertType() converts NULL to appropriate type
  • added Nette\Application\Responses\CallbackResponse
  • ErrorPresenter: returns CallbackResponse
  • removed rarely used @property phpDoc

Database

  • Selection: Fixed infinite loop when accessing to deleted row
  • SqlsrvDriver: support for limit and offset on SQL Server 2012
  • drivers: fixed applyLimit for $limit = 0
  • drivers: applyLimit() throws exception for negative values (but not when you use page())
  • Selection: fixed bug with zero in primary key
  • Selection: referenced cache cleared only for root selection (not in GroupedSelection)
  • SqlsrvDriver::applyLimit(): supports keywords DISTINCT and ALL after SELECT
  • SqlBuilder: removed "AS" keyword in JOINs
  • Structure: added columns analyze for views

DI

  • ContainerBuilder: added support for PHP7 type hints
  • DecoratorExtension: implemented decorating by factory interface
  • PhpExtension: NULLs are skipped.
  • NeonAdapter: fixed dump() for data with simple Nette\DI\Statement

Forms

  • CheckboxList: added containerPrototype and itemLabelPrototype
  • FormMacros: added warnings Modifiers are not allowed here
  • Form::$onSuccess and Container::$onValidate must be array or Traversable
  • netteForms: updated regexp for URL and email validation

Mail

  • Message: propagates links target from HTML message to plaintext version

PhpGenerator

  • added support for anonymous classes
  • Method, Parameter: added support for PHP 7 type hints
  • Method, Parameter, Property: added constructors
  • PhpNamespace::unresolveName() supports for built-in types and PHP 7 types

Tracy

  • Debugger::barDump() dumps basic location by default
  • Helpers::editorLink() improved way how file names are shortened
  • Logger: fixed severity in formatMessage()
  • fixes for PHP 7, added new examples

Latte

  • added warnings: Modifiers are not allowed here
  • BlockMacros: fixed trimming of block
  • BlockMacros: fixed child template without block
  • Parser: fixed substr_count() error on empty string

Utils

  • Random: use random_int() on PHP 7
  • Random: charlist now contains only unique characters
  • Random: rejects openssl_random_pseudo_bytes result when it is not cryptographically strong
  • Image: fixed color allocation in palette-based images
  • ObjectMixin: added getExtensionMethods()
  • ObjectMixin: added warning when method-getter is used by mistake (for getters without parameters) (BC break) See note.

Sandbox

  • Error & Error4xx presenters

For the details you can have a look at: application, component-model, database + previous, di, forms, mail, php-generator + previous, utils + previous, latte, tracy.

Downloads

Released version 2.3.5

@dg dg released this Aug 23, 2015 · 24 commits to master since this release

Nette Framework 2.3.5 has just been released.

  • Presenter: fixed signal in POST in ajax request
  • Selection: added fetchField()
  • Structure: added rebuild when table not exists in cache
  • Structure: throws proper exception when table doesn't exists
  • Neon\Encoder: added support for entity chaining
  • PhpGenerator, added support for build-in types callable, self, parent, better whitespace usage
  • Strings: added const for trim method whitespace charset
  • Json: accept whitespace-surrounded "null" for decode() as it is a valid JSON text
  • Image: fix exception message
  • Html, Latte: chars '<' in attributes are encoded in XHTML
  • Latte\Engine: added warmupCache()
  • Debugger Bar: fixed dragging in Firefox when cursor leaves the browser window
  • BlueScreen: collapse paths usable with files
  • Logger: better readability of exception file name

For the details you can have a look at the diffs: application, database, neon, php-generator, utils, latte, tracy.

Downloads