plurly 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 +8 -0
- package/README.md +10 -1
- package/package.json +5 -2
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 full release: pluralize and singularize English words.
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://www.npmjs.com/package/plurly?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/plurly"><img src="https://img.shields.io/npm/types/plurly" alt="TypeScript types included"></a>
|
|
12
12
|
<a href="LICENSE"><img src="https://img.shields.io/npm/l/plurly" alt="MIT license"></a>
|
|
13
|
-
<a href="
|
|
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>
|
|
@@ -34,6 +34,13 @@ singular("Categories"); // "Category"
|
|
|
34
34
|
count(3, "file"); // "3 files"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
<p align="center">
|
|
38
|
+
<picture>
|
|
39
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ckgiri/plurly/main/docs/plurly-preview-dark.png">
|
|
40
|
+
<img src="https://raw.githubusercontent.com/ckgiri/plurly/main/docs/plurly-preview.png" alt="Two tables: plural() turns person into people, category into categories, child into children, API into APIs and userProfile into userProfiles, and keeps data as data; count() gives no files, 1 file, 3 files, 1,200 people and 1,20,000 rupees." width="100%">
|
|
41
|
+
</picture>
|
|
42
|
+
</p>
|
|
43
|
+
|
|
37
44
|
## ✨ Features
|
|
38
45
|
|
|
39
46
|
- 🔤 **Plural and singular**: regular words, irregular words (child → children) and Latin and Greek forms (criterion → criteria)
|
|
@@ -169,6 +176,8 @@ npm install
|
|
|
169
176
|
npm test
|
|
170
177
|
```
|
|
171
178
|
|
|
179
|
+
[CONTRIBUTING.md](CONTRIBUTING.md) covers setup, the project layout and the rules that keep plurly reliable. Questions and ideas are welcome in [Discussions](https://github.com/ckgiri/plurly/discussions), and everyone taking part follows the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
180
|
+
|
|
172
181
|
## Changelog
|
|
173
182
|
|
|
174
183
|
See [CHANGELOG.md](CHANGELOG.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plurly",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Pluralize and singularize English words, with TypeScript types, acronyms (API → APIs), case keeping and counts (\"3 files\"). A drop-in for the pluralize API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pluralize",
|
|
@@ -56,7 +56,10 @@
|
|
|
56
56
|
"build": "tsup",
|
|
57
57
|
"test": "vitest run",
|
|
58
58
|
"typecheck": "tsc -p .",
|
|
59
|
-
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
59
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build",
|
|
60
|
+
"release": "npm version patch && git push --follow-tags",
|
|
61
|
+
"release:minor": "npm version minor && git push --follow-tags",
|
|
62
|
+
"release:major": "npm version major && git push --follow-tags"
|
|
60
63
|
},
|
|
61
64
|
"devDependencies": {
|
|
62
65
|
"@types/node": "^20.14.0",
|