Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.9 KB

changelog.md

File metadata and controls

61 lines (44 loc) · 2.9 KB

1.4.3

  • Removed await-to-js dependency in local storage adapter

1.4.2

  • Added ConfigAmazonS3, ConfigBackblazeB2, ConfigGoogleCloud and ConfigLocal to exported types
  • Removed await-to-js dependency

1.4.1

  • Added AdapterConfig to exported types

1.4.0

  • Changed the name of the 'functional classes' from Storage to Adapter, e.g. StorageAmazonS3 became AdapterAmazonS3
  • Replaced introspect() by getConfiguration():AdapterConfig and getType():string
  • Added adapter class for BackBlaze B2
  • Made configuration more generic and extensible
  • Removed option to create a new Storage without configuration (StorageLocal)
  • Added default storage options that can be overruled or extended by the config object or url
  • Made slugify optional and turned it off by default for StorageLocal
  • Added API method fileExists():Promise<boolean>
  • In the configuration object or string non-existent keys or invalid values are no longer filtered out: it is the programmer's responsibility to provide valid options
  • If no bucket name is provided the bucket name will always be an empty string "", not undefined or null. Also when no bucket is selected bucketName will be "".
  • Adapter modules are only loaded when needed (using require)
  • Removed options from both configuration and adapters.
  • Formalized return values

1.3.1

  • Removed sloppy code: parsing and validation of configuration is now done in one place.
  • Removed jasmine-ts dependency

1.3.0

  • Removed getFileByteRangeAsReadable and merged the functionality in getFileAsReadable by adding a range parameter {start: number, end: number}
  • Removed the option to instantiate a specific storage type directly; all instantiating must be done with new Storage(config).
  • Optimized getFileAsReadable for Google Cloud.
  • Implemented addFileFromReadable, fixes issue#2
  • Added configuration urls: all configuration options in a single string.
  • When creating a local storage without specifying a directory, the directory where the process runs will be used (in earlier versions the os' tmp folder was used)
  • When creating a local storage without specifying a bucket name, a directory named local-bucket will be created and used as selected bucket.
  • When using new Storage() without configuration you create a local storage instance with the default configuration (as described in the 2 bullets above).
  • Updated documentation.
  • Updated dependency version.
  • Added yarn.lock.
  • Renamed 'functional classes' to 'adapter classes'

1.2.1

(Pull request #3)[tweedegolf#3]

  • Implemented sizeOf, getFileByteRangeAsReadable
  • Improved AWS performance

1.1.16

(Pull request #1)[tweedegolf#1]

  • Expanded the S3 configuration options