@dmkishi/css-reset 1.3.1 → 1.3.2

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/README.md CHANGED
@@ -18,6 +18,38 @@ CSS imports from `node_modules` requires a bundler such as Vite or
18
18
  @import '@dmkishi/css-reset/dist/reset.css' layer(reset);
19
19
  ```
20
20
 
21
+ Install without a bundler
22
+ --------------------------------------------------------------------------------
23
+ Pick one:
24
+
25
+ - CDN `<link>` (simplest). Load it before your own stylesheet:
26
+ ```html
27
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@dmkishi/css-reset@1.3.2/dist/reset.min.css">
28
+ <link rel="stylesheet" href="styles.css">
29
+ ```
30
+ - CDN `@import` with a layer. Put it before any other rules in your stylesheet:
31
+ ```css
32
+ @import url('https://cdn.jsdelivr.net/npm/@dmkishi/css-reset@1.3.2/dist/reset.min.css') layer(reset);
33
+ ```
34
+ The browser requests the reset only after your stylesheet has downloaded.
35
+ - Copy the file into your project, e.g. download the CDN URL above to
36
+ `vendor/reset.css`. Load it with `<link>` or a relative import:
37
+ ```css
38
+ @import url('vendor/reset.css') layer(reset);
39
+ ```
40
+ - npm without a bundler. This works only if your server publishes `node_modules`;
41
+ otherwise, copy the file:
42
+ ```css
43
+ @import url('/node_modules/@dmkishi/css-reset/dist/reset.css') layer(reset);
44
+ ```
45
+
46
+ ### Notes
47
+ - **Version pinning**: `@1.3.2` locks one exact version, while `@1` follows 1.x
48
+ releases. Use an exact version in production.
49
+ - **Layer order**: `<link>` can't put a stylesheet in a cascade layer; only
50
+ `@import` can. If you use other layers, declare their order first, e.g.
51
+ `@layer reset, base, components;`.
52
+
21
53
  Develop
22
54
  --------------------------------------------------------------------------------
23
55
  1. Install:
@@ -27,13 +59,19 @@ Develop
27
59
  pnpm install
28
60
  ```
29
61
  1. Edit and lint with `pnpm lint`
30
- 1. Update version numbers and changelog and commit.
62
+ 1. Update:
63
+ - **README.md**: Version numbers in the CDN URLs and add an entry to the Changelog.
64
+ - **package.json**: Version number.
31
65
  1. Publish: `git push && pnpm publish`
32
66
  - Both actions run the linter and builder as necessary.
33
67
  - If you are not logged in, `pnpm login`
34
68
 
35
69
  Changelog
36
70
  --------------------------------------------------------------------------------
71
+ ### v1.3.2 (2026-11-19)
72
+ - Add instructions for usage without a bundler.
73
+ - Improve Husky script, pre-push.
74
+
37
75
  ### v1.3.1 (2026-5-1)
38
76
  - Improve README.
39
77
 
package/dist/reset.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @dmkishi/css-reset v1.3.1
2
+ * @dmkishi/css-reset v1.3.2
3
3
  * <https://github.com/dmkishi/css-reset>
4
4
  */
5
5
  /*******************************************************************************
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmkishi/css-reset",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "DM Kishi's custom CSS reset",
5
5
  "homepage": "https://github.com/dmkishi/css-reset",
6
6
  "author": "DM Kishi <dm.kishi@gmail.com>",