Skip to content

Commit 9e308c6

Browse files
committed
bumped package version
1 parent 5517c22 commit 9e308c6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,4 @@ let tabId = await connection.$getMyTabId();
345345

346346
## Using the sendMessage API alongside this library
347347

348-
From version 1.1.0, there is no limitation on how to use the "sendMessage" API, since this library is now using long lived connections with ports. If you want to create a separate port to the background script, just avoid to start its name with "bgscript", to ensure that the bgscript library does not mistake it as its private connection.
348+
From version 1.2.0, there is a very small limitation on how to use the "sendMessage" API, even though this library mostly uses ports. Just avoid having a message that is an object, with a `type` property that starts with "bgscript".

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "@andreadev/bg-script",
3-
"version": "1.1.13",
3+
"version": "1.2.0",
44
"description": "Library that helps you communicate between background and content scripts in a Google Chrome extension.",
55
"main": "index.js",
66
"module": "index-modules.js",
77
"scripts": {
8-
"test": "echo \"Error: no test specified\" && exit 1"
8+
"test": "echo \"Error: no test specified\" && exit 1",
9+
"build": "gulp build"
910
},
1011
"repository": {
1112
"type": "git",

0 commit comments

Comments
 (0)