Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Latest commit

 

History

History
380 lines (233 loc) · 19.3 KB

CHANGELOG.md

File metadata and controls

380 lines (233 loc) · 19.3 KB

7.0.0 (2022-02-08)

Bug Fixes

  • fix security vulnerabilities (b687e09)

  • run npx yarn-minify (f0225b4)

  • update node version to 14 (a9b4066)

  • upgrade minor dependencies (677ab48)

  • feat!: upgrade to node 14 (828acb6)

  • feat!: move date-fns to devDependencies (8b6ea6a)

BREAKING CHANGES

  • Upgrade Node 14
  • Move date-fns to devDependencies

7.0.0-beta.1 (2022-01-25)

Bug Fixes

  • fix security vulnerabilities (b687e09)

  • run npx yarn-minify (f0225b4)

  • update node version to 14 (a9b4066)

  • upgrade minor dependencies (677ab48)

  • feat!: upgrade to node 14 (828acb6)

  • feat!: move date-fns to devDependencies (8b6ea6a)

BREAKING CHANGES

  • Upgrade Node 14
  • Move date-fns to devDependencies

6.0.2 (2021-12-09)

Bug Fixes

6.0.2-beta.1 (2021-12-09)

Bug Fixes

6.0.1 (2021-11-08)

Bug Fixes

  • bump @commitlint/cli from 13.1.0 to 13.2.0 (073f915)
  • bump @commitlint/config-conventional from 13.1.0 to 13.2.0 (5d576f9)
  • bump babel-jest from 27.2.2 to 27.2.3 (1018e3f)
  • bump date-fns from 2.24.0 to 2.25.0 (cb13119)
  • bump jest from 27.2.2 to 27.2.3 (ff59fe2)

6.0.1-beta.5 (2021-10-05)

Bug Fixes

  • bump date-fns from 2.24.0 to 2.25.0 (cb13119)

6.0.1-beta.4 (2021-09-29)

Bug Fixes

  • bump @commitlint/cli from 13.1.0 to 13.2.0 (073f915)

6.0.1-beta.3 (2021-09-29)

Bug Fixes

  • bump @commitlint/config-conventional from 13.1.0 to 13.2.0 (5d576f9)

6.0.1-beta.2 (2021-09-29)

Bug Fixes

  • bump jest from 27.2.2 to 27.2.3 (ff59fe2)

6.0.1-beta.1 (2021-09-29)

Bug Fixes

  • bump babel-jest from 27.2.2 to 27.2.3 (1018e3f)

6.0.0 (2021-09-29)

Bug Fixes

  • bump @babel/cli from 7.11.6 to 7.13.10 (62f0527)
  • bump @babel/preset-flow from 7.10.4 to 7.12.13 (87b8909)
  • bump @babel/register from 7.11.5 to 7.13.8 (31ecfee)
  • bump @semantic-release/github from 7.1.1 to 7.2.0 (039d915)
  • bump babel-jest from 26.3.0 to 26.6.3 (6ea5bb4)
  • bump jest from 26.4.2 to 26.6.3 (05a2de2)
  • bump rollup from 2.28.2 to 2.33.3 (343cd16)
  • bump rollup from 2.41.0 to 2.45.2 (62c14a2)
  • bump sinon from 9.1.0 to 9.2.1 (209c6ca)
  • fix version not updated in package.json (2462789)
  • fix vulnerabilities (ff91c44)
  • update babel related packages (1e7165a)
  • update date-fns (d052f38)

Features

  • add peer dependencies (4d7e595)

  • fix!: update target browsers list (20f1c6a)

  • fix!: update @babel/preset-env (2d0e176)

  • fix!: replace rollup uglify with terser (05204b5)

  • fix!: update rollup related packages (9815dd5)

BREAKING CHANGES

  • Update target browsers list
  • Update @babel/preset-env
  • Replace rollup uglify with terser
  • Replace some rollup packages with latest version

6.0.0-beta.2 (2021-09-29)

Bug Fixes

  • fix version not updated in package.json (2462789)

6.0.0-beta.1 (2021-09-28)

Bug Fixes

  • bump @babel/cli from 7.11.6 to 7.13.10 (62f0527)
  • bump @babel/preset-flow from 7.10.4 to 7.12.13 (87b8909)
  • bump @babel/register from 7.11.5 to 7.13.8 (31ecfee)
  • bump @semantic-release/github from 7.1.1 to 7.2.0 (039d915)
  • bump babel-jest from 26.3.0 to 26.6.3 (6ea5bb4)
  • bump jest from 26.4.2 to 26.6.3 (05a2de2)
  • bump rollup from 2.28.2 to 2.33.3 (343cd16)
  • bump rollup from 2.41.0 to 2.45.2 (62c14a2)
  • bump sinon from 9.1.0 to 9.2.1 (209c6ca)
  • fix vulnerabilities (ff91c44)
  • update babel related packages (1e7165a)
  • update date-fns (d052f38)

Features

  • add peer dependencies (4d7e595)

  • fix!: update target browsers list (20f1c6a)

  • fix!: update @babel/preset-env (2d0e176)

  • fix!: replace rollup uglify with terser (05204b5)

  • fix!: update rollup related packages (9815dd5)

BREAKING CHANGES

  • Update target browsers list
  • Update @babel/preset-env
  • Replace rollup uglify with terser
  • Replace some rollup packages with latest version

5.1.1-beta.3 (2021-04-29)

Bug Fixes

  • bump rollup from 2.41.0 to 2.45.2 (62c14a2)

5.1.1-beta.2 (2021-03-11)

Bug Fixes

  • bump @babel/preset-flow from 7.10.4 to 7.12.13 (87b8909)

5.1.1-beta.1 (2021-03-11)

Bug Fixes

  • bump @babel/cli from 7.11.6 to 7.13.10 (62f0527)
  • bump @babel/register from 7.11.5 to 7.13.8 (31ecfee)
  • bump @semantic-release/github from 7.1.1 to 7.2.0 (039d915)
  • bump babel-jest from 26.3.0 to 26.6.3 (6ea5bb4)
  • bump jest from 26.4.2 to 26.6.3 (05a2de2)
  • bump rollup from 2.28.2 to 2.33.3 (343cd16)
  • bump sinon from 9.1.0 to 9.2.1 (209c6ca)

5.1.0-beta.3 (2020-11-23)

Bug Fixes

  • bump jest from 26.4.2 to 26.6.3 (05a2de2)

5.1.0-beta.2 (2020-11-23)

Bug Fixes

  • bump babel-jest from 26.3.0 to 26.6.3 (6ea5bb4)
  • bump rollup from 2.28.2 to 2.33.3 (343cd16)
  • bump sinon from 9.1.0 to 9.2.1 (209c6ca)

5.1.0 (2020-10-27)

Bug Fixes

Features

5.1.0-beta.1 (2020-10-20)

Bug Fixes

Features

Unreleased

Add

  • FlowJs support

Fix

  • parseISO should returns Date when parsing number

Chore

  • Use semantic release

5.0.3 -- 19/06/2020

Chore

  • Upgrade dependencies #683
  • Update dependabot config #688

5.0.2 -- 18/03/2020

Chore

  • Upgrade dependencies #299

5.0.1 -- 16/10/2019

Update

Misc

  • Setup Dependabot #43

5.0.0 -- 31/10/2019

This version updates date-fns to its latest major version 2.6.0. This fixes a bug that does not parse daylight savings dates properly for Eastern Hemisphere regions (e.g. Australia and New Zealand). The update will not allow date to be passed as a string type anymore. Thus, helper methods have been created to still support it.

Update

  • Dependencies to their latest versions
  • CircleCI node version to 12.10
  • CircleCI configs to support auto publishing based on tags

Change

  • Named exports instead using of default exports

Add

  • Helper methods to still support date as a string type

4.0.0 -- 13/12/2018

This version try to differentiate period and range concepts. The first one in a string representing the period and range is an object representing the actual date range the given period is equivalent given a base date. So range is the interpretation of the period.

Deprecates

  • year_to_date is deprecated in favor of this_year
  • Period format { start: '2018-01-01', end: '2018-02-01' } is deprecated in favor of 2018-01-01_to_2018-02-01
  • last_x_days_including_current is deprecated, and will have same behavior as last_3_days
  • /^last(\d+)(day|week|month|quarter|year)s?$/ format in favor of /^last_(\d+)_(day|week|month|quarter|year)s?$/
  • retrievePeriod in favor of getRange (period parameter should be a string)
  • retrievePeriodParams in favor of getPeriodParams (period parameter should be a string)
  • calculateAutoCompare in favor of getAutoCompareRangeAndLabel (period parameter should be a string and object key period has been renamed to range)
  • retrieveComparePeriod in favor of getCompareRange (both period & compareMode parameters should be string)

Change

  • period today is deprecated, and will have same behavior as yesterday
  • this_week is equal to last_week when given base date is first day of the week.
  • this_month is equal to last_month when given base date is first day of the month.
  • this_quarter is equal to last_quarter when given base date is first day of the quarter.
  • this_year is equal to last_year when given base date is first day of the year.
  • last_x_week_including_current is equal to last_x_week when given base date is first day of the week.
  • last_x_month_including_current is equal to last_x_month when given base date is first day of the month.
  • last_x_quarter_including_current is equal to last_x_quarter when given base date is first day of the quarter.
  • last_x_year_including_current is equal to last_x_year when given base date is first day of the year.
  • all_time specification switch from last_3_years_including_current to 2015-01-01_to_yesterday
  • last_x_days_including_current is deprecated, and will have same behavior as last_3_days
  • year_to_date is replaced by this_year. It's no more the complete year, but from the first day of the year to yesterday included.

Add

  • getRange replacing retrievePeriod
  • getPeriodParams replacing retrievePeriodParams
  • getCompareRange replacing retrieveComparePeriod
  • getAutoCompareRangeAndLabel replacing calculateAutoCompare
  • getTillYesterdayPeriod
  • getCustomPeriod
  • getLastPeriod
  • getThisPeriod
  • formatDate
  • migrateLegacyPeriod transform legacy period format to new one
  • migrateLegacyCompareMode transform legacy compare mode format to new one
  • toLegacyPeriod reverse of migrateLegacyPeriod
  • toLegacyCompareMode reverse of migrateLegacyCompareMode

Fix

  • this_quarter was inconsistent with this_week, this_month & this_year. Now this_quarter starts from the beginning of the quarter to yesterday included.
  • last_x_quarters was inconsistent with last_x_days, last_x_weeks, last_x_months & last_x_years. It's no more one quarter length, but x quarters length.