Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit 36a4b61

Browse files
Gozalavmx
authored andcommitted
fix: change deprecation to cover 0.11
1 parent c2fa565 commit 36a4b61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const deprecate = (range, message) => {
9696
}
9797
}
9898

99-
const deprecateCID = deprecate(/^0\.10/, 'block._cid is deprecated and will be removed in the next major release. Use block.cid instead')
100-
const deprecateData = deprecate(/^0\.10/, 'block._data is deprecated and will be removed in the next major release. Use block.data instead')
99+
const deprecateCID = deprecate(/^0\.10|^0\.11/, 'block._cid is deprecated and will be removed in 0.12 release. Please use block.cid instead')
100+
const deprecateData = deprecate(/^0\.10|^0.11/, 'block._data is deprecated and will be removed in 0.12 release. Please use block.data instead')
101101

102102
module.exports = Block

0 commit comments

Comments
 (0)