ncc_data_shaft 2.0.0 copy "ncc_data_shaft: ^2.0.0" to clipboard
ncc_data_shaft: ^2.0.0 copied to clipboard

The official bridge between network_cool_client (ncc) and data_shaft. Provides standardized drivers and datasources for a clean data layer.

2.0.0 #

Breaking Changes #

  • Updated data_shaft dependency to ^2.0.0. This includes its own breaking changes from data_shaft 1.x (e.g., admissibleStatusCode now returns Set<int> instead of List<int>, and other changes to Codable, RemoteDriver, and response types). Refer to the data_shaft changelog for details.
  • Renamed HTTP Datasource classes to align with file naming convention:
    • DatasourceGetHttpDatasourceHttpGet
    • DatasourcePostHttpDatasourceHttpPost
    • DatasourcePutHttpDatasourceHttpPut
    • DatasourcePatchHttpDatasourceHttpPatch
    • DatasourceDeleteHttpDatasourceHttpDelete
  • Renamed Session Datasource classes to align with file naming convention:
    • DatasourceGetSessionDatasourceSessionGet
    • DatasourcePostSessionDatasourceSessionPost
    • DatasourcePutSessionDatasourceSessionPut
    • DatasourcePatchSessionDatasourceSessionPatch
    • DatasourceDeleteSessionDatasourceSessionDelete

Internal #

  • Removed redundant checkInformation overrides in DatasourceNcc* base classes

Added #

  • Skill for AI-Assisted Development

1.0.2 #

Added #

  • Update dependency for implement covariant on transformation and checkResponse

1.0.1 #

Added #

  • Update dependencies of data_shaft for cool_bedrock breaking change update

1.0.0 - 2026-02-23 #

Added #

  • Initial Release: Complete integration between network_cool_client and data_shaft.
  • NccConnectionDriver: Base implementation of RemoteDriver using ncc's BaseClient.
  • Specialized Drivers:
    • HttpDataShaftDriver: Specifically designed for public API communication using NccClient.
    • SessionDataShaftDriver: Specifically designed for authenticated communication using SessionClient (handles token injection and renewal).
  • Type-Safe DataSources:
    • Public Context: Added DatasourceHttpGet, DatasourceHttpPost, DatasourceHttpPut, DatasourceHttpPatch, and DatasourceHttpDelete.
    • Session Context: Added DatasourceSessionGet, DatasourceSessionPost, DatasourceSessionPut, DatasourceSessionPatch, and DatasourceSessionDelete.
  • Core Abstractions: Base classes DatasourceNccGet, DatasourceNccPost, etc., to allow custom driver extensions.
  • Barrel Exports: Organized export system (datasource_http.dart, datasource_session.dart, driver.dart) to simplify package usage.
  • Enhanced DX: Re-export of Codable from data_shaft to reduce boilerplate in domain models.
0
likes
160
points
232
downloads

Documentation

API reference

Publisher

verified publisheryaminokishi.com

Weekly Downloads

The official bridge between network_cool_client (ncc) and data_shaft. Provides standardized drivers and datasources for a clean data layer.

Repository (GitHub)
View/report issues
Contributing

Topics

#clean-architecture #networking #session-management #data-layer #repository-pattern

License

MIT (license)

Dependencies

data_shaft, meta, ncc

More

Packages that depend on ncc_data_shaft