css-prefers-color-scheme 8.0.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +3 -3
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -138,11 +138,11 @@ or
|
|
|
138
138
|
|
|
139
139
|
```html
|
|
140
140
|
<!-- When using a CDN url you will have to manually update the version number -->
|
|
141
|
-
<script src="https://unpkg.com/css-prefers-color-scheme@8.0.
|
|
141
|
+
<script src="https://unpkg.com/css-prefers-color-scheme@8.0.1/dist/browser-global.js"></script>
|
|
142
142
|
<script>prefersColorSchemeInit()</script>
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
⚠️ Please use a versioned url, like this : `https://unpkg.com/css-prefers-color-scheme@8.0.
|
|
145
|
+
⚠️ Please use a versioned url, like this : `https://unpkg.com/css-prefers-color-scheme@8.0.1/dist/browser-global.js`
|
|
146
146
|
Without the version, you might unexpectedly get a new major version of the library with breaking changes.
|
|
147
147
|
|
|
148
148
|
[Prefers Color Scheme] works in all major browsers, including Safari 6+ and
|
|
@@ -216,7 +216,7 @@ const prefersColorScheme = prefersColorSchemeInit('light', { debug: true });
|
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
```html
|
|
219
|
-
<script src="https://unpkg.com/css-prefers-color-scheme@8.0.
|
|
219
|
+
<script src="https://unpkg.com/css-prefers-color-scheme@8.0.1/dist/browser-global.js"></script>
|
|
220
220
|
<script>prefersColorSchemeInit('light', { debug: true })</script>
|
|
221
221
|
```
|
|
222
222
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "css-prefers-color-scheme",
|
|
3
3
|
"description": "Use light and dark color schemes in all browsers",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.1",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Antonio Laguna",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"types": "dist/index.d.ts",
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
33
34
|
"import": "./dist/index.mjs",
|
|
34
35
|
"require": "./dist/index.cjs",
|
|
35
36
|
"default": "./dist/index.mjs"
|