Skip to content

Commit

Permalink
Update dependencies and include fixes due to breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh-ink committed Jul 6, 2021
1 parent 1b40fce commit 0883c10
Show file tree
Hide file tree
Showing 9 changed files with 4,125 additions and 4,356 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./node_modules/@magica11y/cauldron/.eslintrc.js');
module.exports = require('./node_modules/@magica11y/cauldron/.eslintrc');
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Magica11y
Copyright (c) 2019—present Magica11y

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
> Detects user’s preferences for contrast using the `prefers-contrast` CSS3 level 5 media query.
[![Travis](https://img.shields.io/travis/com/magica11y/prefers-contrast.svg?style=for-the-badge)](https://travis-ci.com/magica11y/prefers-contrast)
[![npm](https://img.shields.io/npm/v/@magica11y/prefers-contrast.svg?style=for-the-badge "NPM")](https://www.npmjs.com/package/@magica11y/prefers-contrast)
[![NPM](https://img.shields.io/npm/v/@magica11y/prefers-contrast.svg?style=for-the-badge "NPM")](https://www.npmjs.com/package/@magica11y/prefers-contrast)
[![Bundlephobia](https://img.shields.io/bundlephobia/min/@magica11y/prefers-contrast.svg?style=for-the-badge "Bundle size (minified)")](https://bundlephobia.com/result?p=@magica11y/prefers-contrast)
[![Bundlephobia](https://img.shields.io/bundlephobia/minzip/@magica11y/prefers-contrast.svg?style=for-the-badge "Bundle size (minified+gzipped)")](https://bundlephobia.com/result?p=@magica11y/prefers-contrast)
[![Coveralls](https://img.shields.io/coveralls/magica11y/prefers-contrast.svg?style=for-the-badge "Test coverage status")](https://coveralls.io/r/magica11y/prefers-contrast)
[![David](https://img.shields.io/david/magica11y/prefers-contrast.svg?style=for-the-badge "Dependencies")](https://david-dm.org/magica11y/prefers-contrast)
[![David](https://img.shields.io/david/dev/magica11y/prefers-contrast.svg?style=for-the-badge "Dev Dependencies")](https://david-dm.org/magica11y/prefers-contrast?type=dev)
[![node](https://img.shields.io/node/v/@magica11y/prefers-contrast.svg?style=for-the-badge "Node engine")](https://www.npmjs.com/package/@magica11y/prefers-contrast)
[![Coveralls](https://img.shields.io/coveralls/github/magica11y/prefers-contrast.svg?style=for-the-badge "Test coverage status")](https://coveralls.io/github/magica11y/prefers-contrast)
[![David DM](https://img.shields.io/david/magica11y/prefers-contrast.svg?style=for-the-badge "Dependencies")](https://david-dm.org/magica11y/prefers-contrast)
[![David DM](https://img.shields.io/david/dev/magica11y/prefers-contrast.svg?style=for-the-badge "Dev Dependencies")](https://david-dm.org/magica11y/prefers-contrast?type=dev)
[![NodeJS](https://img.shields.io/node/v/@magica11y/prefers-contrast.svg?style=for-the-badge "Node engine")](https://www.npmjs.com/package/@magica11y/prefers-contrast)
[![License](https://img.shields.io/github/license/magica11y/prefers-contrast.svg?style=for-the-badge "MIT license")](LICENSE.md)
![Greenkeeper](https://badges.greenkeeper.io/magica11y/prefers-contrast.svg?style=flat-square "Greenkeeper")
[![Snyk](https://img.shields.io/snyk/vulnerabilities/github/magica11y/prefers-contrast?style=for-the-badge "Snyk vulnerabilities status")](https://snyk.io/test/github/magica11y/prefers-contrast?targetFile=package.json)

[![Magica11y cover](https://cdn.jsdelivr.net/gh/magica11y/[email protected]/assets/Magica11y-cover.jpg "Magica11y cover")](https://magica11y.github.io)

Expand Down Expand Up @@ -84,7 +84,7 @@ const useHighContrastColorScheme = (contrastPreference === prefersContrast.contr
… or as an ES module…

```js
import prefersContrast, { contrastPreferences } from 'magica11y/prefersContrast';
import prefersContrast, { contrastPreferences } from '@magica11y/prefersContrast';

const contrastPreference = prefersContrast();
const useHighContrastColorScheme = (contrastPreference === contrastPreferences.HIGH);
Expand Down Expand Up @@ -131,6 +131,6 @@ type (i.e. `ContrastPreference`). So using the `?` prefix to indicate nullable t

See [LICENSE.md](LICENSE.md) for more details.

Handcrafted with :heart: by [Rishabh Rao](https://github.com/rishabhsrao).
Handcrafted with:heart:by [Rishabh](https://rishabh.ink).

[![Twitter](https://img.shields.io/twitter/follow/rishabhsrao.svg?style=social)](https://twitter.com/rishabhsrao)
[![Twitter](https://img.shields.io/twitter/follow/rishabh_ink.svg?style=social)](https://twitter.com/rishabh_ink)
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// See https://babeljs.io/docs/en/configuration

module.exports = require('./node_modules/@magica11y/cauldron/babel.config.js');
module.exports = require('./node_modules/@magica11y/cauldron/babel.config');
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// See https://jestjs.io/docs/en/configuration.html

module.exports = require('./node_modules/@magica11y/cauldron/jest.config.js');
module.exports = require('./node_modules/@magica11y/cauldron/jest.config');
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
"lib"
],
"dependencies": {
"@magica11y/cauldron": "^1.0.11"
"@magica11y/cauldron": "^1.0.17"
},
"devDependencies": {
"webpack-merge": "^4.2.1"
"webpack-merge": "^5.8.0"
}
}
2 changes: 1 addition & 1 deletion prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// See https://prettier.io/docs/en/configuration.html

module.exports = require('./node_modules/@magica11y/cauldron/prettier.config.js');
module.exports = require('./node_modules/@magica11y/cauldron/prettier.config');
12 changes: 7 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// See https://webpack.js.org/configuration

const cauldronWebpackConfig = require('@magica11y/cauldron/webpack.config.js');
const cauldronWebpackConfig = require('@magica11y/cauldron/webpack.config');
const path = require('path');
const webpackMerge = require('webpack-merge');
const { customizeObject, mergeWithCustomize } = require('webpack-merge');

const webpackMergeWithStrategy = webpackMerge.strategy({
entry: 'replace',
const webpackMergeWithCustomization = mergeWithCustomize({
customizeObject: customizeObject({
entry: 'replace',
}),
});

module.exports = webpackMergeWithStrategy(cauldronWebpackConfig, {
module.exports = webpackMergeWithCustomization(cauldronWebpackConfig, {
entry: {
prefersContrast: './src',
},
Expand Down
Loading

0 comments on commit 0883c10

Please sign in to comment.