Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

28 changes: 10 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7

- name: Set up Node toolchain
uses: actions/setup-node@v7
with:
node-version: "24.x"

- name: Set up PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"
purs-tidy: "latest"
spago: "latest"

- name: Cache PureScript dependencies
uses: actions/cache@v2
uses: actions/cache@v6
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}-2
key: ${{ runner.os }}-spago-${{ hashFiles('spago.yaml', 'spago.lock') }}
path: |
.spago
output

- name: Set up Node toolchain
uses: actions/setup-node@v2
with:
node-version: "14.x"

- name: Cache NPM dependencies
uses: actions/cache@v2
uses: actions/cache@v6
env:
cache-name: cache-node-modules
with:
Expand All @@ -55,12 +56,3 @@ jobs:

- name: Check formatting
run: purs-tidy check src test

- name: Verify Bower & Pulp
run: |
npm install bower pulp@16.0.0-0
npx bower install
npx pulp build -- --censor-lib --strict
if [ -d "test" ]; then
npx pulp test
fi
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
!.github
!.editorconfig
!.tidyrc.json
!.eslintrc.json

output
generated-docs
bower_components

node_modules
package-lock.json
*.lock
!spago.lock
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@ Notable changes to this project are documented in this file. The format is based
## [Unreleased]

Breaking changes:
- The day-of-week token is now `d` instead of `E`; numeric weekdays remain Monday = 1 through Sunday = 7. (#87 by @garyb)
- The `a` token now prints lowercase `am`/`pm`; use `A` for uppercase `AM`/`PM`. Both parse either case. `Meridiem` still prints uppercase; `MeridiemLowerCase` prints lowercase.
- `FormatterCommand` has new `MonthDigit` and `MeridiemLowerCase` constructors; update exhaustive matches.
- DateTime Formatter Placeholders that contain any valid format characters are now escaped via square brackets. Square brackets are not valid Placeholder characters. (#74 by @ntwilson)

- Support for different separators ([PR](https://github.com/purescript-contrib/purescript-formatters/pull/86) by @carstenkoenig)

New features:
- Added support for single-digit months [#69](https://github.com/purescript-contrib/purescript-formatters/pull/69) (@vapaj)
- Added support for lower-case meridiem via `MeridiemLowerCase` [#67](https://github.com/purescript-contrib/purescript-formatters/pull/67) (@fsoikin)

Bugfixes:
- Escape `X` and `d` in literal placeholders when printing DateTime formatters. (#87 by @garyb)
- Parse numbers without intermediate 32-bit integer overflow, and retain extra fractional digits at their correct scale. Minimum digit widths are unchanged. (#16)

Other improvements:
- Added module documentation for Data.Formatter.DateTime and Data.Formatter.Number (#73 by @ntwilson)
- Migrate to registry-backed Spago 1.0 and update repository tooling.

## [v7.0.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v7.0.0) - 2022-04-28

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ This is a subset of common format/parse strings currently supported.
+ `YY` - 2 digit year ("99")
+ `MMMM` - Full Month ("January")
+ `MMM` - Short Month ("Jan")
+ `M` - Unpadded Month ("1")
+ `DD` - Padded Day ("02")
+ `D` - Day of month ("2")
+ `X` - Unix Timestamp ("1506875681")
+ `E` - Day of Week ("2")
+ `d` - Day of Week ("2", Monday = 1, Sunday = 7)
+ `dddd` - DOW Name ("Monday")
+ `ddd` - DOW Name Short ("Mon")
+ `HH` - 24 Hour ("13")
+ `hh` - 12 Hour ("1")
+ `a` - Meridiem ("am"/"pm")
+ `A` - Meridiem ("AM"/"PM")
+ `mm` - Minutes Padded ("02")
+ `m` - Minutes ("2")
+ `ss` - Seconds Padded ("02")
Expand Down
33 changes: 0 additions & 33 deletions bower.json

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"private": true,
"scripts": {
"build": "eslint src && spago build --purs-args '--censor-lib --strict'",
"test": "spago test --no-install"
"build": "oxlint src && spago build --strict --pedantic-packages",
"test": "spago test --strict --pedantic-packages"
},
"devDependencies": {
"eslint": "^7.6.0"
"oxlint": "^1.87.0"
}
}
4 changes: 0 additions & 4 deletions packages.dhall

This file was deleted.

29 changes: 0 additions & 29 deletions spago.dhall

This file was deleted.

Loading
Loading