Skip to content

8.0.0

Compare
Choose a tag to compare
@maxime-beguin maxime-beguin released this 19 Nov 13:06
· 13 commits to master since this release

8.0.0 / 2021-11-19

BREAKING CHANGES

  • No longer tested on NodeJS < 16.3.0 and NPM < 7.15.1
  • require('@openveo/api').socket.SocketServer.listen signature has changed and now expects a list of allowed origins as second parameter
  • This is not a breaking change but a warning: Socket.io clients in version 2 are still supported but are strongly encouraged to upgrade to version 4
  • require('@openveo/api').util.validateFiles won't consider non tar files with .tar extension as tar archives

NEW FEATURES

  • require('@openveo/api').logger now adds a timestamp property to each log containing localized date and time
  • Improve code documentation by replacing Yuidoc by JSDoc
  • Add require('@openveo/api').watcher to listen to files system changes
  • ovWatch script has been added to execute an NPM script of files changes and can be launched using npx (see scripts/watch.js) for usage
  • ovRemove script has been added to remove file system resources and can be launched using npx (see scripts/remove.js) for usage
  • require('@openveo/api').imageProcessor.generateSpriteFreely has been added to be able to generate a sprite without resizing the images and simply ordering images by their height with all images of the same height on the same line of the sprites
  • require('@openveo/api').angularJs.parser has been added to offer tools to analyze and AngularJS application like sorting components files by dependence (used by grunt.ngDpTask) or generating an AngularJS run script to put all HTML templates into $templateCache
  • require('@openveo/api').fileSystem.replace has been added to be able to replace some text in a file
  • require('@openveo/api').fileSystem.performActions has been added to be able perform several copy / remove actions
  • require('@openveo/api').fileSystem.prepend has been added to be able to add text at the beginning of a file
  • require('@openveo/api').fileSystem.rmdir is now able to keep the directory itself
  • require('@openveo/api').fileSystem.rm is now able to remove the content of a directory without the directory itself
  • require('@openveo/api').fileSystem.getFileType has been added to be able to get the type of a file (only for supported files)
  • require('@openveo/api').fileSystem.extract is now capable of extracting zip files
  • require('@openveo/api').fileSystem now supports zip files
  • require('@openveo/api').storages.ResourceFilter now supports exists comparison operator to test if a field exists or not

BUG FIXES

  • Fix NodeJS DEP0005 warning when using fileSystem.readFile
  • Fix "callback was already called" error when using fileSystem.getJSONFileContent to parse invalid JSON

DEPENDENCIES

  • connect-mongo has been upgraded from 3.2.0 to 4.4.1
  • express-session has been upgraded from 1.17.0 to 1.17.2
  • mongodb has been upgraded from 3.5.5 to 3.6.10
  • passport-ldapauth has been upgraded from 2.1.4 to 3.0.1
  • shortid has been replaced by nanoid
  • socket.io has been upgraded from 2.3.0 to 4.2.0
  • tar-fs has been upgraded from 1.16.3 to 2.1.1
  • winston has been upgraded from 3.2.1 to 3.3.3
  • chai has been upgraded from 4.2.0 to 4.3.4
  • mocha has been upgraded from 7.1.1 to 9.1.0
  • multer has been upgraded from 1.4.2 to 1.4.3
  • yuidoc has been replaced by JSDoc
  • grunt-gh-pages has been replaced by a custom script
  • grunt-eslint has been removed
  • grunt has been removed
  • grunt-cli has been removed