How to break an entire ecosystem by publishing a release

The Doctrine Framework

How NOT to build a new major version

Modernising popular packages

To 2.0 and beyond

Summarising the upgrade process

  • doctrine/persistence 1.3.0 introduces a deprecation layer, informing users of upcoming BC breaks and provides the new API. Users should use ^1.3.3 as constraint in composer.json and start fixing deprecation messages.
  • doctrine/persistence 2.0 will drop the deprecated API from the Doctrine\Common\Persistence namespace and add argument type declarations to the new API. Users should use ^1.3.3 || ^2.0 as constraint in composer.json. Some additional autoload calls may be required to ensure class aliases are properly loaded. Please check the blog post on type deprecation for details, as this cannot be easily summarised.
  • doctrine/persistence 3.0 will be released later, dropping all deprecated API and adding return type declarations. At this point, users should add both argument and return type declarations, then use ^2.0 || ^3.0 as constraint in composer.json.

--

--

--

Doctrine coordinator and MongoDB ODM maintainer. I break stuff so you don’t have to. Lead Engineer @mongodb — join me in making databases more fun to use.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Concurrency Visualized — Part 1: Sync vs Async

Glovebox — Final Project

2014 Koenigsegg Regera

Parallel Asynchronous API Call in Python

Playing with Static Partition

A Relational Model

Using AWS CLI, Launch AWS instance and attach EBS Volume

Transparent title bar on macOS with Flutter

What is an Grid Computing? How it Works to Increase Resource Allocation?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
alcaeus

alcaeus

Doctrine coordinator and MongoDB ODM maintainer. I break stuff so you don’t have to. Lead Engineer @mongodb — join me in making databases more fun to use.

More from Medium

Easily Integrate Kopokopo Payments API with Laravel 8

The basics of creating a website using Hacklang+HHVM

Testing sending email on Laravel Vapor using AWS SES

codebyjeff — Laravel Quick Tip: orderByRaw() with ORDER BY FIELD