Socket
Socket
Sign inDemoInstall

typopo

Package Overview
Dependencies
0
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345Next

2.5.6

Diff

Changelog

Source

2.5.6 // 2023-12-23

🐛 Fixes

  • Filepaths such as ../../file.ext or ..\..\file.ext were falsely chnaged to ././file.ext or .\.\file.ext; with this release, they remain untouched

🔨 Maintenance

  • Update NPM packages to their latest versions
surfinzap
published 2.5.5 •

Changelog

Source

2.5.5 // 2023-08-27

💪 Improvements

  • Replace a space with a non-breaking space before a single capital letter that is a part of the phrase:
    • Sputnik VSputnik⎵V
    • The product X has launched.The product⎵X has launched.

🐛 Fixes

  • In Markdown, keep the space when e.g. is followed by code (e.g. code)
  • Keep the space when e.g. is followed by emoji (e.g. 🥳)
  • Don’t swap the right double quote with ellipsis that follows closing bracket:
    • Ask “what if (the thing)…”Ask “what if (the thing)”…

🔨 Maintenance

  • Update build scripts
  • Update eslint configuration
  • Update NPM packages to their latest versions
surfinzap
published 2.5.4 •

Changelog

Source

2.5.4 // 2022-07-12

💪 Improvements

  • Remove spaces before aposiopesis in a quoted sentence, e.g.:
    • “Sentence ending …”“Sentence ending…”
    • ‘Sentence ending …’‘Sentence ending…’

🐛 Fixes

  • Update use cases when a space between the number sign (#) and the number is removed. Before, the space was falsely removed between level 2 markdown headings and numbers (e.g. “## 1. introduction” was falsely changed to “##1. introduction”). Now the space is kept. (bug reported by @filipaldi)
  • A dash was not fixed between words, when the first word ended on a letter “ŷ”
  • An nbsp was falsely added after a word that had the letter “ŷ” on the second to the last past position, e.g. nbsp was falsely added after the word “starŷm”

🔨 Maintenance

  • Update NPM packages to their latest versions
  • Extra tests and code refactoring for dash.js
surfinzap
published 2.5.3 •

Changelog

Source

2.5.3 // 2022-01-16

💪 Improvements

  • Add or keep space between a multi-word abbreviation (e.g., i.e.) and a quoted word:
    • e.g.“something” → e.g. “something”
  • Consolidate spaces around ellipsis that replaces the last item in the list
    • We sell apples, oranges, … → We sell apples, oranges,…
    • (apples, oranges, … ) → (apples, oranges,…)

🐛 Fixes

  • Fix swapping quotes and terminal punctuation in consecutive quoted sentences. Before the fix, punctuation was changed only in the first quoted sentence.
    • “He was ok”. “He was ok”. → “He was ok.” “He was ok.”

🔨 Maintenance

  • Update NPM packages to their latest versions
surfinzap
published 2.5.2 •

Changelog

Source

2.5.2 // 2021-09-04

No changes in functionality in this release, just repackaging the bundle.

surfinzap
published 2.5.1 •

Changelog

Source

2.5.1 // 2021-09-04

No changes in functionality in this release, just updating package dependencies to their latest versions.

surfinzap
published 2.5.0 •

Changelog

Source

2.5.0 // 2021-06-08

I’ve done something in this version what I wanted to do for a while. I wanted to refactor modules that fix double quotes and single quotes. These modules were old and difficult to improve. And as I went along refactoring, I’ve also fixed few other issues, so in the end, quite a few things made it into this version.

Since this version (2.5.0), Typopo is tested against 2540 assertion tests (+675 tests since version 2.4.1). The number of tests is not a guarantee there won’t be any bugs, but it indicates a growing desire to cover more and more edge cases.

Here’s a rundown of what’s been new and improved in this version.

✨ New features

New configuration option to keep Markdown code blocks in your Markdown files:

  • keepMarkdownCodeBlocks: true when you want to keep Markdown code blocks in your Markdown files
  • keepMarkdownCodeBlocks: false want to fix grave accents (`) in generic texts to single quotes

⚡️ Improvements

  • Limit identification of “and” contractions to common phrases, and add a non-breaking space around them. Common phrases:
    • dead ’n’ buried
    • drill ’n’ bass
    • drum ’n’ bass
    • rock ’n’ roll
    • pick ’n’ mix
    • fish ’n’ chips
    • salt ’n’ shake
    • mac ’n’ cheese
    • pork ’n’ beans
    • drag ’n’ drop
    • rake ’n’ scrape
    • hook ’n’ kill
  • Identify and fix single-quoted ‘words’ outside double quotes
  • Swap single quotes and terminal punctuation when single quotes are used only for a portion of a sentence, e.g.:
    • …only a ‘quoted part.’ → …only a ‘quoted part’.
  • Keep a space between a number and a number sign (#) at the beginning of the paragraph (e.g. when you’re starting a Markdown headline with a number)
  • Limit adding a non-breaking space after cardinal and ordinal numbers with three and more digits.

🐛 Fixes

  • Fix edge cases around double quotes and double primes:
    • Here are 30 "bucks" → Here are 30 “bucks” (before, a left quote was falsely identified as a double prime)
    • "Conference 2020" and "something in quotes". → “Conference 2020” and “something in quotes”. (before, a right quote after “2020” was falsely identified as a double prime)
    • "2020" → “2020” (before, dumb quotes around numbers were not identified as a double quote pair)
    • He was ok. “He was ok ”. → He was ok. “He was ok.”, (before, when a right double quote was swapped with a terminal punctuation, the extra space wasn’t removed)
    • It’s 12" x 12". → It’s 12″ × 12″. (before, the second prime was falsely identified as a right double quote)
    • 12'' → 12″ (two dumb single quotes are fixed to a double prime around numbers)
    • When you ask the “How often…” question (before, the ellipsis was falsely swapped with a right double quote in this type of Sentence)
    • It’s a“nice” saying. → It’s a “nice” saying. (now, the added space is a nbsp, when added before a single-word prepositions)
  • When Typopo is configured as removeWhitespacesBeforeMarkdownList : false, Markdown lists are now kept nested, even when they start with +

🔨 Maintenance

  • Refactor a module to fix double quotes
  • Refactor a module to fix single quotes
  • Update NPM packages to their latest versions
surfinzap
published 2.4.1 •

Changelog

Source

2.4.1 // 2021-03-12

No functional changes in this release.

Maintenance

  • Update NPM packages to their latest versions
surfinzap
published 2.4.0 •

Changelog

Source

2.4.0 // 2020-11-25

New features

New configuration option to remove/keep whitespaces before nested markdown lists.

Typopo removes nested lists

removeWhitespacesBeforeMarkdownList : true

Typopo removes nested lists

Typopo keeps nested lists

removeWhitespacesBeforeMarkdownList : false

Typopo keeps nested lists

Fixes

  • Remove trailing spaces at the end of each line (#45)
surfinzap
published 2.3.7 •

Changelog

Source

2.3.7 // 2020-11-01

Improvements

  • Fix acute or grave accents used as apostrophe (Paul´s → Paul’s) (#43)

Fixes

  • Update how aCCIDENTAL case was fixed. When someone types aCCIDENTAL, it’s more likely they held Shift key while the Capslock was on. Therefore the intention was to type “Accidental” (but Typopo was fixing it to “accidental”). (#44)

Maintenance

2345Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc