[PR #599] [MERGED] fix(deps): update module github.com/typesense/typesense-go/v2 to v3 #777

Closed
opened 2025-11-01 21:04:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/599
Author: @renovate[bot]
Created: 4/1/2025
Status: Merged
Merged: 4/1/2025
Merged by: @kolaente

Base: mainHead: renovate/github.com-typesense-typesense-go-v2-3.x


📝 Commits (1)

  • 515855d fix(deps): update module github.com/typesense/typesense-go/v2 to v3

📊 Changes

2 files changed (+8 additions, -2 deletions)

View changed files

📝 go.mod (+3 -2)
📝 go.sum (+5 -0)

📄 Description

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: https://github.com/typesense/typesense-go/compare/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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/599 **Author:** [@renovate[bot]](https://github.com/apps/renovate) **Created:** 4/1/2025 **Status:** ✅ Merged **Merged:** 4/1/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `renovate/github.com-typesense-typesense-go-v2-3.x` --- ### 📝 Commits (1) - [`515855d`](https://github.com/go-vikunja/vikunja/commit/515855d73d4b9d97413c2826d98ed5271995fdd0) fix(deps): update module github.com/typesense/typesense-go/v2 to v3 ### 📊 Changes **2 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+3 -2) 📝 `go.sum` (+5 -0) </details> ### 📄 Description This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/typesense/typesense-go/v2](https://redirect.github.com/typesense/typesense-go) | `v2.0.0` -> `v3.2.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2ftypesense%2ftypesense-go%2fv2/v3.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2ftypesense%2ftypesense-go%2fv2/v3.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2ftypesense%2ftypesense-go%2fv2/v2.0.0/v3.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2ftypesense%2ftypesense-go%2fv2/v2.0.0/v3.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>typesense/typesense-go (github.com/typesense/typesense-go/v2)</summary> ### [`v3.2.0`](https://redirect.github.com/typesense/typesense-go/releases/tag/v3.2.0) [Compare Source](https://redirect.github.com/typesense/typesense-go/compare/v3.1.0...v3.2.0) #### What's Changed - gen types, fixed for `num_tokens_dropped`: [https://github.com/typesense/typesense-go/issues/194](https://redirect.github.com/typesense/typesense-go/issues/194) by [@&#8203;haydenhoang](https://redirect.github.com/haydenhoang) in [https://github.com/typesense/typesense-go/pull/196](https://redirect.github.com/typesense/typesense-go/pull/196) - copy body over request retries in a multi-node request by [@&#8203;haydenhoang](https://redirect.github.com/haydenhoang) in [https://github.com/typesense/typesense-go/pull/197](https://redirect.github.com/typesense/typesense-go/pull/197) **Full Changelog**: https://github.com/typesense/typesense-go/compare/v3.1.0...v3.2.0 ### [`v3.1.0`](https://redirect.github.com/typesense/typesense-go/releases/tag/v3.1.0) [Compare Source](https://redirect.github.com/typesense/typesense-go/compare/v3.0.0...v3.1.0) #### What's changed - v28 features are supported in this release: [https://github.com/typesense/typesense-go/pull/192](https://redirect.github.com/typesense/typesense-go/pull/192) ### [`v3.0.0`](https://redirect.github.com/typesense/typesense-go/releases/tag/v3.0.0) [Compare Source](https://redirect.github.com/typesense/typesense-go/compare/v2.0.0...v3.0.0) #### What's Changed - **\[Breaking Change]** `MultiSearchCollectionParameters.collection` is now optional. Fixed [issue #&#8203;168](https://redirect.github.com/typesense/typesense-go/issues/168). ```go 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. ```go 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. ```go 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`. ```go &api.ImportDocumentsParams{ // Action: pointer.String("create"), Action: pointer.Any(api.Create), } ``` - **\[Breaking Change]** The `Query` and `Match` fields in override rules are now optional. ```go 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. ```go 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. ```go // before var upsertAction api.IndexDocumentParamsAction = "upsert" &api.IndexDocumentParams{ Action: &upsertAction, } // after &api.IndexDocumentParams{ Action: pointer.Any(api.Upsert), } ``` ##### Fixes: - Fixed [issue #&#8203;147](https://redirect.github.com/typesense/typesense-go/issues/147). - Fixed [issue #&#8203;189](https://redirect.github.com/typesense/typesense-go/issues/189). </details> --- ### 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. --- - [ ] <!-- 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/go-vikunja/vikunja). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMjcuMyIsInVwZGF0ZWRJblZlciI6IjM5LjIyNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-01 21:04:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#777