Skip to content

docs: create MIGRATION.md with migration guide for deprecated APIs (closes #68)#167

Merged
s2x merged 1 commit into
mainfrom
docs/migration-guide-68
Jul 8, 2026
Merged

docs: create MIGRATION.md with migration guide for deprecated APIs (closes #68)#167
s2x merged 1 commit into
mainfrom
docs/migration-guide-68

Conversation

@s2x

@s2x s2x commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #68 (DOC-009: Missing Migration Guide for Deprecated APIs).

Creates MIGRATION.md as a comprehensive migration guide from v0.4.x deprecated APIs to v0.5.0 modern APIs.

Changes

New file: MIGRATION.md

Migration guide covering 7 sections, each with BEFORE/AFTER code blocks:

  1. Index CreationcreateHnswIndex(), createFlatIndex(), createIvfIndex(), createHnswRabitqIndex()createIndex() + ZVecIndexParams
  2. Statisticsstats() JSON parsing → typed getStatsStruct()
  3. Schema Introspection — new getFieldSchema() returning ZVecFieldSchema
  4. Collection Options — flat create() params → ZVecCollectionOptions with createWith()/openWith()
  5. Query Object Pattern — positional query() args → ZVecVectorQuery builder with queryVector()
  6. Reranker in Queries — `` param on query() → `queryWithReranker()`
  7. Deprecated Schema MethodsaddField*()add*()

Modified: README.md

Added "Upgrading from v0.4.x" section linking to MIGRATION.md.

Modified: CHANGELOG.md

Added entry under [Unreleased] Added for DOC-009.

Verification

  • php -l passes on all PHP files (no syntax errors)
  • ✅ No code changes — documentation only
  • ✅ CI will run tests on PR (expected to pass)

…loses #68)

- Add MIGRATION.md at project root covering:
  - Index Creation migration (createHnswIndex etc. -> createIndex + ZVecIndexParams)
  - Statistics migration (stats() -> getStatsStruct())
  - Schema Introspection (new getFieldSchema() API)
  - Collection Options (ZVecCollectionOptions with createWith/openWith)
  - Query Object Pattern (ZVecVectorQuery + queryVector())
  - Reranker in Queries (queryWithReranker())
  - Deprecated Schema Methods (addField* -> add*)
- Add 'Upgrading from v0.4.x' section to README.md linking to MIGRATION.md
- Add CHANGELOG.md entry for DOC-009
@s2x
s2x merged commit 5819ad1 into main Jul 8, 2026
3 checks passed
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.

DOC-009: Missing Migration Guide for Deprecated APIs

1 participant