Skip to content

Releases: yiisoft/view

Version 12.2.2

07 Dec 06:51
Immutable release. Only release title and notes can be modified.
12.2.2
1eb44c3

Choose a tag to compare

Full changelog

Version 12.2.1

20 Jul 15:14
12.2.1
0c4aaa2

Choose a tag to compare

  • Enh #286: Allow to use null as value of basePath parameter in package configuration (@vjik)

Version 12.2.0

16 May 06:57
12.2.0
a60d15e

Choose a tag to compare

  • New #284: Allow to pass Stringable objects to WebView::setTitle() method (@vjik)
  • Bug #283: Allow using multiple theme paths in yiisoft/view → theme → pathMap package parameter (@mariovials, @vjik)

Version 12.1.0

15 Mar 12:51
12.1.0
ada7a1c

Choose a tag to compare

  • Chg #280: Change PHP constraint in composer.json to 8.1 - 8.4 (@vjik)
  • Enh #282: Allow using ../ in the name of the view to refer to parent directory of the directory containing the view
    currently being rendered (@vjik)
  • Bug #280: Explicitly mark nullable parameters (@vjik)
  • Bug #282: Fix exception message when relative path is used without currently rendered view (@vjik)

Version 12.0.0

23 Dec 07:43
12.0.0
b6b6910

Choose a tag to compare

  • New #278: Add ViewInterface::deepClone() method that clones object, including state cloning (@vjik)
  • Chg #276: Allow to pass null to ViewInterface methods withBasePath() and withContext() (@vjik)
  • Bug #279: Fix clearing theme in View::withClearedState() and WebView::withClearedState() (@vjik)

Version 11.0.1

08 Oct 07:48
11.0.1
dfdae3f

Choose a tag to compare

  • Enh #275: Make psr/event-dispatcher dependency optional (@vjik)

Version 11.0.0

02 Oct 09:59
11.0.0
c73dd70

Choose a tag to compare

  • Chg #271: Remove deprecated methods withDefaultExtension() and getDefaultExtension() from ViewInterface (@vjik)
  • Chg #271: Rename configuration parameter defaultExtension to fallbackExtension (@vjik)
  • Chg #272: Add variadic parameter $default to ViewInterface::getParameter() (@vjik)
  • Enh #269: Bump PHP version to ^8.1 and refactor code (@vjik)
  • Enh #273: Use more specific psalm types in results of WebView methods: getLinkTags(), getCss(), getCssFiles(),
    getJs() and getJsFiles() (@vjik)
  • Bug #273: Fix empty string and "0" keys in WebView methods: registerCss(), registerStyleTag(),
    registerCssFile(), registerJs(), registerScriptTag() and registerJsFile() (@vjik)

Version 10.0.0

28 Jun 10:03
10.0.0
4416d30

Choose a tag to compare

  • Chg #266: Change logic of template file searching in ViewInterface::render() (@vjik)
  • Chg #266: Remove ViewInterface::renderFile() (@vjik)
  • Chg #266: When the view cannot be resolved in ViewInterface::render(), change exception from RuntimeException to
    LogicException (@vjik)

Version 9.0.0

28 May 14:15
9.0.0
dd130b7

Choose a tag to compare

  • New #242: Add View::getLocale() and WebView::getLocale() methods (@Tigrov)
  • New #243: Add immutable method ViewInterface::withTheme() (@Gerych1984)
  • Chg #232: Deprecate ViewInterface::withDefaultExtension() and ViewInterface::getDefaultExtension() in favor of
    withFallbackExtension() and getFallbackExtensions() (@rustamwin)
  • Enh #226: Adjust config to make View and WebView more configurable (@rustamwin)
  • Enh #232, #233: Make fallback extension configurable & support multiple fallbacks (@rustamwin)
  • Enh #248: Add types to ViewInterface::setParameter() and ViewInterface::addToParameter() parameters (@vjik)
  • Enh #250: Make event dispatcher in View and WebView optional (@vjik)
  • Enh #251: Make base path in View and WebView optional (@vjik)
  • Bug #224: Fix signature of CachedContent::cache() (@vjik)
  • Bug #226: Fix reset config for referenced definitions (@rustamwin)
  • Bug #232: Fix render templates that contain dots in their name (@rustamwin)

Version 8.0.0

16 Feb 13:21
8.0.0
85d0e4b

Choose a tag to compare

  • Chg #219: Adapt configuration group names to Yii conventions (@vjik)
  • Enh #222: Add support for yiisoft/cache version ^3.0 (@vjik)