laminas-feed
laminas-feed copied to clipboard
Update Laminas packages (major)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
laminas/laminas-cache (source) | ^2.13.2 || ^3.12 -> ^4.0 |
||||
laminas/laminas-cache-storage-adapter-memory | ^1.1.0 || ^2.3 -> ^3.0 |
||||
laminas/laminas-coding-standard (source) | ~2.5.0 -> ~3.0.0 |
||||
laminas/laminas-servicemanager (source) | ^3.22.1 -> ^4.0.0 |
||||
laminas/laminas-validator (source) | ^2.46 -> ^3.0 |
Release Notes
laminas/laminas-cache (laminas/laminas-cache)
v4.0.4
Release Notes for 4.0.4
4.0.4
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 1
Documentation
-
328: Add new
max&#​95;items
Memory
adapter option thanks to @boesing -
327: Add new
FilesystemOptions
related toFilesystem
v3.0 thanks to @boesing - 326: Update documentation to reflect most recent changes regarding v4 and adapters thanks to @boesing
v4.0.3
Release Notes for 4.0.3
4.0.3
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug
v4.0.2
Release Notes for 4.0.2
4.0.x bugfix release (patch)
4.0.2
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug
v4.0.1
Release Notes for 4.0.1
4.0.x bugfix release (patch)
4.0.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug
v4.0.0
Release Notes for 4.0.0
laminas-cache
4.0.0 is here and finally adds native types everywhere, adds support for psr/cache
and psr/simple-cache
v2 & v3 and introduces an all new metadata logic which allows adapters to provide metadata they actually support.
Please read more on how to migrate your project in our migration guideline.
Added
- Every adapter which supports
metadata
now implementsMetadataCapableInterface
and provides a dedicated object containing all the metadata values it supports - Adds support for
psr/cache
andpsr/simple-cache
v2 & v3
Removed
-
supportedMetadata
capability fromCapabilities
-
KeyListIterator::CURRENT_AS_METADATA
mode along withLaminas\Cache\Exception\MissingKeyException
- automatic instantiation of
SerializerInterface
when callingPluginOptions#getSerializer
- Increment and decrement feature from
StorageInterface
, so there is no moreStorageInterface#incrementItem
,StorageInterface#decrementItem
,StorageInterface#decrementItems
andStorageInterface#incrementItems
- this also removes
incrementItem
,incrementItems
,decrementItem
,derementItems
events (pre
,post
andexception
)
- this also removes
- dependency inversion on virtual package
laminas/laminas-cache-storage-adapter-implementation
which now allowslaminas-cache
to be required without a concrete storage adapter implementation - removed support for
psr/cache
andpsr/simple-cache
v1
Breaking Changes
-
AbstractAdapter
andStorageInterface
are not aware of the methodsgetMetadata
anymore. These were moved to the newMetadataCapableInterface
-
Capabilities
do not providesupportedMetadata
anymore. The supported metadata is tied to the used storage adapter and thus, was already requiring projects to explicitly know the exact implementation of the cache backend in case of using these metadatas anyway -
KeyListIterator
and the correspondingIteratorInterface
does not provide themode
CURRENT_AS_METADATA
anymore -
PluginOptions#getSerializer
does not create a serializer anymore if astring
option was passed, instead, thestring
is returned - Increment and decrement feature was removed from
StorageInterface
, so there is no moreStorageInterface#incrementItem
,StorageInterface#decrementItem
,StorageInterface#decrementItems
andStorageInterface#incrementItems
- this also removes
incrementItem
,incrementItems
,decrementItem
,derementItems
events (pre
,post
andexception
)
- this also removes
- Every method now has native return types
- Every property now has native types
- Every method argument now has native types
-
ObjectCache
does not inherit theCallbackCache
pattern anymore
4.0.0
- Total issues resolved: 9
- Total pull requests resolved: 18
- Total contributors: 4
BC Break,Enhancement
- 317: Allow integer keys for some more methods thanks to @boesing
-
310: Enhance type strictness and add
final
to a bunch of classes thanks to @boesing -
308: Provide
Capabilities
as a read-only class thanks to @boesing -
296: Support for
laminas/laminas-servicemanager
v4 thanks to @boesing - 275: Introduce support for PSR-6 and PSR-16 v2 & v3 thanks to @boesing
-
273: Introduce
MetadataCapableInterface
thanks to @boesing - 14: reduce arguments by reference thanks to @weierophinney
Enhancement
-
316: Narrow some more string types to
non-empty-string
thanks to @boesing -
291: Remove
laminas/laminas-feed
dev-dependency thanks to @boesing -
290: Update
vimeo/psalm
to v5.20.0 thanks to @boesing -
289: Remove virtual package dependency of
laminas/laminas-cache-storage-implementation
thanks to @boesing -
277: Update
vimeo/psalm
to v5.16 once available thanks to @boesing
Bug,Enhancement
BC Break,Feature Removal
- 311: Remove unsupported array configuration structure (array shape) thanks to @boesing
- 309: Remove deprecated configuration support thanks to @boesing
BC Break
- 295: Introduce native type-hints and pass-by-reference values thanks to @boesing and @ravcz
-
294: Removal of
increment
anddecrement
functionality thanks to @boesing - 272: Remove dependency on real storage adapters and therefore benchmarks thanks to @boesing
Feature Request
BC Break,Bug
-
276:
Serializer
plugin has to serializetoken
to enableStorageInterface#checkAndSetItem
comparing the correct values thanks to @boesing
Documentation
v3.12.2
Release Notes for 3.12.2
3.12.x bugfix release (patch)
3.12.2
- Total issues resolved: 1
- Total pull requests resolved: 1
- Total contributors: 1
Documentation
-
300: Documentation: Add
ssl&#​95;context
option toRedisCluster
documentation thanks to @boesing
v3.12.1
Release Notes for 3.12.1
3.12.x bugfix release (patch)
3.12.1
- Total issues resolved: 1
- Total pull requests resolved: 1
- Total contributors: 1
Bug
laminas/laminas-cache-storage-adapter-memory (laminas/laminas-cache-storage-adapter-memory)
v3.0.0
Release Notes for 3.0.0
Backwards incompatible release (major)
laminas-cache-storage-adapter-memory
3.0.0 is here and finally adds native types everywhere, adds support for psr/cache
and psr/simple-cache
v2 & v3, supports laminas/laminas-cache
v4 and introduces an all new metadata and internal persistence logic.
The Memory
adapter had its flaws by juggling with the memory_limit
. There were a bunch of issues with that behavior, especially since it is impossible to calculate the exact free memory available. For more details, one can check #57. With this version, we are introducing max_items
which limits the amount of items persisted to the Memory
adapter (defaults to unlimited). Once the max_items
are exceeding, the adapter automatically removes the oldest entries to make room for new items.
Added
- Dedicated
Metadata
object forMemory#getMetadata
- Adds support for
psr/cache
andpsr/simple-cache
v2 & v3 -
Memory
now allows passing aClockInterface
via its constructor -
MemoryOptions
now hasmax_items
configuration to limit the amount of items to be cached. When the limit exceeds, the adapter automatically drops older items
Changed
- Memory adapter now supports per-item TTL and thus, the TTL is calculated
on-write
rather thanon-read
- Memory adapter now supports
max_items
option which can be used to limit the amount of items persisted to the cache
Removed
-
MemoryOptions#setMemoryLimit
, there is no replacement. It is recommended to use themax_items
option instead -
MemoryOptions#getMemoryLimit
, there is no relacement
3.0.0
- Total issues resolved: 2
- Total pull requests resolved: 4
- Total contributors: 2
renovate
RFC
- 63: [RFC]: Serialize objects thanks to @boesing
Enhancement
BC Break,Bug,Enhancement
BC Break,Bug
laminas/laminas-coding-standard (laminas/laminas-coding-standard)
v3.0.1
Release Notes for 3.0.1
3.0.x bugfix release (patch)
3.0.1
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 1
Documentation,Enhancement
- 86: docs: Add missing docs for v3 thanks to @michalbundyra
- 85: chore: Update links from squizlabs to PHPCSStandards thanks to @michalbundyra
v3.0.0
Release Notes for 3.0.0
Backwards incompatible release (major)
3.0.0
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 2
renovate
- 84: Lock file maintenance thanks to @renovate[bot]
Enhancement
BC Break,renovate
laminas/laminas-servicemanager (laminas/laminas-servicemanager)
v4.2.0
Release Notes for 4.2.0
Feature release (minor)
4.2.0
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Enhancement
- 237: Allow varexporter v0.5 thanks to @snapshotpl
v4.1.0
Release Notes for 4.1.0
Feature release (minor)
4.1.0
- Total issues resolved: 1
- Total pull requests resolved: 3
- Total contributors: 2
Documentation
- 234: Merge release 4.0.2 into 4.1.x thanks to @github-actions[bot]
- 232: Merge release 4.0.1 into 4.1.x thanks to @github-actions[bot]
Documentation,Enhancement
v4.0.2
Release Notes for 4.0.2
4.0.x bugfix release (patch)
4.0.2
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug,Documentation
v4.0.1
Release Notes for 4.0.1
4.0.x bugfix release (patch)
4.0.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug,Documentation
v4.0.0
Release Notes for 4.0.0
Release Notes for 4.0.0
laminas-servicemanager
4.0.0 is here and finally enables projects to consume psr/container
v2.0.0 after 2 years along with several type-additions and plugin manager decoupling.
The migration guide is not written yet but will be at some point (once we added support for SM v4 to other components) later.
Added
- Several native type-additions including property-, argument- and return-types and a lot more psalm types
-
ServiceManager#get
,PluginManagerInterface#get
andServiceLocatorInterface#build
now explicitly implementmixed
as return-type to synchronize types withContainerInterface#get
- Support for
psr/container
v1.1 and v2.0 -
Ahead of Time factory creation for services explicitly using
ReflectionBasedAbstractFactory
vialaminas-cli
Removed
- Dropped support for PHP <8.1
- Removed deprecated interfaces such as
-
Laminas\ServiceManager\AbstractFactoryInterface
-
Laminas\ServiceManager\FactoryInterface
-
Laminas\ServiceManager\InitializerInterface
-
Laminas\ServiceManager\DelegatorFactoryInterface
-
- CLI commands which were exposed via
vendor/bin
are removed in favor of thelaminas-cli
integration. All CLI commands of v3.x are accessible viavendor/bin/laminas servicemanager:<v3.x command name>
oncelaminas/laminas-cli
is required in the projects dependencies - Removed deprecated
ConfigInterface
andConfig
-class since these files did not provide any validation logic and were just used to proxy the configuration array structure - Removed
AbstractPluginManager#validate
andAbstractPluginManager::$instanceOf
property as in v3.x, implementing plugin managers were able to implicitlyvalidate
mixed
. In case an implementing plugin manager is providing a single$instanceOf
such aslaminas-cache
, there is a new classAbstractSingleInstancePluginManager
available which requires the$instanceOf
property to be configured
Breaking Changes
-
AbstractPluginManager
does not extendServiceManager
anymore and instead uses an ownServiceManager
instance under the hood to manage plugin manager related services which can be configured the same way as in v3.x - Dedicated CLI commands which were previously linked to
vendor/bin
are now integrated vialaminas-cli
and can be called viavendor/bin/laminas
oncelaminas/laminas-cli
is part of the projects requirements. Read more about how to consume these commands here. -
AbstractPluginManager
does not provide thevalidate
-Method anymore and requires migration action such as:- extend
AbstractSingleInstancePluginManager
in case the plugin manager only provides instances of a specific interface- or class-string (please be aware that the$instanceOf
property now requires nativestring
property type) - implement
validate
method and verify whatever type has to be returned and/or just allowmixed
as v3.x did when omitting$instanceOf
property
- extend
- Removed deprecated
ConfigInterface
andConfig
-class since these files did not provide any validation logic and were just used to proxy the configuration array structure - neither
ServiceManager
norAbstractPluginManager
do validate the provided configuration at runtime anymore. due to the psalm-types provided toServiceManager#__construct
,ServiceManager#configure
,AbstractPluginManager#__construct
andAbstractPluginManager#configure
, the configuration schema is strictly typed and thus, a miss-configuration can be mitigated on static-analysis level prior actual runtime -
AbstractPluginManager#get
does not accept options anymore, in case an instance with options needs to be created,AbstractPluginManager#build
has to be used
4.0.0
- Total issues resolved: 7
- Total pull requests resolved: 14
- Total contributors: 6
Enhancement
- 204: Introduce plugin manager static analysis file thanks to @boesing
-
200: Replace scope to retrieve plugin manager from
$this
toself
thanks to @boesing - 194: Narrow return type of single instance plugin managers thanks to @boesing
- 187: Remove removed binaries from composer thanks to @boesing
-
171: AOT factory creation CLI command for
ReflectionBasedAbstractFactory
mapped factories thanks to @boesing - 58: Merge release 3.5.0 into 4.0.x thanks to @github-actions[bot]
BC Break,Enhancement
- 191: Modernize codebase thanks to @boesing
-
188: Add support for
psr/container
v2 thanks to @boesing and @danielspk -
181: Remove deprecated
ServiceManager#getServiceLocator
method thanks to @boesing -
179: Remove
ServiceManager
inheritance forAbstractPluginManager
thanks to @boesing - 176: Convert old CLI standalone commands to laminas-cli commands thanks to @boesing
- 172: Convert commands to laminas-cli symfony commands thanks to @boesing
- 46: #44 add strict type declarations thanks to @GeeH
RFC
-
182: Remove
AbstractPluginManager#validate
thanks to @boesing -
174: Mark
ServiceManager
asfinal
and changeAbstractPluginManager
to use composition over inheritance thanks to @boesing
BC Break
- 170: Remove deprecated factories thanks to @boesing
-
169: Remove
container-interop/container-interop
polyfill thanks to @boesing
renovate
- 151: Update dependency psr/container to v2 thanks to @renovate[bot]
Bug
laminas/laminas-validator (laminas/laminas-validator)
v3.0.0
Release Notes for 3.0.0
next backward compatibility break release (major)
3.0.0
- Total issues resolved: 18
- Total pull requests resolved: 94
- Total contributors: 8
Enhancement
-
396:
NotEmpty
Validator Input Filter Affordances thanks to @gsteel - 394: Upgrade to Laminas Coding Standard 3.0 thanks to @gsteel
- 393: Update IANA TLDs for Hostname validator thanks to @github-actions[bot]
- 382: Merge release 2.63.0 into 3.0.x thanks to @github-actions[bot]
- 380: Add Support for PHP 8.4 thanks to @gsteel
- 368: Add test case for DKIM records thanks to @gsteel and @weierophinney
- 367: Merge release 2.62.0 into 3.0.x thanks to @github-actions[bot]
-
365: Enable
composer-require-checker
in CI thanks to @gsteel - 357: Remove unnecessary options declaration thanks to @gsteel
-
344: Remove libs from
suggest
that are already inrequire
thanks to @gsteel -
341: Clean up usage of
$this->options
thanks to @gsteel - 334: Minor SA Fixes thanks to @gsteel
-
303: Change Malformed Multi-Byte input handling in
StringLength
thanks to @gsteel - 265: Remove SMv2 Canonical FQCNs thanks to @gsteel
- 264: Merge release 2.58.0 into 3.0.x thanks to @github-actions[bot]
- 260: Final everywhere thanks to @gsteel
- 259: Merge release 2.57.0 into 3.0 thanks to @gsteel
- 256: Merge release 2.56.0 into 3.0.x thanks to @github-actions[bot]
- 131: Drop Service Manager v2 Compatibility thanks to @gsteel
- 12: Should Regex constructor parameter be mandatory? thanks to @weierophinney
Documentation
- 392: Markdown Linting Fixes thanks to @gsteel
- 390: Update Outdated Translation Information on Introduction Page thanks to @gsteel
- 388: Merge release 2.64.1 into 3.0.x thanks to @gsteel
- 376: Add missing nav links for new enum validators thanks to @gsteel
- 261: Update v3 docs with changes from 2.57 thanks to @gsteel
- 253: Initial V3 Migration Guide thanks to @gsteel and @froschdesign
- 248: Duplicate v2 docs tree to v3 thanks to @gsteel
Documentation,Enhancement
- 391: Fix various Linting Issues in Docs thanks to @gsteel
-
383: Improve documentation of the
$context
parameter thanks to @gsteel and @tempfirstuser - 378: Update validator documentation links in set.md thanks to @froschdesign
- 374: Remove outdated version indicators from validator docs thanks to @froschdesign
- 373: Capitalize section headers in docs thanks to @froschdesign
-
372: Add
EnumCase
andBackedEnumValue
Validators thanks to @gsteel and @weierophinney - 371: Add a simple factory for creating validator chains from configuration thanks to @gsteel and @michalbundyra
-
369: Improve and correct doc-block comments for
AbstractValidator
thanks to @gsteel - 337: Cleanup Sitemap Related Validators thanks to @gsteel
- 269: Merge release 2.59.0 into 3.0.x thanks to @github-actions[bot]
Documentation,Enhancement,Feature Request
-
389: Introduce
DateIntervalString
validator thanks to @gsteel -
375: Introduce
Conditional
validator thanks to @gsteel and @michalbundyra
BC Break
-
384: Remove
laminas-modulemanager
support thanks to @gsteel - 271: Clean up IP validator thanks to @gsteel
BC Break,Documentation,Enhancement
-
379: Firm up Callback arguments and document
$context
parameter. thanks to @gsteel -
361: Refactor
ValidatorChain
thanks to @gsteel -
358: Refactor
AbstractValidator
thanks to @gsteel -
356: Refactor file
Count
validator thanks to @gsteel -
355: Refactor
Extension
andExcludeExtension
Validators thanks to @gsteel -
354: Refactor
File\Hash
validator thanks to @gsteel -
351: Refactor
Exists
andNotExists
validators thanks to @gsteel -
350: Refactor
ImageSize
validator thanks to @gsteel -
348: Refactor
Size
andFilesSize
Validators thanks to @gsteel -
346:
UploadFile
validator cleanup thanks to @gsteel -
345: Refactor
WordCount
validator thanks to @gsteel -
340: Refactor
MimeType
validator and descendants thanks to @gsteel -
335: Add precise types to
ConfigProvider
andModule
thanks to @gsteel -
332: Refactor
IsJsonString
thanks to @gsteel -
330: Refactor
Date
andDateStep
Validators thanks to @gsteel -
324: Refactor
EmailAddress
Validator thanks to @gsteel -
322: Refactor
Iban
validator thanks to @gsteel -
320: Refactor
Identical
validator thanks to @gsteel -
318: Refactor
InArray
validator thanks to @gsteel -
316: Refactor
ISBN
validator thanks to @gsteel -
314: Refactor
IsCountable
validator thanks to @gsteel -
311: Refactor
NotEmpty
validator thanks to @gsteel -
288: Refactor
Timezone
validator thanks to @gsteel -
286: Refactor
Explode
validator thanks to @gsteel -
284: Refactor
Callback
validator thanks to @gsteel -
278: Refactor
StringLength
validator thanks to @gsteel -
363: Merge release 2.61.0 into 3.0.x thanks to @github-actions[bot]
BC Break,Documentation
BC Break,Enhancement
- 338: Remove unused exception classes thanks to @gsteel
-
307: Refactor
Step
validator thanks to @gsteel -
304: Refactor
IsInstanceOf
validator thanks to @gsteel -
301: Migrate to
Laminas\Translator
thanks to @gsteel -
298: Refactor
Hostname
validator thanks to @gsteel -
297: Add parameter and return types to
ValidatorInterface::isValid()
thanks to @gsteel -
280: Refactor
Regex
validator thanks to @gsteel - 279: UUID Validator Cleanup thanks to @gsteel
- 277: Refactor Bitwise Validator thanks to @gsteel
- 273: Clean up Hex Validator thanks to @gsteel
- 267: Upgrade to Service Manager v4 thanks to @gsteel
- 266: Remove i18n Validator aliases and factories thanks to @gsteel
- 262: Refactor URI Validator, Drop dependency on Laminas\Uri thanks to @gsteel
- 254: Remove dependency on laminas-filter thanks to @gsteel
Bug,Enhancement
- 329: Fix TLD updater script thanks to @gsteel
BC Break,Bug,Documentation,Enhancement
-
327: Refactor
CreditCard
validator thanks to @gsteel
BC Break,Feature Removal
-
309: Remove
StaticValidator
thanks to @gsteel - 302: Remove all translation features thanks to @gsteel
- 270: Remove the deprecated CSRF validator thanks to @gsteel
- 250: Remove legacy Zend aliases thanks to @gsteel
- 249: Remove deprecated Laminas\Db validators thanks to @gsteel
Documentation,Enhancement,Feature Removal
- 294: Merge release 2.60.0 into 3.0.x thanks to @github-actions[bot]
BC Break,Documentation,Enhancement,Feature Removal
-
291: Refactor
Barcode
validator thanks to @gsteel
BC Break,Documentation,Feature Removal
-
290: Remove the deprecated validators
LessThan
,GreaterThan
andBetween
thanks to @gsteel and @weierophinney
BC Break,Bug,Enhancement
- 252: Enable strict types throughout thanks to @gsteel
Bug
- 246: Checkout as 2.99.x so that cyclic dependencies can be installed thanks to @gsteel
- 98: File extension comparison treats some distinct extensions as equal thanks to @Zenexer
- 5: ZF3 Using Explode with InArray validator as child breaks validation messages format thanks to @weierophinney
Feature Request
Won't Fix
v2.64.1
Release Notes for 2.64.1
2.64.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Documentation,Feature Removal
v2.64.0
Release Notes for 2.64.0
This release is even with 2.63.0 due to a mistake merging changes into the wrong branch and then releasing nothing.
The intended changes are released in 2.64.1
v2.63.0
Release Notes for 2.63.0
This release adds support for PHP 8.4.
2.63.0
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Enhancement
- 381: Add Support for PHP 8.4 thanks to @gsteel
v2.62.0
Release Notes for 2.62.0
2.62.0
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Enhancement
- 366: Update IANA TLDs for Hostname validator thanks to @github-actions[bot]
v2.61.0
Release Notes for 2.61.0
2.61.0
- Total issues resolved: 0
- Total pull requests resolved: 23
- Total contributors: 1
Documentation,Feature Removal
-
360: Deprecate the legacy
Upload
validator thanks to @gsteel -
359:
AbstractValidator
deprecations thanks to @gsteel - 353: Deprecate Unnecessary File Hash Validators thanks to @gsteel
- 343: Deprecate setters and getters in File based validators thanks to @gsteel
-
342:
MimeType
deprecations thanks to @gsteel - 339: Deprecate unused exceptions thanks to @gsteel
-
333:
IsJsonString
Deprecations thanks to @gsteel -
331:
Date
andDateStep
Deprecations thanks to @gsteel -
328:
CreditCard
validator deprecations thanks to @gsteel -
326:
EmailAddress
validator deprecations thanks to @gsteel -
323:
Iban
deprecations thanks to @gsteel -
321: Deprecations for the
Identical
validator thanks to @gsteel -
319: Deprecations for the
InArray
validator thanks to @gsteel -
317:
Isbn
deprecations thanks to @gsteel -
313:
IsCountable
validator deprecations thanks to @gsteel -
312:
NotEmpty
validator deprecations thanks to @gsteel -
310: Deprecate the
StaticValidator
thanks to @gsteel -
308:
Step
validator deprecations thanks to @gsteel - 306: Deprecate Validator Specific Translator Classes thanks to @gsteel
-
305:
IsInstanceOf
Deprecations thanks to @gsteel -
299: Deprecate option setters and getters in
Hostname
thanks to @gsteel
Enhancement
Documentation,Enhancement
v2.60.0
[Compare Source](https://redi