Repository navigation
Releases
0.9.0: provider sources, secret credentials and WordPress templates
Flux Importer for EmDash 1.6: sources other packages can add, secret credentials, templates that carry WordPress targets, and the rest of the admin design.
pnpm add @fluximporter/emdash@0.9.0Upgrading
0.9 has the same requirements as 0.8: emdash and @emdash-cms/auth 1.6, and @cloudflare/kumo at exactly 2.19.0, the version EmDash 1.6's admin ships. Update the plugin on its own.
| Flux Importer | EmDash | @cloudflare/kumo |
|---|---|---|
| 0.9 | 1.6 | 2.19.0 |
| 0.8 | 1.6 | 2.19.0 |
| 0.7 | 1.2 to 1.4 | 2.6.0 |
There's no migration. Data stored by 0.7 and 0.8 keeps working: every new stored field is optional, and credentials saved before are header credentials. The plugin declares one new storage index, records ["jobId", "facet", "seq"], for Preview's filters. A dry run that was in progress during the upgrade has empty Will change and Warnings lists, and Preview starts a fresh one anyway. A rollback started by 0.8 still continues from Continue the rollback. The capabilities and the MCP tool definitions are unchanged, so Agent access stays on.
Changes
Sources other packages can add
- A wrapping package can add kinds of source besides URLs:
createPlugin(options, { sourceProviders }). Flux Importer Pro will use it for FTP, FTPS, SFTP and SQL Server. Providers are checked when they're registered, get frozen copies of their input, and have their results checked before anything is stored (#46, #48, #50, #70). - A wrapper can also add routes (admin permissions only), admin pages and settings, and share one KV namespace with its providers through
extensionKv(ctx). A provider can pin a value, such as an SFTP host key, without pausing the schedules that read the source (#74, #76). sources/createtakeskindandconfig,sources/updatetakesconfig, and the newsources/kindsroute lists the installed kinds and their forms (#46, #74).- The Sources tab lists these sources with their kind and host, and Add a source and Edit show each kind's form. Passwords and keys become secret credentials, an SFTP host key can be forgotten, and the wizard lists them as "Name (Kind)" (#80, #83).
Credentials
- A credential can now be a secret: a multi-line value with no header, such as a private key, for sources that need one. URL sources still send header credentials only, and refuse a secret (#66, #68).
- The setting that holds them is now labelled Credentials (#66).
Templates that carry a WordPress target
- Templates accept the optional
targetblock that WordPress writes, and keep it on save and export (#59). - Importing a template made on another platform asks for a re-map instead of failing:
templates/importanswers409 REMAP_REQUIREDwith what to ask, and takes the answers asremap(#59, #64). - The Import template dialog has a Re-map this template step for it: collection and locale, a field or "drop" for each mapping, a choice for
blocksmappings and taxonomy names, and the fields to update. Answers survive a name clash and Back (#69, #73).
Failed fetches
- When a server answers a failed fetch with a JSON
{ "error": { "code", "message" } }body, as Flux Relay does, the importer keeps it: in the error message, inlastError.remote, and on the Sources tab ("HTTP 401 · UNAUTHORIZED") and in Fetch now's message (#62, #65). lastErroralso keeps the HTTPstatusof anHTTP_ERROR.
The admin
- Wizard, Source: a Looks like column (Text, Number or Date) and the data's size (#34).
- Wizard, Map: a row to check says what doesn't fit, with Keep it and Remove the key (#34).
- Preview: a Warnings filter, exact counts on every filter, and Will change lists only records that change an entry (#36).
- Run: a Log panel of the latest events (#36).
- Sources: the last fetch shows its record count, and a failed one the server's status (#36).
- Jobs: filter by status, exact totals ("1–8 of 14"), records read of the total while an import runs, and a Wizard origin (#38). The empty state links to the wizard guide (#34).
- Rollbacks keep running after the dialog closes: the scheduled task finishes them (#35).
Imports
- An entry open in an EmDash co-editing room is treated as locked, like an edit lock (#37).
- In a collection that doesn't allow scheduling, a record with a future publish time is saved as a draft with the warning
scheduling_disabled, instead of failing on every run (#37). - Name matching uses far less CPU, which matters on Cloudflare Workers' free plan (#37).
- Imports into locales given as
{ path, codes }(EmDash 1.3.1 and later) find the existing entries instead of creating duplicates (#42). - JSONata:
$fromMilliswith a negative offset that isn't a whole hour (-0330) was an hour off;$replaceand$splitwith a missing argument now give no result instead of an error (#82).
Project
- Releases are published from GitHub Actions with npm provenance (#32). The READMEs no longer claim ZIP imports (#33), and the npm keywords are accurate (#39).
- Astro 6 (6.4) is verified alongside Astro 7, and the Cloudflare test suite passes on EmDash 1.6 (#42). A Workers parity check through Flux Relay was added (#84).
Changed responses
These requests answer differently from 0.8. Everything else is additive.
| Request | 0.8 | 0.9 |
|---|---|---|
sources/create without url (a URL source) |
400 VALIDATION_ERROR "Invalid request body" |
400 VALIDATION_ERROR "A URL source needs a url" |
sources/create with config on a URL source |
200, config ignored, source created |
400 VALIDATION_ERROR "A URL source takes no config" |
sources/create with a kind other than url, no package adds it |
200, kind ignored, URL source created |
409 PROVIDER_MISSING "No source provider is registered for kind "…"" |
sources/create with a kind a package adds, plus url or credential |
200, kind ignored, URL source created |
400 VALIDATION_ERROR "A source of kind "…" takes config, not url or credential" |
sources/update with config on a URL source |
200, config ignored |
400 VALIDATION_ERROR "A URL source takes no config" |
sources/create or sources/update naming a secret credential |
(no secrets) | 400 VALIDATION_ERROR "Credential "…" is a secret, which a URL source cannot send; use a header credential" |
sources/create or sources/update body over 256 KiB |
accepted (no route limit) | 413 INVALID_PLUGIN_REQUEST, from EmDash before the route runs |
credentials/set, credentials/list |
{ name, header } |
{ name, kind, header } for a header, { name, kind } for a secret |
HTTP_ERROR message with a JSON error body |
"The server answered HTTP 401" | "The server answered HTTP 401: UNAUTHORIZED: …", plus lastError.status and lastError.remote |
sources/create with kind: "url" behaves as before.
Docs: fluximporter.com/emdash.
0.8.0: EmDash 1.6
Flux Importer for EmDash 1.6.
pnpm add @fluximporter/emdash@0.8.0Upgrading
Update emdash, @emdash-cms/* and this plugin together, and set @cloudflare/kumo to 2.19.0, the version EmDash 1.6's admin ships. A plugin's admin has to use exactly the admin's Kumo version, so:
| Flux Importer | EmDash | @cloudflare/kumo |
|---|---|---|
| 0.8 | 1.6 | 2.19.0 |
| 0.7 | 1.2 to 1.4 | 2.6.0 |
Sites still on EmDash 1.2 to 1.4 stay on 0.7. EmDash 1.5 has no matching release; update to 1.6.
Stored data, templates and the MCP tools are unchanged: no migration, and Agent access stays on.
Changes
- Requires
emdashand@emdash-cms/auth1.6 and@cloudflare/kumo2.19.0. - The admin follows Kumo 2.19 and EmDash 1.6's stylesheet: menu icon spacing, dialog heights, and the step bar and dry-run count strip, whose old classes the stylesheet no longer has.
- Clear "try again" messages for EmDash's new
STORAGE_INDEXES_NOT_READYandPLUGIN_SYNC_ERRORresponses, which the importer already retries. - Postgres detection matches EmDash 1.6's, for a second kysely copy under
astro dev. - An agent skill for AI coding assistants:
npx skills add FluxImporter/emdash.
Full details: #30.
0.7.0
The first release on npm: @fluximporter/emdash.
Import CSV, JSON, XML, Excel and ZIP files, and live URL feeds, into EmDash 1.2+: a visual mapping wizard, dry runs, saved templates, scheduled URL imports, rollback, optional AI mapping suggestions and MCP tools for agents.
pnpm add @fluximporter/emdashSetup, settings and the permissions it declares: see the package README and fluximporter.com/emdash.