Skip to content

Releases: jirimracek/conjugate-esp

Stable minor 2.3.x

09 Dec 22:38
Compare
Choose a tag to compare
  • 2.3.0 release notes apply
  • New public methods
    • getDefectiveVerbList()
    • getDefectiveVerbListSync()
    • getVersion()

Stable 2.3.x - possible breaking changes

04 Dec 00:34
Compare
Choose a tag to compare

2.3.x changes vs 2.2.x

  • Info

    • pronominal renamed to reflexive
  • conjugate() changes (2)

    • 2.2.2x, old behaviour:
      • conjugate() used to return Result[] | ErrorType
      • conjugate() accepted only base version of the verb
        • the result of conjugation had a mix of reflexive / nonreflexive conjugations
        • Examples
          • conjugate('hablar') would return conjugations for both hablar and hablarse
          • conjugate('abar') would return conjugations for abarse (abar doesn't exist)
        • Inconsistency
          • user asks for 'abar' and gets 'abarse', asks for 'hablar' and gets both 'hablar' and 'hablarse'
    • 2.3.x, new behaviour:
      • conjugate() returns Result[] | string (error string, ErrorType got nuked as an overkill)
      • conjugate() requires exact version of the verb, either reflexive or not, the return array will contain only the version requested
        • Examples
          • conjugate ('hablar') will result in hablar conjugation only
          • conjugate ('hablarse') will result in hablarse conjugation only
          • conjugate ('abar') will result in unknown verb error
          • conjugate ('abarse') will return 'abarse' conjugation
        • Hint:: getVerbList() returns a complete list of known verbs (with respect to the above, it will contain 'abarse' but not 'abar'). Use to verify your verb before you conjugate.
  • Other public interfaces:

    • getVerbList()
      • 2.2.x, old behaviour:
        • returned only nonreflexive verb names (made no distinction between reflexive & nonreflexive)
      • 2.3.x, new behaviour:
        • returns full list of exact verb names - if a verb (reflexive or nonreflexive) is in the list, it can be conjugated. Both hablar and hablarse are present, there is no abar, only abarse, hablar is distinct from hablarse
    • exports
      • all necessary exports are now in the index file, nothing prevents you from importing from elsewhere but it should be unnecessary
    • highlight tags
      • the tags parameter changed slightly from
        • {start: string, end: string, deleted: string} to
        • {start: string, end: string, del: string

Stable 2.2.2, ortho changes, highlights

17 Nov 19:58
Compare
Choose a tag to compare
  • new, orthography. Use either pre or post 2010 orthography. Controlled by a new parameter to constructor. See USAGE for details - there is also a discussion in ROADMAP. There is a limited set of verbs this applies to again, see the above for more.
  • new, highlighting. Controlled by a new parameter to constructor, an object {start: string, end: string, deleted: string}. If set, will determine the changes between regular and irregular conjugation (if applicable - this does nothing for regular verbs) and will insert the marks at a start point, end point and will also insert a mark if there was a deletion without replacement (try this with tener and see 1st person indicativo preterito indefinido). See USAGE for more info
    • the above means there are 2 more optional entries in the resulting Info object (part of result)
  • removed, pronouns (yo, tú, él, nosotros, ....) are no longer included with each conjugation line. There is a new field in the Info object, pronouns that lists the pronouns for the current conjugation (yes, they do change, depends on the region)
  • available as npm package here

Stable initial 2.2.x

10 Nov 10:22
Compare
Choose a tag to compare
  • pre 1999, 1999-2010 and 2010+ orthography rules changes (monosyllable accents)
  • new info header entries
  • new methods setOrthography(), getOrthography()
  • npm published

Latest 1.2.x

10 Nov 10:06
Compare
Choose a tag to compare
  • includes only RAE known / used verbs
  • removed 2248 unknown / unused verbs

Latest 1.1.x stable

10 Nov 10:02
Compare
Choose a tag to compare
  • Stable npm publish with all models functioning
  • Regular models change from amar, temer, vivir to hablar, temer, partir in order to have as many 'verb also used as pronominal (reflexive)' models as possible - potential breaking change if you depended on the former
  • This is the last version that includes unused / unknown verbs (as per la RAE), NOTE this changed in next release
  • 12815 verbs, 99 models
  • this is the last 1.1.x npm published stable

Stable initial version

10 Nov 09:53
Compare
Choose a tag to compare
  • Initial release with all models functioning
  • Uses amar, temer, vivir regular models, NOTE this changed in future releases
  • Includes unused / unknown verbs (as per la RAE), NOTE this changed in future releases
  • 12815 verbs, 99 models
  • this is the last 1.0.x npm stable published package