Artem Zakharchenko
Artem Zakharchenko
## GitHub - Closes #49 ## Changes - Database operations (create/update/delete/etc.) are not persisted in the `sessionStorage` and hydrated on page load. ## Roadmap - [ ] Write the `.toJson()`...
An `upsert` method updates an entity matching a query or creates a new entity if there was none. `upsertMany` behaves the same with the difference that it operates on multiple...
In order to use this library for SSR scenarios, there should be a way to synchronize the DB state on the server based on the operations performed on the client....
## Expected behavior The `snapshot` utility would memorize the state of the database (its entities) at a call time, and allow to restore to that memorized state at any further...
```js import { factory, seed } from '@mswjs/data' const db = factory(modles) seed(db, { [modelName]: seedOptions }) ```
This is a third generation of the request interception algorithm. To improve on the previous class augmentation principle, we are introducing proxies. Proxies allow us to keep the original request...
## SocketIO support - [x] "websocket" transport (browser) - [ ] "polling" transport (browser `XMLHttpRequest`) - [x] Add `send`/`emit` integration tests - [ ] Support sending requests to the original...
With the addition of `jest-setup-glob` dependency we can remove the following commands: - `yarn test:internal` - `yarn test:integration` - `yarn test:integration:node` - `yarn test:integration:browser` And use a single `yarn test`...
The `upload` property on the XMLHttpRequest returns a `XMLHttpRequestUpload` instance, which is similar to an event emitter. The consumer may use the `upload` instance to attach listeners on the _request...
## Expected behavior - Exported under `node-request-interceptor/interceptors/[name]` - Distributed in a format that would allow them to be imported from both ESM and CJS context (currently importing an interceptor directly...