- Corrects documentation of required permissions.
- Add CSV format.
- This is a new major version, 2.0.0. To update to this version you must edit your
package.json
file and change the dependency to^2.0.0
or similar. - The signature of the
output
function from the gzip format has changed. It no longer takes theapos
instance and now requires aprocessAttachments
callback. import
andoverrideDuplicates
functions now requireformatLabel
to be passed inreq
.
- Documentation updates.
- Fixes imported data with the wrong mode because
req.mode
was alwayspublished
, even for draft documents.
- Compatible with both Apostrophe 3.x and Apostrophe 4.x (both Vue 2 and Vue 3).
- Bug fix. When a piece or a page is created, published, then unpublished, and subsequently exported and re-imported, the manager modal incorrectly showed no published version. This occurs because the
lastPublishedAt
property of the draft document was set to null upon import, misleading the representation of the document's published state. Now it retains the original document'slastPublishedAt
value.
- Requires the create and edit permissions to use the import utility operation
- Fixed a security issue that allowed a correctly crafted
HTTP request to delete arbitrary files and folders, subject to the permissions with which the Node.js
process was run. No user account was required to exploit this issue. All users of this module should immediately run
npm update @apostrophecms/import-export
and deploy the latest version of this module. The module has been carefully audited for similar issues and best practices have been put in place to prevent any similar issue in future.
- Prefix routes and events to avoid conflicts with the old
@apostrophecms/piece-type-importer
and@apostrophecms/piece-type-exporter
modules.
- Import now detects if the locale found in the exported docs is different from the current site one.
If the site has only one locale configured, then the docs are automatically re-written with the site locale.
If the site has multiple locales configured, the user is given the possibility to abort the import or re-write the docs with the site locale.
Please note that this change is dependent on core changes found in 3.60.0.
- Hide "Duplicates Detected." notification.
- Display more information about duplicated documents.
- Export file name more meaningful, containing project name, module name and current date and time.
- Fix progress bar going over
100%
when importing docs that are archived after being exported. - Adds missing dependency.
- Use
uploadfs.copyOut
to ensure success in more attachment export situations, such as debugging a multisite Assembly project on a local machine where Chrome considers subdomains oflocalhost
to be your machine but Node.js does not. - Minor refactoring for maintainability and performance.
- Error and warning notifications stay in place until dismissed.
Move documentation images to our own hosting.
Initial release.