A tiny autumnal bug fix, that addresses a few gnarly issues. Firstly, slug
tokens no longer randomly generate, but are based on a post’s published
value. This helps fix another issue, which is that the Micropub endpoint will no longer attempt to create a post where one already exists (you should use update
for to achieve this). Store plug-ins have been updated to ignore creating files where files already exist as well. These changes should mean less errors, and fix the issue with duplicate posts being generated, as reported by @gerwitz in #731.
In fixing the above issue, a few issues were spotted in the GitLab and S3 store plug-ins, which have now been fixed also.
Indiekit will also no longer throw an error fetching referenced URLs that return an error, instead these URLs will be logged to the console (thanks to @thepaperpilot for reporting).
Finally, a few small issues have been squashed too, such as photos maintaining their correct aspect ratio, and npm create indiekit
no longer throwing an error trying to find the debug
package (thanks to @jacobian for reporting).
💟 Indiekit is supported by its community. This release was sponsored by @abhas and @sentience.
Features
- endpoint-media: replace existing if uploading media with the same url (fc24e1c)
- endpoint-micropub: replace existing if creating a post with the same url (b3b0baa)
- endpoint-micropub: use md5 hash of published date as final option for a slug (2ea5a8c)
- store-bitbucket: check if file exists before creating (e394e4a)
- store-file-system: check if file exists before creating (1aa437e)
- store-github: check if file exists before creating (f89b8f1)
- util: md5 (b09a8c4)
Bug Fixes
- endpoint-media: add debug dependency (3d702e2)
- endpoint-media: resize image while keeping original orientation (0d51c95)
- endpoint-micropub: add debug dependency (ca92293)
- endpoint-micropub: remove deprecated
checkKeys
option (330e023) - post-type-event: add missing conditional for end property (3e1a8a0)
- store-ftp: check if file exists before creating (e50e32c)
- store-gitea: check if file exists before creating (2512507)
- store-gitea: join file and instance paths to normalise client url (3a83733)
- store-github: add debug dependency. fixes #763 (bd2a3f7)
- store-github: join file and instance paths to normalise client url (a9ff68e)
- store-gitlab: check if file exists before creating (101637b)
- store-gitlab: update integration (b4c88ce)
- store-s3: check if file exists before creating (e1468c4
- store-s3: copy file before deleting when moving (c6dcb25)