Skip to content

fmdata#76

Merged
eluce2 merged 6 commits intomainfrom
10-28-fmdata
Jan 5, 2026
Merged

fmdata#76
eluce2 merged 6 commits intomainfrom
10-28-fmdata

Conversation

@eluce2
Copy link
Copy Markdown
Collaborator

@eluce2 eluce2 commented Dec 11, 2025

fmdata

update next

Update CLI version to 2.0.0-beta.6 and integrate @rollup/plugin-replace for build-time variable injection. Modify release script to use turbo for building packages.

Enhance orderBy functionality with type-safe API in fmodata

  • Updated README.md to include detailed examples of the new orderBy method, showcasing single and multiple field sorting with type safety.
  • Introduced TypeSafeOrderBy type in query-builder.ts to enforce type safety for orderBy parameters.
  • Modified orderBy implementation to support tuple syntax for explicit sorting directions and multiple fields.
  • Updated tests to validate the new orderBy API, ensuring compile-time type checks and proper query string generation for both typed and untyped databases.

Note

Adds a full Vitest-based test setup with mocks/fixtures and build tooling for fmodata, including extensive unit/integration tests and configs.

  • Tests (Vitest):
    • Add extensive test suites: query strings, ORM API, navigation, inserts/updates, scripts, validation, sanitize JSON, useEntityIds override, orderBy usage.
    • Include E2E-like schema manager tests (optional env-based).
  • Fixtures & Mocks:
    • Add captured OData mock responses (tests/fixtures/responses.ts) and sample metadata/occurrences.
    • Introduce mock fetch utilities and helpers.
  • Tooling/Config:
    • Add vitest.config.ts, package tsconfig.json and test tsconfigs.
    • Add Vite build config (vite.config.ts) and package build settings.
    • Add Thunder Client test definitions.
  • Dependencies:
    • Update lockfile with new dev/runtime deps (vite, vitest, vite-plugin-dts, @fetchkit/ffetch, etc.).

Written by Cursor Bugbot for commit cc2baa6. This will update automatically on new commits. Configure here.

Summary by CodeRabbit

  • New Features

    • Added comprehensive ORM API with type-safe field builders, column references, and table definitions.
    • Implemented FMServerConnection for FileMaker OData server interactions.
    • Added CRUD operations: insert, update, delete, and query builders with EntitySet fluent API.
    • Introduced batch operations for atomic execution of multiple requests.
    • Added support for FileMaker entity IDs (FMFID/FMTID) with automatic field/table transformations.
    • Implemented navigation and expand functionality for related data.
    • Added schema management operations for table creation and modification.
  • Documentation

    • Added comprehensive README with quick start, concepts, and examples.
    • Added ORM API documentation and implementation summaries.
  • Tests

    • Added extensive end-to-end and unit test coverage.
  • Chores

    • Updated build configuration and package metadata.

✏️ Tip: You can customize this high-level summary in your review settings.

Loading
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.

1 participant