Skip to content

Conversation

@knowledgecode
Copy link
Owner

Summary

  • Support escaping square brackets with backslashes to output them literally in formatted dates
  • Update documentation with examples demonstrating the new escape feature
  • Migrate ESLint configuration from TypeScript to JavaScript

Changes

Core Functionality

  • Modified compile() function to handle escaped square brackets (\[ and \])
  • Added support for literal bracket output in format() and parsing in parse()

Documentation

  • Added escape examples to compile.md, format.md, and parse.md
  • Updated Logger example in compile.md to demonstrate the new feature
  • Fixed plugin system description in index.md

Development

  • Migrated eslint.config.ts to eslint.config.js
  • Updated dependencies to latest versions

Test plan

  • Added test cases for escaped brackets in compile.spec.ts
  • Added test cases for escaped brackets in parse.spec.ts
  • All existing tests pass
  • Documentation examples verified

Allow escaping square brackets with backslashes to output them literally in formatted dates and parse them from input strings.
Add examples demonstrating how to escape square brackets in format strings and update code examples to use the new feature.
Replace eslint.config.ts with eslint.config.js and update dependencies.
@knowledgecode knowledgecode merged commit 2ffaa04 into master Oct 8, 2025
4 checks passed
@knowledgecode knowledgecode deleted the develop branch October 8, 2025 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants