New Upstream Release - node-irregular-plurals
Ready changes
Summary
Merged new upstream version: 3.5.0 (was: 3.4.0).
Diff
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..6313b56
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* text=auto eol=lf
diff --git a/.github/funding.yml b/.github/funding.yml
new file mode 100644
index 0000000..25e9329
--- /dev/null
+++ b/.github/funding.yml
@@ -0,0 +1,4 @@
+github: sindresorhus
+open_collective: sindresorhus
+tidelift: npm/irregular-plurals
+custom: https://sindresorhus.com/donate
diff --git a/.github/security.md b/.github/security.md
new file mode 100644
index 0000000..5358dc5
--- /dev/null
+++ b/.github/security.md
@@ -0,0 +1,3 @@
+# Security Policy
+
+To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..18531b3
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,23 @@
+name: CI
+on:
+ - push
+ - pull_request
+jobs:
+ test:
+ name: Node.js ${{ matrix.node-version }}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version:
+ - 14
+ - 12
+ - 10
+ - 8
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - run: npm install
+ - run: npm test
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..239ecff
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+node_modules
+yarn.lock
diff --git a/debian/changelog b/debian/changelog
index 8c91a97..f433eaf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+node-irregular-plurals (3.5.0-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+ * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk> Tue, 14 Mar 2023 03:34:55 -0000
+
node-irregular-plurals (3.3.0-1) unstable; urgency=medium
* Team upload
diff --git a/debian/patches/switch-test-to-tape.patch b/debian/patches/switch-test-to-tape.patch
index bfc7b75..1dac3ee 100644
--- a/debian/patches/switch-test-to-tape.patch
+++ b/debian/patches/switch-test-to-tape.patch
@@ -4,8 +4,10 @@ Forwarded: not-needed
Reviewed-By: Xavier Guimard <yadd@debian.org>
Last-Update: 2019-12-02
---- a/test.js
-+++ b/test.js
+Index: node-irregular-plurals.git/test.js
+===================================================================
+--- node-irregular-plurals.git.orig/test.js
++++ node-irregular-plurals.git/test.js
@@ -1,9 +1,10 @@
-import test from 'ava';
-import irregularPlurals from '.';
@@ -18,8 +20,8 @@ Last-Update: 2019-12-02
+ t.end();
});
- test('isolated', t => {
-@@ -14,4 +15,5 @@
+ test.failing('isolated', t => {
+@@ -14,4 +15,5 @@ test.failing('isolated', t => {
t.false(fresh1.has('calf'));
t.true(fresh2.has('calf'));
t.true(irregularPlurals.has('calf'));
diff --git a/index.js b/index.js
index 0fe9f48..12b6ae0 100644
--- a/index.js
+++ b/index.js
@@ -1,9 +1,4 @@
'use strict';
const irregularPlurals = require('./irregular-plurals.json');
-// Ensure nobody can modify each others Map
-Object.defineProperty(module, 'exports', {
- get() {
- return new Map(Object.entries(irregularPlurals));
- }
-});
+module.exports = new Map(Object.entries(irregularPlurals));
diff --git a/irregular-plurals.json b/irregular-plurals.json
index 0690a62..3d14de1 100644
--- a/irregular-plurals.json
+++ b/irregular-plurals.json
@@ -4,6 +4,7 @@
"alga": "algae",
"alumna": "alumnae",
"alumnus": "alumni",
+ "alveolus": "alveoli",
"amoeba": "amoebae",
"analysis": "analyses",
"antenna": "antennae",
@@ -14,6 +15,7 @@
"axis": "axes",
"bacillus": "bacilli",
"bacterium": "bacteria",
+ "baculum": "bacula",
"barracks": "barracks",
"basis": "bases",
"beau": "beaux",
@@ -22,19 +24,23 @@
"bureau": "bureaus",
"cactus": "cacti",
"calf": "calves",
+ "carcinoma": "carcinomata",
"carp": "carp",
"census": "censuses",
"chassis": "chassis",
"cherub": "cherubim",
"child": "children",
"château": "châteaus",
+ "cloaca": "cloacae",
"cod": "cod",
"codex": "codices",
"concerto": "concerti",
+ "consortium": "consortia",
"corpus": "corpora",
"crisis": "crises",
"criterion": "criteria",
"curriculum": "curricula",
+ "cystoma": "cystomata",
"datum": "data",
"deer": "deer",
"diagnosis": "diagnoses",
@@ -57,15 +63,21 @@
"fungus": "fungi",
"gallows": "gallows",
"genus": "genera",
+ "glomerulus": "glomeruli",
"goose": "geese",
"graffito": "graffiti",
"grouse": "grouse",
"half": "halves",
+ "hamulus": "hamuli",
"hero": "heroes",
+ "hippopotamus": "hippopotami",
"hoof": "hooves",
"hovercraft": "hovercraft",
"hypothesis": "hypotheses",
+ "iliac": "ilia",
+ "incubus": "incubi",
"index": "indices",
+ "interstitium": "interstitia",
"kakapo": "kakapo",
"knife": "knives",
"larva": "larvae",
@@ -73,13 +85,15 @@
"libretto": "libretti",
"life": "lives",
"loaf": "loaves",
+ "loculus": "loculi",
"locus": "loci",
"louse": "lice",
"man": "men",
"matrix": "matrices",
"means": "means",
- "medium": "media",
+ "measles": "measles",
"media": "media",
+ "medium": "media",
"memorandum": "memoranda",
"millennium": "millennia",
"minutia": "minutiae",
@@ -89,9 +103,12 @@
"nemesis": "nemeses",
"neurosis": "neuroses",
"news": "news",
+ "nucleolus": "nucleoli",
"nucleus": "nuclei",
"oasis": "oases",
+ "occiput": "occipita",
"offspring": "offspring",
+ "omphalos": "omphaloi",
"opus": "opera",
"ovum": "ova",
"ox": "oxen",
@@ -103,17 +120,21 @@
"pike": "pike",
"polyhedron": "polyhedra",
"potato": "potatoes",
+ "primus": "primi",
"prognosis": "prognoses",
"quiz": "quizzes",
"radius": "radii",
"referendum": "referenda",
"salmon": "salmon",
"scarf": "scarves",
+ "scrotum": "scrota",
"self": "selves",
+ "seminoma": "seminomata",
"series": "series",
"sheep": "sheep",
"shelf": "shelves",
"shrimp": "shrimp",
+ "simulacrum": "simulacra",
"soliloquy": "soliloquies",
"spacecraft": "spacecraft",
"species": "species",
@@ -122,19 +143,25 @@
"stimulus": "stimuli",
"stratum": "strata",
"swine": "swine",
+ "syconium": "syconia",
"syllabus": "syllabi",
"symposium": "symposia",
"synopsis": "synopses",
"synthesis": "syntheses",
"tableau": "tableaus",
+ "testis": "testes",
"that": "those",
"thesis": "theses",
"thief": "thieves",
"this": "these",
+ "thrombus": "thrombi",
"tomato": "tomatoes",
"tooth": "teeth",
+ "torus": "tori",
"trout": "trout",
"tuna": "tuna",
+ "umbilicus": "umbilici",
+ "uterus": "uteri",
"vertebra": "vertebrae",
"vertex": "vertices",
"veto": "vetoes",
diff --git a/package.json b/package.json
index 52221c9..62aa5fb 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "irregular-plurals",
- "version": "3.3.0",
+ "version": "3.5.0",
"description": "Map of nouns to their irregular plural form",
"license": "MIT",
"repository": "sindresorhus/irregular-plurals",
@@ -13,7 +13,8 @@
"node": ">=8"
},
"scripts": {
- "test": "xo && ava && tsd"
+ "//test": "xo && ava && tsd",
+ "test": "ava"
},
"files": [
"index.js",
@@ -38,6 +39,11 @@
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
+ "xo": {
+ "rules": {
+ "import/extensions": "off"
+ }
+ },
"tsd": {
"compilerOptions": {
"resolveJsonModule": true
diff --git a/test.js b/test.js
index 87e87da..a6faf89 100644
--- a/test.js
+++ b/test.js
@@ -6,7 +6,7 @@ test('main', t => {
t.is(irregularPlurals.get('calf'), 'calves');
});
-test('isolated', t => {
+test.failing('isolated', t => {
const fresh1 = require('.');
const fresh2 = require('.');