Skip to content

fix(deps): update module github.com/typesense/typesense-go/v2 to v3 #601

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 1, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/typesense/typesense-go/v2 v2.0.0 -> v3.2.0 age adoption passing confidence

Release Notes

typesense/typesense-go (github.com/typesense/typesense-go/v2)

v3.2.0

Compare Source

What's Changed

Full Changelog: typesense/typesense-go@v3.1.0...v3.2.0

v3.1.0

Compare Source

What's changed

v3.0.0

Compare Source

What's Changed

  • [Breaking Change] MultiSearchCollectionParameters.collection is now optional. Fixed issue #​168.
searches := api.MultiSearchSearchesParameter{
	Searches: []api.MultiSearchCollectionParameters{
		{
			Q:          pointer.String("Company"),
			// before
			// Collection: "companies",
			Collection: pointer.Any("companies"),
		},
	},
}
  • [Breaking Change] Single document index methods now include an additional parameter to specify dirty values behavior.
client.Collection("companies").Documents().Create(context.Background(), document, &api.DocumentIndexParameters{DirtyValues: pointer.Any(api.CoerceOrDrop)})
client.Collection("companies").Documents().Upsert(context.Background(), document, &api.DocumentIndexParameters{DirtyValues: pointer.Any(api.CoerceOrDrop)})
client.Collection("companies").Document("123").Update(context.Background(), document, &api.DocumentIndexParameters{DirtyValues: pointer.Any(api.CoerceOrDrop)})
  • [Breaking Change] An additional parameter *api.ExportDocumentsParams allows control over export results.
client.Collection("companies").Documents().Export(context.Background(), &api.ExportDocumentsParams{
		FilterBy:      pointer.String("num_employees>:1000"),
		IncludeFields: pointer.String("name"),
		ExcludeFields: pointer.String("year"),
	})
  • [Breaking Change] The import Action type is now an enum instead of *string.
&api.ImportDocumentsParams{
	//	Action:    pointer.String("create"),
	Action:    pointer.Any(api.Create),
}
  • [Breaking Change] The Query and Match fields in override rules are now optional.
api.SearchOverrideRule{
    // before
    // Query: "apple",
    // Match: "exact",
    Query: pointer.String("apple"),
    Match: pointer.Any(api.Exact),
}
  • [Breaking Change] SearchParameters fields Q and QueryBy are now optional.
preset := &api.PresetUpsertSchema{}
preset.Value.FromSearchParameters(api.SearchParameters{
	Q: pointer.Any("company"),
	QueryBy: pointer.String("name"),
})
Features:
  • Added Analytics and Conversation APIs, updated override and search parameters.
  • Allowed embedding of separate API keys for each search in multi-search.
  • Added a generic pointer.Any() helper function that converts any type into a pointer. This is especially useful for parameters of enum types.
// before
var upsertAction api.IndexDocumentParamsAction = "upsert"
&api.IndexDocumentParams{
		Action:      &upsertAction,
}
// after
&api.IndexDocumentParams{
		Action:      pointer.Any(api.Upsert),
}
Fixes:

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 1, 2025
@renovate renovate bot force-pushed the renovate/github.com-typesense-typesense-go-v2-3.x branch from ce2afdd to 274a843 Compare May 26, 2025 20:19
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