Skip to content

fix(deps): update dependency amphp/amp to v3 (master) - autoclosed - #792

Closed
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/master-major-amphp
Closed

fix(deps): update dependency amphp/amp to v3 (master) - autoclosed#792
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/master-major-amphp

Conversation

@renovate

@renovate renovate Bot commented Apr 21, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
amphp/amp (source) ^2.6.5^3.1.3 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

amphp/amp (amphp/amp)

v3.1.3: 3.1.3

Compare Source

What's Changed

  • Fixed garbage collection of the iterable returned from Future::iterate() when the source iterable is a Traversable. Previously, iteration would continue even if the returned iterable was destroyed.

Full Changelog: amphp/amp@v3.1.2...v3.1.3

v3.1.2: 3.1.2

Compare Source

What's Changed

  • Fixed detection of AMP_DEBUG when set as a PHP constant when a falsey environment AMP_DEBUG value is present
  • Forbid cloning and serialization of Interval to prevent cancellation of event-loop callbacks from the original object for cloning or arbitrary callbacks on deserialization

Full Changelog: amphp/amp@v3.1.1...v3.1.2

v3.1.1: 3.1.1

Compare Source

What's Changed

New Contributors

Full Changelog: amphp/amp@v3.1.0...v3.1.1

v3.1.0: 3.1.0

Compare Source

What's Changed

  • Add Interval by @​trowski in #​441
  • Added a throwing __unserialize method to ForbidSerialization to guard against malicious payloads unserializing to forbidden class instances.

New Contributors

Full Changelog: amphp/amp@v3.0.2...v3.1.0

v3.0.2: 3.0.2

Compare Source

What's Changed

  • Changed Closure(mixed...) annotation to Closure(...) to support PHPStan.

Full Changelog: amphp/amp@v3.0.1...v3.0.2

v3.0.1: 3.0.1

Compare Source

What's Changed

  • Fixed compatibility of Amp\weakClosure() with changes made to closure names in PHP 8.4.

Full Changelog: amphp/amp@v3.0.0...v3.0.1

v3.0.0: 3.0.0

Compare Source

Event Loop

Amp no longer ships its own event loop. It's now based on Revolt. Revolt\EventLoop is quite similar to Amp's previous Amp\Loop. A very important difference is using float $seconds instead of int $milliseconds for timers though!

Promises

Future is a replacement for the previous Promise.
There's no need for callbacks or yield anymore!
Its await() method is based on fibers and replaces generator based coroutines / Amp\Promise\wait().

  • Renamed Amp\Deferred to Amp\DeferredFuture.
  • Removed Amp\Promise\wait(): Use Amp\Future::await() instead, which can be called in any (nested) context unlike before.
  • Removed Amp\call(): Remove the passed closure boilerplate and all yield keywords, interruption is handled via fibers now instead of generator coroutines.
  • Removed Amp\asyncCall(): Replace invocations with Amp\async(), which starts a new fiber instead of using generators.
  • Removed Amp\coroutine(): There's no direct replacement.
  • Removed Amp\asyncCoroutine(): There's no direct replacement.
  • Removed Amp\Promise\timeout(): Future::await() accepts an optional Cancellation, which can be used as a replacement.
  • Removed Amp\Promise\rethrow(): Unhandled errors are now automatically thrown into the event loop, so there's no need for that function anymore.
  • Unhandled errors can be ignored using Future::ignore() if needed, but should usually be handled in some way.
  • Removed Amp\Promise\wrap(): Use Future::finally() instead.
  • Renamed Amp\getCurrentTime() to Amp\now() returning the time in seconds instead of milliseconds.
  • Changed Amp\delay() to accept the delay in seconds now instead of milliseconds.
  • Added Amp\weakClosure() to allow a class to hold a self-referencing Closure without creating a circular reference that prevents automatic garbage collection.
  • Added Amp\trapSignal() to await one or multiple signals.
Promise Combinators

Promise combinators have been renamed:

  • Amp\Promise\race() has been renamed to Amp\Future\awaitFirst()
  • Amp\Promise\first() has been renamed to Amp\Future\awaitAny()
  • Amp\Promise\some() has been renamed to Amp\Future\awaitAnyN()
  • Amp\Promise\any() has been renamed to Amp\Future\awaitAll()
  • Amp\Promise\all() has been renamed to Amp\Future\await()
CancellationToken
  • CancellationToken has been renamed to Cancellation.
  • CancellationTokenSource has been renamed to DeferredCancellation.
  • NullCancellationToken has been renamed to NullCancellation.
  • TimeoutCancellationToken has been renamed to TimeoutCancellation.
  • CombinedCancellationToken has been renamed to CompositeCancellation.
  • SignalCancellation has been added.
Iterators

Iterators have been removed from amphp/amp as normal PHP iterators can be used with fibers now and there's no need for a separate API.
However, there's still some need for concurrent iterators, which is covered by the new amphp/pipeline library now.

Closable

Amp\Closable has been added as a new basic interface for closable resources such as streams or sockets.

Strict Types

Strict types now declared in all library files.
This will affect callbacks invoked within this library's code which use scalar types as parameters.
Functions used with Amp\async() are the most likely to be affected by this change — these functions will now be invoked within a strict-types context.


Configuration

📅 Schedule: (in timezone Europe/Vienna)

  • Branch creation
    • "before 5am on thursday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Apr 21, 2023
@renovate
renovate Bot requested a review from ChristophWurst April 21, 2023 12:06
@renovate

renovate Bot commented Apr 21, 2023

Copy link
Copy Markdown
Contributor Author

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update amphp/amp:3.0.1 amphp/parallel:2.2.9 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
������������������������������������������������������                                                      ������������������������������������������������������Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires amphp/parallel ^2.2.9, found amphp/parallel[v2.2.9] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - Root composer.json requires amphp/amp ^3.0.1 -> satisfiable by amphp/amp[v3.0.1].
    - amphp/amp v3.0.1 requires php >=8.1 -> your php version (8.0; overridden via config.platform, same as actual) does not satisfy that requirement.
  Problem 3
    - rubix/ml is locked to version dev-chore/bump-flysystem-v2.1.1 and an update of this package was not requested.
    - rubix/ml dev-chore/bump-flysystem-v2.1.1 requires amphp/parallel ^1.3 -> found amphp/parallel[v1.3.0, ..., v1.4.3] but it conflicts with your root composer.json require (^2.2.9).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@ChristophWurst
ChristophWurst marked this pull request as draft April 21, 2023 12:07
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from dd797f3 to e4ddd29 Compare May 13, 2023 17:52
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from e4ddd29 to 9789b8b Compare May 22, 2023 06:57
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 9789b8b to 5f47325 Compare August 30, 2023 20:25
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch 2 times, most recently from e43bd26 to 964d862 Compare November 29, 2023 05:35
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 964d862 to bc277ca Compare December 27, 2023 19:18
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from bc277ca to 84751aa Compare January 7, 2024 20:12
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 84751aa to 489ebd1 Compare January 30, 2024 11:23
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 489ebd1 to 67f64b4 Compare February 14, 2024 12:20
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch 2 times, most recently from 2767520 to 07f32a3 Compare March 19, 2024 20:07
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 07f32a3 to 31290f4 Compare March 24, 2024 19:33
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 31290f4 to ce2fa12 Compare April 18, 2024 20:23
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from ce2fa12 to d174be4 Compare May 11, 2024 02:07
@renovate

renovate Bot commented May 11, 2024

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update amphp/amp:3.1.3 --with-dependencies --ignore-platform-req=ext-* --ignore-platform-req=lib-* --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins --minimal-changes
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires amphp/amp ^3.1.3, found amphp/amp[v3.1.3] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - amphp/parallel is locked to version v1.4.4 and an update of this package was not requested.
    - amphp/parallel v1.4.4 requires amphp/amp ^2 -> found amphp/amp[v2.0.0, ..., v2.6.5] but it conflicts with your root composer.json require (^3.1.3).
  Problem 3
    - rubix/ml is locked to version 2.5.3 and an update of this package was not requested.
    - amphp/parallel v1.4.4 requires amphp/amp ^2 -> found amphp/amp[v2.0.0, ..., v2.6.5] but it conflicts with your root composer.json require (^3.1.3).
    - rubix/ml 2.5.3 requires amphp/parallel ^1.3 -> satisfiable by amphp/parallel[v1.4.4].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch 2 times, most recently from 24e01e9 to fc0fe7e Compare August 6, 2024 15:52
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from fc0fe7e to 06d5168 Compare September 14, 2024 15:48
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 06d5168 to a5412f3 Compare October 11, 2024 03:55
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from a5412f3 to bce571d Compare December 21, 2024 02:24
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from bce571d to 6c68532 Compare January 26, 2025 18:58
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 6c68532 to 6667581 Compare July 4, 2025 08:51
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch 2 times, most recently from 94d7abe to 36a7f24 Compare August 14, 2025 09:12
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch 2 times, most recently from bd28e03 to 61f2639 Compare August 31, 2025 20:24
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch 2 times, most recently from 3320ffc to 9d76d4b Compare December 6, 2025 20:37
@renovate renovate Bot changed the title fix(deps): update amphp (master) (major) fix(deps): update dependency amphp/amp to v3 (master) Dec 6, 2025
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 9d76d4b to e12de5e Compare December 7, 2025 00:26
@renovate renovate Bot changed the title fix(deps): update dependency amphp/amp to v3 (master) fix(deps): update amphp (master) (major) Dec 7, 2025
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from e12de5e to d57e062 Compare December 30, 2025 12:32
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from d57e062 to 43ed5f5 Compare January 8, 2026 16:34
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 43ed5f5 to 1163290 Compare February 2, 2026 17:06
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 1163290 to 88db66b Compare February 12, 2026 13:32
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 88db66b to e7f815c Compare March 13, 2026 13:16
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from e7f815c to c22fb13 Compare April 1, 2026 16:32
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from c22fb13 to 3df24a1 Compare May 6, 2026 20:25
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch 2 times, most recently from de4a15a to 177d897 Compare May 18, 2026 14:03
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from 177d897 to b3097d7 Compare June 21, 2026 16:27
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from b3097d7 to 4ec14bf Compare July 12, 2026 15:13
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch 2 times, most recently from b914cf7 to d2ac2d5 Compare July 26, 2026 16:23
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from d2ac2d5 to cfe3f81 Compare July 28, 2026 20:40
@renovate renovate Bot changed the title fix(deps): update amphp (master) (major) fix(deps): update dependency amphp/parallel to v2 (master) Jul 28, 2026
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from cfe3f81 to c9727e0 Compare July 29, 2026 00:29
@renovate renovate Bot changed the title fix(deps): update dependency amphp/parallel to v2 (master) fix(deps): update amphp (master) (major) Jul 29, 2026
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from c9727e0 to d40dc3c Compare August 4, 2026 16:49
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from d40dc3c to db0ef12 Compare August 26, 2026 10:47
@renovate
renovate Bot force-pushed the renovate/master-major-amphp branch from db0ef12 to d065b31 Compare August 28, 2026 12:35
@renovate renovate Bot changed the title fix(deps): update amphp (master) (major) fix(deps): update dependency amphp/amp to v3 (master) Aug 28, 2026
@renovate renovate Bot changed the title fix(deps): update dependency amphp/amp to v3 (master) fix(deps): update dependency amphp/amp to v3 (master) - autoclosed Aug 28, 2026
@renovate renovate Bot closed this Aug 28, 2026
@renovate
renovate Bot deleted the renovate/master-major-amphp branch August 28, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants