![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@openreplay/tracker-ngrx
Advanced tools
A NgRx meta-reducer for OpenReplay Tracker. This plugin allows you to see the application state during session replay.
npm i @openreplay/tracker-ngrx
Initialize the @openreplay/tracker
package as usual and load the plugin into it.
Then put the generated meta-reducer into your imports
.
See NgRx documentation for details.
import { StoreModule } from '@ngrx/store';
import { reducers } from './reducers';
import Tracker from '@openreplay/tracker';
import trackerNgRx from '@openreplay/tracker-ngrx';
const tracker = new Tracker({
projectKey: YOUR_PROJECT_KEY,
});
const metaReducers = [tracker.plugin(trackerNgRx())];
@NgModule({
imports: [StoreModule.forRoot(reducers, { metaReducers })],
})
export class AppModule {}
You can customize the middleware behavior with options to sanitize your data.
trackerNgRx({
actionFilter: action => action.type !== 'DRAW', // only actions which pass this test will be recorded
actionTransformer: action => action.type === 'LOGIN' ? null : action,
actionType: action => action.type // action type for search, that's the default one
stateTransformer: state => {
const { jwt, ..._state } = state;
return _state;
},
})
FAQs
Tracker plugin for NgRx state recording
The npm package @openreplay/tracker-ngrx receives a total of 0 weekly downloads. As such, @openreplay/tracker-ngrx popularity was classified as not popular.
We found that @openreplay/tracker-ngrx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.