Skip to content

Commit 6715353

Browse files
authored
Merge pull request #103 from darkriszty/feature/update-dependencies
Feature/update dependencies
2 parents 1b69dfc + 50d6eeb commit 6715353

39 files changed

Lines changed: 549 additions & 2889 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1111
### Fixed
1212
- Issue #85: Fixed markdown spec compliance for unbordered tables with center/right aligned first columns. First column now uses left padding logic regardless of alignment to prevent invalid markdown output.
1313

14+
### Changed
15+
- **BREAKING**: Updated NPM package compilation target from ES5 to ES2022. Requires Node.js 16.11+.
16+
- Updated TypeScript to 6 with full strict mode.
17+
- Updated all dependencies to latest versions.
18+
- Fixed vulnerabilities in transitive dependencies.
19+
- Updated Docker image to use `lts-alpine` tag for automatic LTS tracking and added OS-level security patching.
20+
1421
## 3.7.0 - 2025-08-29
1522
### Added
1623
- Issue #78: Support tab indentation for tables without a border.

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM node:22-alpine AS builder
1+
FROM node:lts-alpine AS builder
2+
3+
RUN apk upgrade --no-cache
24

35
WORKDIR /tmp
46

@@ -12,7 +14,9 @@ COPY src/ src/
1214
RUN npm run compile
1315

1416

15-
FROM node:22-alpine
17+
FROM node:lts-alpine
18+
19+
RUN apk upgrade --no-cache
1620

1721
WORKDIR /app
1822

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ A VSCode command called `Prettify markdown tables` is also available to format t
3535

3636
## NPM
3737

38-
The core formatting logic is available as an NPM package: `npm install --save markdown-table-prettify`. The Typescript code is compiled down to ES5 and shipped inside the package.
38+
The core formatting logic is available as an NPM package: `npm install --save markdown-table-prettify`. The Typescript code is compiled to ES2022 and shipped inside the package. Requires Node.js 16.11+.
3939

4040
It currently exposes the entry point also used by the _CLI_. It can be used from regular NodeJS or web apps:
4141

cli/argumentsParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function parseArguments(processArgs: string[]): CliOptions {
1010
return processArgs.length > 2 && processArgs.find(arg => arg.startsWith("--" + key)) !== undefined;
1111
}
1212

13-
function getArgumentValue(key: string): string {
13+
function getArgumentValue(key: string): string | null {
1414
const hasArguments = processArgs.length > 2;
1515
const split = (hasArguments
1616
? processArgs.find(arg => arg.startsWith("--" + key)) || ""

cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { InputReader } from "./inputReader";
77

88
const cliOptions: CliOptions = parseArguments(process.argv);
99

10-
InputReader.subscribe(input =>
10+
InputReader.subscribe((input: string) =>
1111
cliOptions.check
1212
? CliPrettify.check(input, cliOptions)
1313
: process.stdout.write(CliPrettify.prettify(input, cliOptions))

cli/inputReader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export class InputReader {
2-
static subscribe(readDone): void {
2+
static subscribe(readDone: (input: string) => void): void {
33
if (process.stdin.isTTY) {
44
readDone(process.argv[2] || "");
55
} else {

0 commit comments

Comments
 (0)