-
Notifications
You must be signed in to change notification settings - Fork 30
fix(deps): update amphp (master) (major) #792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
⚠ Artifact update problemRenovate 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:
The artifact failure details are included below: File name: composer.lock |
dd797f3 to
e4ddd29
Compare
e4ddd29 to
9789b8b
Compare
9789b8b to
5f47325
Compare
e43bd26 to
964d862
Compare
964d862 to
bc277ca
Compare
bc277ca to
84751aa
Compare
84751aa to
489ebd1
Compare
489ebd1 to
67f64b4
Compare
2767520 to
07f32a3
Compare
07f32a3 to
31290f4
Compare
31290f4 to
ce2fa12
Compare
ce2fa12 to
d174be4
Compare
|
24e01e9 to
fc0fe7e
Compare
fc0fe7e to
06d5168
Compare
06d5168 to
a5412f3
Compare
a5412f3 to
bce571d
Compare
bce571d to
6c68532
Compare
6c68532 to
6667581
Compare
94d7abe to
36a7f24
Compare
bd28e03 to
61f2639
Compare
61f2639 to
b629d21
Compare
b629d21 to
0776bd4
Compare
0776bd4 to
50fb953
Compare
ca436e9 to
3320ffc
Compare
3320ffc to
9d76d4b
Compare
9d76d4b to
e12de5e
Compare
e12de5e to
d57e062
Compare
d57e062 to
43ed5f5
Compare
This PR contains the following updates:
^2.6.5→^3.1.1^1.4.4→^2.3.3Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
amphp/amp (amphp/amp)
v3.1.1: 3.1.1Compare Source
What's Changed
weakClosure()signature by @vudaltsov in #452str_increment()to fix PHP 8.5 deprecation by @nicolas-grekas in #456New Contributors
Full Changelog: amphp/amp@v3.1.0...v3.1.1
v3.1.0: 3.1.0Compare Source
What's Changed
Intervalby @trowski in #441__unserializemethod toForbidSerializationto 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.2Compare Source
What's Changed
Closure(mixed...)annotation toClosure(...)to support PHPStan.Full Changelog: amphp/amp@v3.0.1...v3.0.2
v3.0.1: 3.0.1Compare Source
What's Changed
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.0Compare Source
Event Loop
Amp no longer ships its own event loop. It's now based on Revolt.
Revolt\EventLoopis quite similar to Amp's previousAmp\Loop. A very important difference is usingfloat $secondsinstead ofint $millisecondsfor timers though!Promises
Futureis a replacement for the previousPromise.There's no need for callbacks or
yieldanymore!Its
await()method is based on fibers and replaces generator based coroutines /Amp\Promise\wait().Amp\DeferredtoAmp\DeferredFuture.Amp\Promise\wait(): UseAmp\Future::await()instead, which can be called in any (nested) context unlike before.Amp\call(): Remove the passed closure boilerplate and allyieldkeywords, interruption is handled via fibers now instead of generator coroutines.Amp\asyncCall(): Replace invocations withAmp\async(), which starts a new fiber instead of using generators.Amp\coroutine(): There's no direct replacement.Amp\asyncCoroutine(): There's no direct replacement.Amp\Promise\timeout():Future::await()accepts an optionalCancellation, which can be used as a replacement.Amp\Promise\rethrow(): Unhandled errors are now automatically thrown into the event loop, so there's no need for that function anymore.Future::ignore()if needed, but should usually be handled in some way.Amp\Promise\wrap(): UseFuture::finally()instead.Amp\getCurrentTime()toAmp\now()returning the time in seconds instead of milliseconds.Amp\delay()to accept the delay in seconds now instead of milliseconds.Amp\weakClosure()to allow a class to hold a self-referencing Closure without creating a circular reference that prevents automatic garbage collection.Amp\trapSignal()to await one or multiple signals.Promise Combinators
Promise combinators have been renamed:
Amp\Promise\race()has been renamed toAmp\Future\awaitFirst()Amp\Promise\first()has been renamed toAmp\Future\awaitAny()Amp\Promise\some()has been renamed toAmp\Future\awaitAnyN()Amp\Promise\any()has been renamed toAmp\Future\awaitAll()Amp\Promise\all()has been renamed toAmp\Future\await()CancellationToken
CancellationTokenhas been renamed toCancellation.CancellationTokenSourcehas been renamed toDeferredCancellation.NullCancellationTokenhas been renamed toNullCancellation.TimeoutCancellationTokenhas been renamed toTimeoutCancellation.CombinedCancellationTokenhas been renamed toCompositeCancellation.SignalCancellationhas been added.Iterators
Iterators have been removed from
amphp/ampas 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/pipelinelibrary now.Closable
Amp\Closablehas 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.amphp/parallel (amphp/parallel)
v2.3.3: 2.3.3Compare Source
What's Changed
SplObjectStorage::attachby @eliashaeussler in #224New Contributors
Full Changelog: amphp/parallel@v2.3.2...v2.3.3
v2.3.2: 2.3.2Compare Source
What's Changed
str_increment()to fix PHP 8.5 deprecation by @nicolas-grekas in #222New Contributors
Full Changelog: amphp/parallel@v2.3.1...v2.3.2
v2.3.1: 2.3.1Compare Source
What's Changed
New Contributors
Full Changelog: amphp/parallel@v2.3.0...v2.3.1
v2.3.0: 2.3.0Compare Source
What's Changed
LimitedWorkerPoolextendingWorkerPoolin #205.DelegatingWorkerPoolimplementingLimitedWorkerPool, which will only allow a limited number of workers to be pulled from a delegateWorkerPoolinstance.ContextWorkerPoolalso now implementsLimitedWorkerPool, as this pool implementation was already spawned a limited number of workers.Full Changelog: amphp/parallel@v2.2.9...v2.3.0
v2.2.9: 2.2.9Compare Source
What's Changed
SocketIpcHub.Full Changelog: amphp/parallel@v2.2.8...v2.2.9
v2.2.8: 2.2.8Compare Source
What's Changed
Thank you @Nadyita for reporting and debugging this issue.
v2.2.7: 2.2.7Compare Source
What's Changed
Contextas covariant.Full Changelog: amphp/parallel@v2.2.6...v2.2.7
v2.2.6: 2.2.6Compare Source
What's Changed
Full Changelog: amphp/parallel@v2.2.5...v2.2.6
v2.2.5: 2.2.5Compare Source
What's Changed
DefaultContextFactorywas not shutdown.Full Changelog: amphp/parallel@v2.2.4...v2.2.5
v2.2.4: 2.2.4Compare Source
What's Changed
SocketIpcHubnot removing the temporary socket file if the object was not explicitly closed before destruction (fixes #183).New Contributors
Full Changelog: amphp/parallel@v2.2.3...v2.2.4
v2.2.3: 2.2.3Compare Source
What's Changed
SocketIpcHub::accept()after cancelling a prior accept operation.Full Changelog: amphp/parallel@v2.2.2...v2.2.3
v2.2.2: 2.2.2Compare Source
ProcessContextcreated byDefaultContextFactoryif output buffers fill by piping STDOUT and STDERR to the same pipes on the parent process. This also provides parity with the default behavior ofThreadContext.v2.2.1: 2.2.1Compare Source
ContextWorkerPool.ProcessContextclosing immediately after the process exited which potentially prevented reading the last sent data.v2.2.0: 2.2.0Compare Source
Context::join()may now be called at any time instead of needing to wait until the context has sent or received all data on its channel.ContextPanicError,TaskFailureException, andTaskFailureErrorto avoid the backtrace being hidden from users due to PHP not callingThrowable::__toString()on previous exceptions. (#168)ContextWorkerPool. Previously, in some circumstances two tasks may have been assigned to a single worker if both were enqueued when the worker finished a prior task. (#177)v2.1.0: 2.1.0Compare Source
ContextPanicErroris no longer thrown fromreceive(),send(), andjoin()inContext. OnlyContextExceptioncan now be thrown from these methods. AContextPanicErrorwill be wrapped instead in aContextException.v2.0.0: 2.0.0Compare Source
Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of
Promise<ResolutionType>have been replaced withResolutionType.All classes related to
ext-pthreadshave been removed as this extension does not have releases on PHP 8.x.Classes in the
Amp\Parallel\Syncnamespace have been moved toamphp/sync.Context
Processrenamed toProcessContextParallelrenamed toThreadContextContext::isRunning()andContext::kill()replaced byContext::isClosed()andContext::close()run→startContextfactory→contextFactorycreatehas been removed, usestartContextProcessContext(including workers executing tasks), allowing step debugging through IDEs such as PhpStorm.ContextPanicErrororTaskFailureThrowableto a string, i.e., when the exception is uncaught in the parent and is written to STDERRCancellationargument toContextFactory::start()Worker
Poolrenamed toWorkerPoolandDefaultPoolrenamed toContextWorkerPoolTaskWorkerhas been marked as internal. Use aWorkerFactoryto createWorkerinstances or useWorkerPool::getWorker()to get a worker from a poolTaskRunnerhas been removedTaskExceptionandTaskErrorWorker::enqueue()renamed toWorker::submit(), which now returns anExecutionobjectExecution::getFuture()returns a future that resolves to the eventual return value of theTaskExecution::await()awaits the result of theTask, it is a shortcut to callingExecution::getFuture()->await()Execution::getChannel()returns aChannelthat can be used to communicate with theChannelprovided toTask::run()Task::run()have changed toChannelandCancellationIpcHub
Inter-process communication is now exposed as part of the public API for potential use outside of the context and worker components.
Configuration
📅 Schedule: Branch creation - "before 5am on thursday" in timezone Europe/Vienna, 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.