@notionhq/custom-blocks 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -138,6 +138,10 @@ also needs the base domain. The allowlist applies to every custom block in the
138
138
  workspace. For `fetch` or `XMLHttpRequest`, an external API must allow the block's
139
139
  origin through CORS.
140
140
 
141
+ When a custom block makes repeated requests to an external API, consider its
142
+ rate limits. Consider batching requests or caching results to reduce unnecessary
143
+ calls. If the API returns 429, follow its retry guidance.
144
+
141
145
  Never put API secrets in a block bundle. Store them in the Worker. Read more in
142
146
  the [custom block security guide](https://developers.notion.com/custom-blocks/guides/security).
143
147
 
package/dist/version.js CHANGED
@@ -4,4 +4,4 @@
4
4
  *
5
5
  * WARNING: Generated during SDK publish. Do not edit in the published package.
6
6
  */
7
- export const CUSTOM_BLOCKS_SDK_VERSION = "0.2.7"
7
+ export const CUSTOM_BLOCKS_SDK_VERSION = "0.2.8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/custom-blocks",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "publishConfig": {