Skip to content

Update dependency prism-php/prism to ^0.100.0#21

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/prism-php-prism-0.x
Open

Update dependency prism-php/prism to ^0.100.0#21
renovate[bot] wants to merge 1 commit intomainfrom
renovate/prism-php-prism-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Dec 31, 2025

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
prism-php/prism ^0.67.0^0.100.0 age confidence

Release Notes

prism-php/prism (prism-php/prism)

v0.100.1

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.100.0...v0.100.1

v0.100.0

Compare Source

What's Changed

Breaking Changes

  • Structured output now uses native mode by default instead of prompt-based JSON mode
  • Citations can no longer be used with structured output (previously worked via JSON mode workaround, but this is unsupported by the Anthropic API)
  • Users who had the beta header configured for structured outputs can remove it

Full Changelog: prism-php/prism@v0.99.22...v0.100.0

v0.99.22

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.21...v0.99.22

v0.99.21

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.20...v0.99.21

v0.99.20

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.19...v0.99.20

v0.99.19

Compare Source

What's Changed

Breaking Changes

Consumers parsing the raw stream need to update artifact handling:

- if (data.type === 'artifact') {
-     artifacts.set(data.toolCallId, data.artifact);
+ if (data.type === 'data-artifact') {
+     artifacts.set(data.data.toolCallId, data.data.artifact);
  }

Full Changelog: prism-php/prism@v0.99.18...v0.99.19

v0.99.18

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.17...v0.99.18

v0.99.17

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.16...v0.99.17

v0.99.16

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.99.15...v0.99.16

v0.99.15

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.99.14...v0.99.15

v0.99.14

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.13...v0.99.14

v0.99.13

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.99.12...v0.99.13

v0.99.12

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.11...v0.99.12

v0.99.11

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.99.10...v0.99.11

v0.99.10

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.99.9...v0.99.10

v0.99.9

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.99.8...v0.99.9

v0.99.8

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.99.7...v0.99.8

v0.99.7

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.6...v0.99.7

v0.99.6

Compare Source

What's Changed

  • Removed default token limit

Full Changelog: prism-php/prism@v0.99.5...v0.99.6

v0.99.5

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.99.4...v0.99.5

v0.99.4

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.3...v0.99.4

v0.99.3

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.2...v0.99.3

v0.99.2

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.1...v0.99.2

v0.99.1

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.99.0...v0.99.1

v0.99.0

Compare Source

What's Changed

Breaking Changes

  • On complete callback removed for new callback handlers see #​776

New Contributors

Full Changelog: prism-php/prism@v0.98.5...v0.99.0

v0.98.5

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.98.4...v0.98.5

v0.98.4

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.98.3...v0.98.4

v0.98.3

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.98.2...v0.98.3

v0.98.2

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.98.1...v0.98.2

v0.98.1

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.98.0...v0.98.1

v0.98.0

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.97.2...v0.98.0

v0.97.2

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.97.1...v0.97.2

v0.97.1

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.97.0...v0.97.1

v0.97.0

Compare Source

What's Changed

Breaking Changes

  • \Prism\Prism\Prism::text() is now \Prism\Prism\Facades\Prism::text() - see notes in #​699
    • You can use find . -path ./vendor -prune -o -type f -name "*.php" -exec perl -i -pe 's/Prism\\Prism\\Prism/Prism\\Prism\\Facades\\Prism/g' {} + as a quick fix.

New Contributors

Full Changelog: prism-php/prism@v0.96.1...v0.97.0

v0.96.1

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.96.0...v0.96.1

v0.96.0

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.95.0...v0.96.0

v0.95.0

Compare Source

What's Changed

Full Changelog: prism-php/prism@v0.94.0...v0.95.0

v0.94.0

Compare Source

What's Changed

New Contributors

Full Changelog: prism-php/prism@v0.93.0...v0.94.0

v0.93.0

Compare Source

What's Changed

  • feat(openai) Extend Schema's to allow for newly added values for the OpenAI API by @​mysticseagull in #​639
  • Use media value object for generated audio and image by @​aimeos in #​621
  • feat(OpenRouter): configure OpenRouter site headers and streamline header filtering by @​kargnas in #​669
  • fix(OpenRouter):fix the exception caused by calling the gpt-5 model when there are no parameter tools by @​hipig in #​666
  • [Bug] Image handling in Gemini ImageRequestMap by @​aimeos in #​667

Full Changelog: prism-php/prism@v0.92.0...v0.93.0

v0.92.0

Compare Source

What's Changed

⚠️ BREAKING CHANGES

1. Removed Chunk Class and ChunkType Enum

What changed:

  • The Prism\Prism\Text\Chunk class has been removed
  • The Prism\Prism\Enums\ChunkType enum has been removed
  • PendingRequest::asStream() now returns Generator<StreamEvent> instead of Generator<Chunk>

Before:

use Prism\Prism\Text\Chunk;
use Prism\Prism\Enums\ChunkType;

foreach ($prism->text()->asStream() as $chunk) {
    // $chunk is instance of Chunk
    echo $chunk->text;

    if ($chunk->chunkType === ChunkType::ToolCall) {
        // Handle tool calls
    }

    if ($chunk->finishReason) {
        // Stream complete
    }
}

After:

use Prism\Prism\Streaming\Events\{
    StreamStartEvent,
    TextDeltaEvent,
    TextCompleteEvent,
    ToolCallEvent,
    StreamEndEvent
};

foreach ($prism->text()->asStream() as $event) {
    // $event is instance of StreamEvent
    match ($event::class) {
        StreamStartEvent::class => /* stream started */,
        TextDeltaEvent::class => echo $event->delta,
        ToolCallEvent::class => /* handle tool call */,
        StreamEndEvent::class => /* stream complete */,
        default => /* other events */
    };
}
2. Exception Renamed

What changed:

  • PrismChunkDecodeException renamed to PrismStreamDecodeException

Migration:

// Before
use Prism\Prism\Exceptions\PrismChunkDecodeException;

try {
    // ...
} catch (PrismChunkDecodeException $e) {
    // ...
}

// After
use Prism\Prism\Exceptions\PrismStreamDecodeException;

try {
    // ...
} catch (PrismStreamDecodeException $e) {
    // ...
}
3. Stream Event Type Changes

The streaming output is now composed of 12 distinct event types, each with specific purposes:

Event Purpose
StreamStartEvent Emitted once at stream initialization
TextStartEvent Emitted before first text delta
TextDeltaEvent Contains incremental text chunks
TextCompleteEvent Text generation complete
ThinkingStartEvent Reasoning/thinking block started
ThinkingEvent Incremental thinking content
ThinkingCompleteEvent Thinking block complete
ToolCallEvent Tool invocation requested
ToolResultEvent Tool execution result
CitationEvent Source citation (Anthropic)
ErrorEvent Recoverable or fatal error
StreamEndEvent Stream complete with final metadata

Migration Guide

Basic Streaming

Before (Chunk-based):

$response = '';

foreach ($prism->text()->asStream() as $chunk) {
    $response .= $chunk->text;
}

echo $response;

After (Event-based):

use Prism\Prism\Streaming\Events\TextDeltaEvent;

$response = '';

foreach ($prism->text()->asStream() as $event) {
    if ($event instanceof TextDeltaEvent) {
        $response .= $event->delta;
    }
}

echo $response;
Handling Tool Calls

Before:

foreach ($prism->text()->asStream() as $chunk) {
    if ($chunk->chunkType === ChunkType::ToolCall) {
        foreach ($chunk->toolCalls as $toolCall) {
            // Handle tool call
        }
    }
}

After:

use Prism\Prism\Streaming\Events\ToolCallEvent;

foreach ($prism->text()->asStream() as $event) {
    if ($event instanceof ToolCallEvent) {
        // Handle tool call
        $toolCall = $event->toolCall;
    }
}
Detecting Stream Completion

Before:

foreach ($prism->text()->asStream() as $chunk) {
    if ($chunk->finishReason) {
        echo "Stream finished: {$chunk->finishReason->value}";
    }
}

After:

use Prism\Prism\Streaming\Events\StreamEndEvent;

foreach ($prism->text()->asStream() as $event) {
    if ($event instanceof StreamEndEvent) {
        echo "Stream finished: {$event->finishReason->value}";
        // Access usage metadata: $event->usage
    }
}
Handling Thinking/Reasoning

Before:

foreach ($prism->text()->asStream() as $chunk) {
    if ($chunk->chunkType === ChunkType::Thinking) {
        echo "Thinking: {$chunk->text}";
    }
}

After:

use Prism\Prism\Streaming\Events\ThinkingEvent;

foreach ($prism->text()->asStream() as $event) {
    if ($event instanceof ThinkingEvent) {
        echo "Thinking: {$event->delta}";
    }
}

New Features

1. Granular Stream Events

Each phase of streaming now emits specific events, enabling fine-grained control:

use Prism\Prism\Streaming\Events\{
    StreamStartEvent,
    TextStartEvent,
    TextDeltaEvent,
    TextCompleteEvent,
    StreamEndEvent
};

foreach ($prism->text()->asStream() as $event) {
    match ($event::class) {
        StreamStartE

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 07:00 on Thursday" in timezone Europe/Oslo, 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.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/digdir/digdir-chunker).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi42OS4xIiwidXBkYXRlZEluVmVyIjoiNDMuMTAwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Dec 31, 2025

⚠️ 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 prism-php/prism:0.100.1 --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
Dependency laravel/framework is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - pestphp/pest is locked to version v3.8.2 and an update of this package was not requested.
    - brianium/paratest v7.8.3 requires php ~8.2.0 || ~8.3.0 || ~8.4.0 -> your php version (8.5.4) does not satisfy that requirement.
    - pestphp/pest v3.8.2 requires brianium/paratest ^7.8.3 -> satisfiable by brianium/paratest[v7.8.3].


@renovate renovate Bot force-pushed the renovate/prism-php-prism-0.x branch from 6a6245b to c01f583 Compare March 31, 2026 09:46
@renovate renovate Bot changed the title Update dependency prism-php/prism to ^0.99.0 Update dependency prism-php/prism to ^0.100.0 Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants