3.0.0 (2021-03-21)
- improve color prop parsing (8b74dbd)
- types: Removes the
VueAccessibleColorPicker
namespace from types. - Changes the default color format from
'rgb'
to'hsl'
. To upgrade without changing this in your application, you can pass'rgb'
to thedefaultFormat
prop. - Updates browser support on account of using
Object.fromEntries
. Most notably, Edge using the EdgeHTML engine and Safari versions before 12.2 are no longer supported. Please refer to the README.md file for the complete list.
2.1.0 (2021-03-21)
- set different default format via prop (4291e05)
2.0.0 (2021-01-17)
- migrate to Vue.js version 3 (26b8eb2)
- Migrates this package to use and be compatible with Vue.js 3. Upcoming versions of this package therefor no longer support Vue.js 2. Use the new application instance APIs to register components via
app.component
. The README.md file was updated to take these changes into account. Detailed instructions on the the general migration process to Vue.js 3 can be found in the Vue 3 migration guide. - Deprecates global component registration via side effect.
- Renames type
SupportedColorFormat
toColorFormat
. - Removes type
ColorChannel
because it’s not a useful type.
Adds the vue package (vue@^3.x
) as a peer dependency.
Removes some tests from index.test.js because they were testing the behavior of Vue.js itself rather than that of the index.js file.
1.1.2 (2020-12-20)
-
package: bundle dist files (9b15741)
Fixes the dist files missing from the published npm package. It seems that the
files
field in the package.json must not contain paths that start with./
.
1.1.1 (2020-12-20)
Note: This version cannot be used. Use version 1.1.2 instead.
Due to an issue with the package.json file’s files
field, version 1.1.1 does not include the dist files in the published npm package. The issue was fixed in 9b15741 and a new version of the package was released.
-
package: add exports and module fields to package.json (5a9eda3)
Adds the “exports” and “module” fields to the package.json file. Their values refer to the package’s main entry point (i.e.
./dist/vue-accessible-color-picker.js
).
Note: This version cannot be used. Use version 1.1.2 instead.
Due to an issue with the package.json file’s files
field, version 1.1.0 does not include the dist files in the published npm package. The issue was fixed in 9b15741 and a new version of the package was released.
-
types: add basic type definitions (37b425e)
Adds type definitions file index.d.ts within the types directory and moves existing JSDoc-based type definitions into this file.
Points the types field in the package.json file to the newly added type definition file and adds it to the bundled package files.
Configures the project to check JavaScript for TypeScript errors via a jsconfig.json file in the project’s root directory.
Adds type annotations to several parts of the codebase.
-
import: safe-guard Vue.use call (b4b829a)
Adds an additional check to the index.js side effect that causes Vue.use only to be called when it is a function.