From fc40aa1491e3b6b2db7e8cc00d39a734c17a4a25 Mon Sep 17 00:00:00 2001 From: Andrew Pam Date: Sun, 14 Sep 2025 17:13:39 +1000 Subject: [PATCH] rrweb console-record moved to a plugin --- index.js | 3 ++- package.json | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 846a5df..fce54d1 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,7 @@ "use strict"; import * as rrweb from "rrweb"; +import { getRecordConsolePlugin } from '@rrweb/rrweb-plugin-console-record'; import { v4 as uuidv4 } from "uuid"; import config from "./config"; @@ -142,7 +143,7 @@ class Recorder { this.options = { ...config.recordOptions, emit: handleEvent, - plugins: [rrweb.getRecordConsolePlugin(config.recordConsolePlugin)], + plugins: [getRecordConsolePlugin(config.recordConsolePlugin)], }; this.stop = null; } diff --git a/package.json b/package.json index 54f643d..b69bcd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bardrr", - "version": "2.3.1", + "version": "2.3.2", "description": "", "main": "index.js", "scripts": { @@ -10,7 +10,8 @@ "author": "", "license": "MIT", "dependencies": { - "rrweb": "^2.0.0-alpha.3", + "@rrweb/rrweb-plugin-console-record": "2.0.0-alpha.18", + "rrweb": "^2.0.0-alpha.18", "uuid": "^9.0.0" } -} \ No newline at end of file +}