This file documents all version releases.
Docs
- Fix README.md image URLs to work fine in NPM
Docs
- Add a pure JavaScript example to REAME.md
Features
- Add JSDoc comments to all exported functions
Fixes
- Improve documentation organization and clarity
Fixes
- Improve documentation readability
The library was completely refactored, new functionality was added and several improvements were made in the documentation.
Fixes
- Check image type using the blob type instead of the image source
- Throw error if try to copy an unsupported type of image
Features
- Create function to copy blob to clipboard.
- Create function to get blob from image element.
- Create function to get blob from image source.
- Create function to convert blob to PNG.
- Create function to create image element with the desired source.
- Create function to check if a blob is a PNG image.
- Create function to check if a blob is a JPEG image.
- Create function to check if can copy images to clipboard.
- Create function to check if the permission to write data on clipboard was granted.
Braking Changes
- Build source code to ES6 instead of ES5.
- Remove default export. The library uses only named exports now.
Improvements For Developers
- Create automated tests with jest.
- Setup RollupJs to build the source code to multiple target environments.
- Use
tsc
to generate only type declarations. - Setup husky + lint-staged to run commands on every commit.
- Create the
src/index.html
file to test changes while developing. - Remove "any" types and define all types explicitly
Fixes
- Improve documentation
This is the first version of the library that includes the function to copy JPG and PNG images to clipboard.