Skip to content

Commit

Permalink
Merge pull request #929 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain authored Jun 8, 2022
2 parents f78f38f + e36e123 commit f3d66e7
Show file tree
Hide file tree
Showing 83 changed files with 569 additions and 355 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ jobs:
run: |
npm run test:smoke
npm run test
# npm run testb
npm run test:one
npm run test:two
npm run test:three
npm run testb
npm run test:plugins
# npm run perf
# npm run test:types
# npm run test:stress
4 changes: 2 additions & 2 deletions builds/compromise.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions builds/one/compromise-one.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions builds/one/compromise-one.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions builds/three/compromise-three.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions builds/three/compromise-three.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions builds/two/compromise-two.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions builds/two/compromise-two.mjs

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
compromise uses semver, and pushes to npm frequently

(github-releases occasionally)
compromise uses semver, and pushes to npm and github frequently

- **Major** is a breaking api change - method or response changes that can cause runtime errors.
- **Minor** is a behaviour change - Tagging or grammar changes.
- **Patch** is an obvious, non-controversial bugfix.

While all _Major_ releases should be reviewed, our only two _large_ releases are **v6** in 2016 and and **v12** in 2019. Others have been mostly incremental, or niche.
While all _Major_ releases should be reviewed, our only _large_ releases are **v6** in 2016 **v12** in 2019 and **v14** in 2022. Others have been mostly incremental.

<!-- #### [Unreleased]
-->

#### 14.3.0 [June 2021]
- **[fix]** - unwanted logging in compromise/one
- **[fix]** - dependency export path for react-native builds #928
- **[change]** - split hyphenated words in match syntax 'foo-bar'
- **[change]** - support 4-digit number-ranges (when not a phone number)
_plugin-releases_: dates

#### 14.2.1 [June 2021]
- **[fix]** - double-contraction issue #935
- **[fix]** - double-contraction issue #925
- **[fix]** - .not() memleak #926

#### 14.2.0 [June 2021]
Expand Down
117 changes: 0 additions & 117 deletions changes.md

This file was deleted.

2 changes: 1 addition & 1 deletion data/lexicon/nouns/organizations.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//just a few named-organizations
//no acronyms needed. no product/brand pollution.
export default [
'abc',
// 'abc',
'academy of sciences',
'acer',
'activision blizzard',
Expand Down
1 change: 1 addition & 0 deletions data/lexicon/nouns/singulars.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ export default [
'perspective',
'incentive',
'parish',
'tv',
]


3 changes: 3 additions & 0 deletions data/lexicon/switches/adj-noun.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ export default [
'commercial',
'companion',
'complex',
'classic',
'concrete',
'constituent',
'contemporary',
'convertable',
'cooperative',
'crude',
'demographic',
'derivative',
'elder',
'elite',
'epic',
'excess',
'expert',
'executive',
Expand Down
1 change: 1 addition & 0 deletions data/lexicon/switches/noun-verb.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export default [
'dislike',
'display',
'dive',
'dispute',
'divorce',
'document',
'dodge',
Expand Down
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Spencer Kelly <[email protected]> (http://spencermounta.in)",
"name": "compromise",
"description": "modest natural language processing",
"version": "14.2.1",
"version": "14.3.0",
"main": "./src/three.js",
"unpkg": "./builds/compromise.js",
"type": "module",
Expand Down Expand Up @@ -90,17 +90,17 @@
},
"dependencies": {
"efrt": "2.6.0",
"grad-school": "0.0.4",
"grad-school": "0.0.5",
"suffix-thumb": "4.0.2"
},
"devDependencies": {
"@rollup/plugin-alias": "3.1.9",
"@rollup/plugin-node-resolve": "13.3.0",
"amble": "1.3.0",
"eslint": "8.16.0",
"eslint": "8.17.0",
"eslint-plugin-regexp": "1.7.0",
"nlp-corpus": "4.3.0",
"rollup": "2.75.5",
"rollup": "2.75.6",
"rollup-plugin-filesize-check": "0.0.1",
"rollup-plugin-terser": "7.0.2",
"shelljs": "0.8.5",
Expand All @@ -114,4 +114,4 @@
"_tests/**"
],
"license": "MIT"
}
}
1 change: 1 addition & 0 deletions plugins/dates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ doc.dates().get()[0]
- **.times()** - find day-times like `three oclock`
- **.times().get()** - parsed times as json
- **.times().json()** - overloaded json output with time metadata
- **.times().format(fmt)** - convert between time formats '24h' | '{hour-pad}:{minute-pad}' [etc](https://github.com/spencermountain/spacetime/wiki/Formatting)
- **.times().normalize()** - turn 3mins into 3 minutes


Expand Down
Loading

0 comments on commit f3d66e7

Please sign in to comment.