Skip to content

Releases: KenEucker/imgur

v1.1.0

08 Dec 02:20
8291078
Compare
Choose a tag to compare

1.1.0 (2021-12-08)

Bug Fixes

  • accidentally used the old code (1203414)
  • account: fixes minor issues and runs the linter (c5ef99a)
  • build: builds latest changes (e362ee9)
  • client: updates the fetchers to only include the user agent header if not running in browser (1eddf76)
  • lib: removes live (8acefdf)

Features

  • account: adds account methods for retrieving account information, album information, album ids (a76477b)
  • src: new build for release (7207f57)

v1.0.1

08 Dec 01:14
9eb4eca
Compare
Choose a tag to compare

1.0.1 (2021-12-08)

Bug Fixes

  • build: updates scripts and some names (56443a3)

v1.0.0

08 Dec 00:46
d4499ab
Compare
Choose a tag to compare

1.0.0 (2021-12-08)

Bug Fixes

  • removes references to next branch (adf12d9)
  • _imgurrequest: fix logical check for credits/search (bb1c8ba), closes #59
  • authorize.ts: adds eslint ignore for an explicit any in the test mock for authorization (f4ec54b)
  • scripts: updates to scripts (9340c2e)
  • search: fix json response (333aadd)
  • searchgallery: make searchGallery method accessible from client (08dd33f)
  • src/image: resolves issues with uploads by adding form.getHeaders when sending formData w/axios (a3c5a53)
  • utils: resolves issue with url uploads (bbaa974)
  • fix authorization flow (7959f3c)
  • fix cli utility and incorrect references to .data (5862a76)
  • fix types (a8deffe)

Code Refactoring

  • src: replaces got with axios, package is now compatible with both the browser and nodejs (a239e38)
  • initial impl of ImgurClient class (1609940)
  • authorization: remove built-in authorization flow (f7610ff), closes #115

Features

  • album: add getAlbum (00bb0bd)
  • add deleteImage (0488d7b)
  • add favoriteImage (251a970)
  • add getGallery() (35dcad6)
  • add getSubredditGallery() (c72abcb)
  • add searchGallery() (3f058ed)
  • add updateImage (5a767c7)
  • initial reimplementation of the upload method (eeba909)
  • favoriteimage: adds functionality to favorite an image (48ba7b0)
  • getgalleryinfo: added a new method getGalleryInfo for retrieving gallery information (2ad7f51)
  • getgalleryinfo: added tests and handler mocks for getGalleryInfo (c6ee364)
  • setaccesstoken: adding a new method setAccessToken to set the access token externally (a5ac3d2)
  • updateinfo: added the updateInfo method and included a new test file for this method (42e71f2)
  • updateinfo: addressing requested changes for #112, added code for update operation (49dcf0f)

Reverts

  • Revert "refactor(authorization): remove built-in authorization flow" (6cd8643)

  • refactor!: remove globbing from uploadFile (f09f017)

BREAKING CHANGES

  • src: The package can no longer be used with string path variables pointing to local
    files. This moves a single line of code, using fs.createReadStream, out of the project and places
    that responsibility on the consumer. The package now supports streams in favor of the string
    filepath upload.
  • ImgurClient class replaces imgur object
  • authorization: Imgur no longer supports the Resource Owner Password Credentials Grant type,
    so the outdated (i.e., broken) code that requires your username and password has been removed.
    You must now manage the Authorization Code Grant type flow yourself to obtain an access token
    via server redirect/callback and then provide it to this module via setAccessToken
  • uploadFile no longer accepts a glob pattern. It now
    accepts either a single image path or an array of image paths. If you
    must glob, do it yourself and then pass in the array. This removes an
    unnecessary complexity from the most important method.