mailsure 1.0.0 → 1.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.1
4
+
5
+ No changes to how the library behaves; upgrading is safe.
6
+
7
+ - README: a picture of the library in action, and links to the new contributing guide, Discussions and Code of Conduct.
8
+ - The project is open to contributors: contributing guide, code of conduct, security policy, and issue and pull request templates.
9
+ - Added a GitHub Actions workflow that publishes new versions to npm with provenance.
10
+
3
11
  ## 1.0.0
4
12
 
5
13
  First stable release. mailsure checks email addresses at signup, with no dependencies.
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  <a href="https://www.npmjs.com/package/mailsure?activeTab=dependencies"><img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="zero dependencies"></a>
11
11
  <a href="https://www.npmjs.com/package/mailsure"><img src="https://img.shields.io/npm/types/mailsure" alt="TypeScript types included"></a>
12
12
  <a href="LICENSE"><img src="https://img.shields.io/npm/l/mailsure" alt="MIT license"></a>
13
- <a href="https://github.com/ckgiri/mailsure/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen" alt="contributions welcome"></a>
13
+ <a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen" alt="contributions welcome"></a>
14
14
  </p>
15
15
 
16
16
  <p>
@@ -31,6 +31,13 @@ check("ana@gmial.com").suggestion
31
31
  // → "ana@gmail.com"
32
32
  ```
33
33
 
34
+ <p align="center">
35
+ <picture>
36
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ckgiri/mailsure/main/docs/mailsure-preview-dark.png">
37
+ <img src="https://raw.githubusercontent.com/ckgiri/mailsure/main/docs/mailsure-preview.png" alt="A signup form where the email rahul.sharma@gmial.com shows the hint: Did you mean rahul.sharma@gmail.com? Next to it, check() results: yahoo.co.ni and outlok.com get suggestions, mailinator.com is disposable, admin@ is a role address, amit..k@gmail.com is invalid, and a rediffmail.com address looks good." width="100%">
38
+ </picture>
39
+ </p>
40
+
34
41
  ## ✨ Features
35
42
 
36
43
  - ✅ **Practical syntax checks**: the parts of RFC 5321/5322 that real mail servers accept, with a clear reason when an address fails
@@ -253,6 +260,8 @@ npm install
253
260
  npm test
254
261
  ```
255
262
 
263
+ [CONTRIBUTING.md](CONTRIBUTING.md) covers setup, the project layout and the rules that keep mailsure reliable. Questions and ideas are welcome in [Discussions](https://github.com/ckgiri/mailsure/discussions), and everyone taking part follows the [Code of Conduct](CODE_OF_CONDUCT.md).
264
+
256
265
  ## Changelog
257
266
 
258
267
  See [CHANGELOG.md](CHANGELOG.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailsure",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A lightweight, zero-dependency library to check email addresses at signup: syntax, typo suggestions (gmial.com → gmail.com), disposable, role and free addresses, and optional MX checks.",
5
5
  "keywords": [
6
6
  "email",
@@ -71,7 +71,10 @@
71
71
  "build": "tsup",
72
72
  "test": "vitest run",
73
73
  "typecheck": "tsc -p .",
74
- "prepublishOnly": "npm run typecheck && npm test && npm run build"
74
+ "prepublishOnly": "npm run typecheck && npm test && npm run build",
75
+ "release": "npm version patch && git push --follow-tags",
76
+ "release:minor": "npm version minor && git push --follow-tags",
77
+ "release:major": "npm version major && git push --follow-tags"
75
78
  },
76
79
  "devDependencies": {
77
80
  "@types/node": "^20.14.0",