@igorkowalczyk/is-browser 1.0.1 → 2.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.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/package.json +39 -34
  3. package/readme.md +4 -3
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- const plugin = require("tailwindcss/plugin");
1
+ import plugin from "tailwindcss/plugin";
2
2
 
3
- module.exports = plugin(function ({ addVariant }) {
3
+ export default plugin(function ({ addVariant }) {
4
4
  addVariant("firefox", "@-moz-document url-prefix()");
5
5
  });
package/package.json CHANGED
@@ -1,35 +1,40 @@
1
1
  {
2
- "name": "@igorkowalczyk/is-browser",
3
- "version": "1.0.1",
4
- "description": "🏔️ Add support for browser specific variants in Tailwind.css",
5
- "main": "index.js",
6
- "scripts": {
7
- "format": "prettier --write . --ignore-unknown",
8
- "format:check": "prettier --check .",
9
- "test": "echo \"Error: no test specified\" && exit 1"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/IgorKowalczyk/is-browser.git"
14
- },
15
- "keywords": [
16
- "tailwindcss",
17
- "react",
18
- "firefox",
19
- "chrome"
20
- ],
21
- "author": "Igor Kowalczyk",
22
- "license": "MIT",
23
- "bugs": {
24
- "url": "https://github.com/IgorKowalczyk/is-browser/issues"
25
- },
26
- "homepage": "https://github.com/IgorKowalczyk/is-browser#readme",
27
- "devDependencies": {
28
- "prettier": "^2.6.2",
29
- "tailwindcss": "^3.1.2",
30
- "prettier-plugin-tailwindcss": "^0.1.11"
31
- },
32
- "files": [
33
- "index.js"
34
- ]
35
- }
2
+ "name": "@igorkowalczyk/is-browser",
3
+ "version": "2.0.1",
4
+ "description": "🏔️ Add support for browser specific variants in Tailwind.css",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/IgorKowalczyk/is-browser.git"
10
+ },
11
+ "keywords": [
12
+ "tailwindcss",
13
+ "react",
14
+ "firefox",
15
+ "chrome"
16
+ ],
17
+ "author": "Igor Kowalczyk",
18
+ "license": "MIT",
19
+ "bugs": {
20
+ "url": "https://github.com/IgorKowalczyk/is-browser/issues"
21
+ },
22
+ "homepage": "https://github.com/IgorKowalczyk/is-browser#readme",
23
+ "devDependencies": {
24
+ "prettier": "^2.8.1",
25
+ "prettier-plugin-tailwindcss": "^0.2.1",
26
+ "tailwindcss": "^3.2.4"
27
+ },
28
+ "peerDependencies": {
29
+ "tailwindcss": "^3.0"
30
+ },
31
+ "files": [
32
+ "index.js"
33
+ ],
34
+ "packageManager": "pnpm@7.19.0",
35
+ "scripts": {
36
+ "format": "prettier --write . --ignore-unknown",
37
+ "format:check": "prettier --check .",
38
+ "test": "echo \"Error: no test specified\" && exit 1"
39
+ }
40
+ }
package/readme.md CHANGED
@@ -40,9 +40,10 @@ Style your components using `{browser_name}:{class}`, e.g. `firefox:bg-red-100`,
40
40
  ```
41
41
 
42
42
  ## 🔐 Supported browsers
43
- | Browser | Browser Version(s) | Variant | CSS Property |
44
- | --- | --- | --- | --- |
45
- | Firefox | `1.5 – 61` | `firefox:` | `@-moz-document url-prefix()` |
43
+
44
+ | Browser | Browser Version(s) | Variant | CSS Property |
45
+ | ------- | ------------------ | ---------- | ----------------------------- |
46
+ | Firefox | `All (Gecko)` | `firefox:` | `@-moz-document url-prefix()` |
46
47
 
47
48
  ## ⁉️ Issues
48
49