datocms-plugin-record-bin 3.0.0 → 3.0.1
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 +15 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,21 @@ If no explicit runtime has ever been saved yet, the plugin falls back to legacy
|
|
|
30
30
|
| Capture dashboard deletions | ✅ | ✅ |
|
|
31
31
|
| Capture API deletions | ✅ | ❌ |
|
|
32
32
|
| Restore from Record Bin | ✅ | ✅ |
|
|
33
|
-
| Daily cleanup of old bin entries | ✅ | ✅ |
|
|
33
|
+
| Daily cleanup check of old bin entries (on plugin boot, no cron jobs) | ✅ | ✅ |
|
|
34
|
+
|
|
35
|
+
## Cleanup trigger model (no CronJobs)
|
|
36
|
+
|
|
37
|
+
Cleanup is request-driven in both runtimes, not background-scheduled:
|
|
38
|
+
|
|
39
|
+
- The plugin runs a daily cleanup check on `onBoot`.
|
|
40
|
+
- The check is throttled to once per day using `automaticBinCleanup.timeStamp`.
|
|
41
|
+
- In `Lambda-full` mode, the plugin sends `POST /` to your lambda URL with `event_type: "cleanup"`.
|
|
42
|
+
- In `Lambda-less` mode, the plugin performs cleanup directly through the CMA API using `currentUserAccessToken`.
|
|
43
|
+
- If the plugin is not booted for some time, cleanup runs the next time it boots.
|
|
44
|
+
|
|
45
|
+
### Why we do not ship cron jobs
|
|
46
|
+
|
|
47
|
+
We intentionally opted out of built-in cron jobs. On serverless platforms, scheduled invocations add recurring compute cost, while storage reduction versus boot-triggered cleanup is usually small. For this plugin, that tradeoff was not worth the extra cost and operational complexity.
|
|
34
48
|
|
|
35
49
|
## Setup
|
|
36
50
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-plugin-record-bin",
|
|
3
3
|
"homepage": "https://github.com/datocms/plugins/tree/master/record-bin#readme",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"author": "DatoCMS <support@datocms.com>",
|
|
6
6
|
"description": "A plugin to manage and create a backup of deleted records in DatoCMS",
|
|
7
7
|
"keywords": [
|