Socket
Socket
Sign inDemoInstall

compromise

Package Overview
Dependencies
Maintainers
2
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compromise - npm Package Compare versions

Comparing version 13.0.0-rc1 to 13.0.0

9

changelog.md

@@ -19,2 +19,3 @@ compromise uses semver, and pushes to npm frequently

- **[breaking]** `.match('foo [bar]')` no-longer returns 'bar'. (use `.match('foo [bar]', 0)`)
- **[breaking]** capture groups are no longer merged. `.match('[foo] [bar]')` returns two groups accessible with the new `.groups()` function
- **[breaking]** change `.sentences()` method to return only full-sentences of matches (use `.all()` instead)

@@ -26,6 +27,6 @@

- fix issues with greedy capture [*] and [.+] -(@Drache93) 💛
- add whitespace properties (pre+post) to default json output (suppress with `.json({whitespace:false})`)
- `.lookup({key:val})` with an object now returns an object back ({val: Doc})
- add whitespace properties (pre+post) to default json output (suppress with `.json({ whitespace: false })`)
- `.lookup({ key: val })` with an object now returns an object back ({val: Doc})
- add nlp constructor as a third param to `.extend()`
- support lexicon object param in tokenize - `.tokenize('my word', {word:'tag'})`
- support lexicon object param in tokenize - `.tokenize('my word', { word: 'tag' })`
- clean-up of scripts and tooling

@@ -38,3 +39,3 @@ - improved typescript types

- add new named-match syntax, with .byName() method (@Drache93)
- add new named-match syntax, with .groups() method (@Drache93)
- add `nlp.fromJSON()` method

@@ -41,0 +42,0 @@ - add a new `compromise-tokenize.js` build, without the tagger, or data included.

@@ -5,3 +5,3 @@ {

"description": "modest natural language processing",
"version": "13.0.0-rc1",
"version": "13.0.0",
"main": "./builds/compromise.js",

@@ -8,0 +8,0 @@ "unpkg": "./builds/compromise.min.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc