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
26 changes: 0 additions & 26 deletions .eslintrc.json

This file was deleted.

33 changes: 11 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,19 @@ on:
pull_request:
branches: [master]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"

- uses: actions/setup-node@v2
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "14.x"

- name: Install dependencies
run: |
npm install -g bower
npm install
bower install --production

- name: Build source
run: npm run-script build

- name: Run tests
run: |
bower install
npm run-script test --if-present
node-version: "24"
- run: npm install
- run: npm run build
- run: npm test
- run: npm run lint
- run: npm run format:check
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/.*
!/.gitignore
!/.eslintrc.json
!/.tidyrc.json
!/.oxfmtrc.json
!/.github/
package-lock.json
/package-lock.json
/spago.lock
/bower_components/
/node_modules/
/output/
3 changes: 3 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "es5"
}
10 changes: 10 additions & 0 deletions .tidyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"importSort": "ide",
"importWrap": "source",
"indent": 2,
"operatorsFile": null,
"ribbon": 1,
"typeArrowPlacement": "first",
"unicode": "never",
"width": null
}
24 changes: 19 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [Unreleased](https://github.com/purescript/purescript-datetime/compare/v6.1.1...HEAD)

Breaking changes:

Expand All @@ -12,11 +12,18 @@ Bugfixes:

Other improvements:

## [v6.1.1](https://github.com/purescript/purescript-datetime/releases/tag/v6.1.1) - 2026-10-17

Other improvements:

- Migrate from Bower/Pulp to Spago and update CI (#103 by @thomashoneyman).

## [v6.1.0](https://github.com/purescript/purescript-datetime/releases/tag/v6.1.0) - 2022-07-13

Breaking changes:

New features:

- Added `diff` for `Instant` (#99 by @i-am-the-slime, #100 by @garyb)

Bugfixes:
Expand All @@ -26,38 +33,45 @@ Other improvements:
## [v6.0.0](https://github.com/purescript/purescript-datetime/releases/tag/v6.0.0) - 2022-04-27

Breaking changes:

- Migrate FFI to ES modules (#93 by @JordanMartinez)

New features:

Bugfixes:

Other improvements:

- Drop deprecated `math` dependency; update imports (#94 by @JordanMartinez)

## [v5.0.2](https://github.com/purescript/purescript-datetime/releases/tag/v5.0.2) - 2021-04-19

Other improvements:

- Fix one more UnusedName warning revealed by v0.14.1 PureScript release (@thomashoneyman)

## [v5.0.1](https://github.com/purescript/purescript-datetime/releases/tag/v5.0.1) - 2021-04-19

Other improvements:

- Fix UnusedName warnings revealed by v0.14.1 PureScript release (#91 by @JordanMartinez)

## [v5.0.0](https://github.com/purescript/purescript-datetime/releases/tag/v5.0.0) - 2021-02-26

Breaking changes:
- Added support for PureScript 0.14 and dropped support for all previous versions (#81)

- Added support for PureScript 0.14 and dropped support for all previous versions (#81)

New features:

Bugfixes:

- Fixed `genDate` generator frequency (#83)

Other improvements:
- Migrated CI to GitHub Actions and updated installation instructions to use Spago (#82)
- Added a CHANGELOG.md file and pull request template (#84, #85)

- Migrated CI to GitHub Actions and updated installation instructions to use Spago (#82)
- Added a CHANGELOG.md file and pull request template (#84, #85)

## [v4.1.1](https://github.com/purescript/purescript-datetime/releases/tag/v4.1.1) - 2019-02-09

Expand Down Expand Up @@ -178,6 +192,7 @@ Initial release candidate of the library intended for the 0.7 compiler.
## [v0.3.0](https://github.com/purescript/purescript-datetime/releases/tag/v0.3.0) - 2015-02-21

**This release requires PureScript v0.6.8 or later**

- Updated dependencies

## [v0.2.0](https://github.com/purescript/purescript-datetime/releases/tag/v0.2.0) - 2015-01-11
Expand All @@ -199,4 +214,3 @@ Added `fromStringStrict` and updated dependencies (@jdegoes)
## [v0.0.1](https://github.com/purescript/purescript-datetime/releases/tag/v0.0.1) - 2014-10-14

Initial version release.

40 changes: 0 additions & 40 deletions bower.json

This file was deleted.

17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "eslint src && pulp build -- --censor-lib --strict",
"test": "pulp test"
"build": "spago build",
"test": "spago test",
"lint": "oxlint --deny-warnings src test",
"format": "purs-tidy format-in-place src test && oxfmt --write .",
"format:check": "purs-tidy check src test && oxfmt --check ."
},
"devDependencies": {
"eslint": "^7.15.0",
"pulp": "16.0.0-0",
"purescript-psa": "^0.8.2",
"rimraf": "^3.0.2"
"oxfmt": "^0.73.0",
"oxlint": "^1.88.0",
"purescript": "^0.15.16",
"purs-tidy": "^0.11.1",
"spago": "^1.0.5"
}
}
39 changes: 39 additions & 0 deletions spago.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package:
name: datetime
description: Date and time types and functions.
build:
strict: true
pedanticPackages: true
publish:
version: 6.1.1
license: BSD-3-Clause
location:
githubOwner: purescript
githubRepo: purescript-datetime
dependencies:
- bifunctors: ">=6.0.0 <7.0.0"
- control: ">=6.0.0 <7.0.0"
- either: ">=6.0.0 <7.0.0"
- enums: ">=6.0.0 <7.0.0"
- foldable-traversable: ">=6.0.0 <7.0.0"
- functions: ">=6.0.0 <7.0.0"
- gen: ">=4.0.0 <5.0.0"
- integers: ">=6.0.0 <7.0.0"
- lists: ">=7.0.0 <8.0.0"
- maybe: ">=6.0.0 <7.0.0"
- newtype: ">=5.0.0 <6.0.0"
- numbers: ">=9.0.0 <10.0.0"
- ordered-collections: ">=3.0.0 <4.0.0"
- partial: ">=4.0.0 <5.0.0"
- prelude: ">=6.0.0 <7.0.0"
- tuples: ">=7.0.0 <8.0.0"
test:
main: Test.Main
strict: true
pedanticPackages: true
dependencies:
- arrays: ">=7.0.0 <8.0.0"
- assert: ">=6.0.0 <7.0.0"
- console: ">=6.0.0 <7.0.0"
- effect: ">=4.0.0 <5.0.0"
workspace: {}
Loading
Loading