diff --git a/README.md b/README.md index 1dcd2ada..9c46dd60 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Also provide the ability to rebuild the DOM via snapshot. ## API -This module export 3 methods: +This module export following methods: ### snapshot @@ -34,3 +34,7 @@ There are serveral things will be done during rebuild: #### serializeNodeWithId `serializeNodeWithId` can serialize a node into snapshot format with id. + +#### buildNodeWithSN + +`buildNodeWithSN` will build DOM from serialized node and store serialized information in `__sn` property. diff --git a/package.json b/package.json index e0eceea0..982d4b1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rrweb-snapshot", - "version": "0.5.1", + "version": "0.5.2", "description": "rrweb's component to take a snapshot of DOM, aka DOM serializer", "main": "dist/index.js", "module": "dist/module.js",