Skip to content

Conversation

@tharropoulos
Copy link
Contributor

Change Summary

Add the v30 changes to the client:

  • synonym refactor
  • analytics refactor
  • curation sets refactor

PR Checklist

/**
* AnalyticsEvents constructor.
*
* @param ApiCall $apiCall
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason these definitions are removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added them back 26e6f80. The entire file was re-written from scratch, but the diff algorithm shows it as modified

public function offsetSet($offset, $value): void
{
$this->analyticsRules[$offset] = $value;
// Not implemented for read-only access
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not? It would be nice for users to be able to access it via array notation for read-only access right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This goes back to a really old issue on Laravel Scout, where we only checked for memory instances of collections and as a result, queue workers tried to access collections that didn't exist. Added it back to keep backwards compatibility though

@cyppe
Copy link

cyppe commented Nov 17, 2025

Maybe you can consider making an RC tag of this so its a bit smoother to test it together with typesense v30?

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.

3 participants