Async State Management without the Management
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] about 1 year ago
664d3eacff
Thanks @ntucker! - Remove dev warning for old versions of client
#2799 26a3843d1b
Thanks @ntucker! - Removed some forms of automatic entity validation
We are generally trying to be more lax and focus on catching
clearly wrong signals. A lot of help comes from network response
form detection.
Updated dependencies [664d3eacff
, 26a3843d1b
]:
Published by github-actions[bot] about 1 year ago
664d3eacff
Thanks @ntucker! - Remove dev warning for old versions of client
#2799 26a3843d1b
Thanks @ntucker! - Removed some forms of automatic entity validation
We are generally trying to be more lax and focus on catching
clearly wrong signals. A lot of help comes from network response
form detection.
Published by github-actions[bot] about 1 year ago
c6ee872c7d
Thanks @ntucker! - Fix published dependency rangePublished by github-actions[bot] about 1 year ago
#2797 c6ee872c7d
Thanks @ntucker! - Fix published dependency range
Updated dependencies [c6ee872c7d
]:
Published by github-actions[bot] about 1 year ago
#2797 c6ee872c7d
Thanks @ntucker! - Fix published dependency range
Updated dependencies [c6ee872c7d
]:
Published by github-actions[bot] about 1 year ago
c6ee872c7d
Thanks @ntucker! - Fix published dependency rangePublished by github-actions[bot] about 1 year ago
c6ee872c7d
Thanks @ntucker! - Fix published dependency rangePublished by github-actions[bot] about 1 year ago
c6ee872c7d
Thanks @ntucker! - Fix published dependency rangePublished by github-actions[bot] about 1 year ago
c6ee872c7d
Thanks @ntucker! - Fix published dependency rangePublished by github-actions[bot] about 1 year ago
#2782 d3343d42b9
Thanks @ntucker! - Requires @data-client/react@^0.5.0
#2788 ccaccdbe99
Thanks @ntucker! - BREAKING: makeRenderRestHook -> makeRenderDataClient
Published by github-actions[bot] about 1 year ago
#2784 c535f6c0ac
Thanks @ntucker! - BREAKING CHANGES:
#2795 79e286109b
Thanks @ntucker! - BREAKING: Schema Serializers must support function calls
This means Date will no longer work like before. Possible migrations:
class Ticker extends Entity {
trade_id = 0;
price = 0;
time = Temporal.Instant.fromEpochSeconds(0);
pk(): string {
return `${this.trade_id}`;
}
static key = 'Ticker';
static schema = {
price: Number,
time: Temporal.Instant.from,
};
}
or to continue using Date:
class Ticker extends Entity {
trade_id = 0;
price = 0;
time = Temporal.Instant.fromEpochSeconds(0);
pk(): string {
return `${this.trade_id}`;
}
static key = 'Ticker';
static schema = {
price: Number,
time: (iso: string) => new Date(iso),
};
}
#2792 35ccedceb5
Thanks @ntucker! - BREAKING: Serializer schemas are only processed during denormalization
ff51e71f45
Thanks @ntucker! - Update jsdocs references to dataclient.ioPublished by github-actions[bot] about 1 year ago
ff51e71f45
Thanks @ntucker! - Update jsdocs references to dataclient.ioPublished by github-actions[bot] about 1 year ago
#2787 8ec35d7143
Thanks @ntucker! - Remove makeCacheProvider
Current testing version is already using the provider Component directly
import { CacheProvider } from '@data-client/react';
const renderDataClient = makeRenderDataClient(CacheProvider);
837cf57883
, f65cf832f0
, c865415ce5
, ff51e71f45
, c535f6c0ac
, d3343d42b9
, 5ff1d65eb5
]:
Published by github-actions[bot] about 1 year ago
f65cf832f0
Thanks @ntucker! - BREAKING: Remove all /next exports
#2790 3f36f56939
Thanks @ntucker! - Remove support for non-Collection pagination
BREAKING CHANGE: RestEndpoint with Arrays no longer support .paginated()
#2789 440d415bc8
Thanks @ntucker! - getPage,push,unshift,assign should not match name of parent
const getTodos = new RestEndpoint({
urlPrefix: 'https://jsonplaceholder.typicode.com',
path: '/todos',
schema: new schema.Collection([Todo]),
name: 'gettodos',
});
getTodos.getPage.name === 'gettodos.getPage';
getTodos.push.name === 'gettodos.create';
getTodos.unshift.name === 'gettodos.create';
#2795 79e286109b
Thanks @ntucker! - BREAKING: Schema Serializers must support function calls
This means Date will no longer work like before. Possible migrations:
class Ticker extends Entity {
trade_id = 0;
price = 0;
time = Temporal.Instant.fromEpochSeconds(0);
pk(): string {
return `${this.trade_id}`;
}
static key = 'Ticker';
static schema = {
price: Number,
time: Temporal.Instant.from,
};
}
or to continue using Date:
class Ticker extends Entity {
trade_id = 0;
price = 0;
time = Temporal.Instant.fromEpochSeconds(0);
pk(): string {
return `${this.trade_id}`;
}
static key = 'Ticker';
static schema = {
price: Number,
time: (iso: string) => new Date(iso),
};
}
#2779 ff51e71f45
Thanks @ntucker! - Update jsdocs references to dataclient.io
Updated dependencies [ff51e71f45
, c535f6c0ac
, 79e286109b
]:
Published by github-actions[bot] about 1 year ago
f65cf832f0
Thanks @ntucker! - BREAKING: Remove all /next exports
#2787 8ec35d7143
Thanks @ntucker! - Remove makeCacheProvider
Current testing version is already using the provider Component directly
import { CacheProvider } from '@data-client/react';
const renderDataClient = makeRenderDataClient(CacheProvider);
#2785 c6a2071178
Thanks @ntucker! - Add className to error boundary and errorClassName to AsyncBoundary
<AsyncBoundary errorClassName="error">
<Stuff/>
</AsyncBounary>
<NetworkErrorBoundary className="error">
<Stuff />
</NetworkErrorBoundary>
#2784 c535f6c0ac
Thanks @ntucker! - BREAKING CHANGES:
#2782 d3343d42b9
Thanks @ntucker! - Remove all 'receive' action names (use 'set' instead)
BREAKING CHANGE:
#2791 a726d9178a
Thanks @ntucker! - CacheProvider elements no longer share default managers
New export: getDefaultManagers()
BREAKING CHANGE: Newly mounted CacheProviders will have new manager
objects when default is used
#2795 79e286109b
Thanks @ntucker! - BREAKING: Schema Serializers must support function calls
This means Date will no longer work like before. Possible migrations:
class Ticker extends Entity {
trade_id = 0;
price = 0;
time = Temporal.Instant.fromEpochSeconds(0);
pk(): string {
return `${this.trade_id}`;
}
static key = 'Ticker';
static schema = {
price: Number,
time: Temporal.Instant.from,
};
}
or to continue using Date:
class Ticker extends Entity {
trade_id = 0;
price = 0;
time = Temporal.Instant.fromEpochSeconds(0);
pk(): string {
return `${this.trade_id}`;
}
static key = 'Ticker';
static schema = {
price: Number,
time: (iso: string) => new Date(iso),
};
}
#2781 5ff1d65eb5
Thanks @ntucker! - Prefix action types with 'rdc'
BREAKING CHANGE: Action types have new names
#2779 ff51e71f45
Thanks @ntucker! - Update jsdocs references to dataclient.io
Updated dependencies [837cf57883
, f65cf832f0
, c865415ce5
, ff51e71f45
, c535f6c0ac
, d3343d42b9
, 5ff1d65eb5
]:
Published by github-actions[bot] about 1 year ago
ff51e71f45
, c535f6c0ac
, 79e286109b
]:
Published by github-actions[bot] about 1 year ago
ff51e71f45
, c535f6c0ac
, 79e286109b
, 35ccedceb5
]:
Published by github-actions[bot] about 1 year ago
837cf57883
Thanks @ntucker! - Remove newActions export
(All members continue to be exported at top level)
f65cf832f0
Thanks @ntucker! - BREAKING: Remove all /next exports
#2786 c865415ce5
Thanks @ntucker! - Middleware no longer gets controller
prop.
The entire API is controller itself:
({controller}) => next => async action => {}
->
(controller) => next => async action => {}
class LoggingManager implements Manager {
getMiddleware = (): Middleware => controller => next => async action => {
console.log('before', action, controller.getState());
await next(action);
console.log('after', action, controller.getState());
};
cleanup() {}
}
Note this has been possible for some time this simply drops
legacy compatibility.
#2784 c535f6c0ac
Thanks @ntucker! - BREAKING CHANGES:
#2782 d3343d42b9
Thanks @ntucker! - Remove all 'receive' action names (use 'set' instead)
BREAKING CHANGE:
#2781 5ff1d65eb5
Thanks @ntucker! - Prefix action types with 'rdc'
BREAKING CHANGE: Action types have new names
#2779 ff51e71f45
Thanks @ntucker! - Update jsdocs references to dataclient.io
Updated dependencies [ff51e71f45
, c535f6c0ac
, 79e286109b
, 35ccedceb5
]:
Published by github-actions[bot] about 1 year ago
#2784 c535f6c0ac
Thanks @ntucker! - BREAKING CHANGES:
#2795 79e286109b
Thanks @ntucker! - BREAKING: Schema Serializers must support function calls
This means Date will no longer work like before. Possible migrations:
class Ticker extends Entity {
trade_id = 0;
price = 0;
time = Temporal.Instant.fromEpochSeconds(0);
pk(): string {
return `${this.trade_id}`;
}
static key = 'Ticker';
static schema = {
price: Number,
time: Temporal.Instant.from,
};
}
or to continue using Date:
class Ticker extends Entity {
trade_id = 0;
price = 0;
time = Temporal.Instant.fromEpochSeconds(0);
pk(): string {
return `${this.trade_id}`;
}
static key = 'Ticker';
static schema = {
price: Number,
time: (iso: string) => new Date(iso),
};
}
ff51e71f45
Thanks @ntucker! - Update jsdocs references to dataclient.ioPublished by github-actions[bot] about 1 year ago
ff51e71f45
, c535f6c0ac
, 79e286109b
]: