7.0.0 (2022-02-08)
-
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)
- Upgrade Node 14
- Move date-fns to
devDependencies
7.0.0-beta.1 (2022-01-25)
-
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)
- Upgrade Node 14
- Move date-fns to
devDependencies
6.0.2 (2021-12-09)
- update dependencies (7e09a0f)
6.0.2-beta.1 (2021-12-09)
- update dependencies (7e09a0f)
6.0.1 (2021-11-08)
- 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)
- bump date-fns from 2.24.0 to 2.25.0 (cb13119)
6.0.1-beta.4 (2021-09-29)
- bump @commitlint/cli from 13.1.0 to 13.2.0 (073f915)
6.0.1-beta.3 (2021-09-29)
- bump @commitlint/config-conventional from 13.1.0 to 13.2.0 (5d576f9)
6.0.1-beta.2 (2021-09-29)
- bump jest from 27.2.2 to 27.2.3 (ff59fe2)
6.0.1-beta.1 (2021-09-29)
- bump babel-jest from 27.2.2 to 27.2.3 (1018e3f)
6.0.0 (2021-09-29)
- 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)
-
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)
- 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)
- fix version not updated in package.json (2462789)
6.0.0-beta.1 (2021-09-28)
- 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)
-
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)
- 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)
- bump rollup from 2.41.0 to 2.45.2 (62c14a2)
5.1.1-beta.2 (2021-03-11)
- bump @babel/preset-flow from 7.10.4 to 7.12.13 (87b8909)
5.1.1-beta.1 (2021-03-11)
- 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)
- bump jest from 26.4.2 to 26.6.3 (05a2de2)
5.1.0-beta.2 (2020-11-23)
- 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)
5.1.0-beta.1 (2020-10-20)
- FlowJs support
parseISOshould returnsDatewhen parsingnumber
- Use semantic release
- Upgrade dependencies #299
- Setup Dependabot #43
This version updates
date-fnsto 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 allowdateto be passed as a string type anymore. Thus, helper methods have been created to still support it.
- Dependencies to their latest versions
- CircleCI node version to 12.10
- CircleCI configs to support auto publishing based on tags
- Named exports instead using of default exports
- Helper methods to still support
dateas a string type
This version try to differentiate
periodandrangeconcepts. 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. Sorangeis the interpretation of theperiod.
year_to_dateis deprecated in favor ofthis_year- Period format
{ start: '2018-01-01', end: '2018-02-01' }is deprecated in favor of2018-01-01_to_2018-02-01 last_x_days_including_currentis deprecated, and will have same behavior aslast_3_days/^last(\d+)(day|week|month|quarter|year)s?$/format in favor of/^last_(\d+)_(day|week|month|quarter|year)s?$/retrievePeriodin favor ofgetRange(period parameter should be a string)retrievePeriodParamsin favor ofgetPeriodParams(periodparameter should be a string)calculateAutoComparein favor ofgetAutoCompareRangeAndLabel(periodparameter should be a string and object keyperiodhas been renamed torange)retrieveComparePeriodin favor ofgetCompareRange(bothperiod&compareModeparameters should be string)
- period
todayis deprecated, and will have same behavior asyesterday this_weekis equal tolast_weekwhen given base date is first day of the week.this_monthis equal tolast_monthwhen given base date is first day of the month.this_quarteris equal tolast_quarterwhen given base date is first day of the quarter.this_yearis equal tolast_yearwhen given base date is first day of the year.last_x_week_including_currentis equal tolast_x_weekwhen given base date is first day of the week.last_x_month_including_currentis equal tolast_x_monthwhen given base date is first day of the month.last_x_quarter_including_currentis equal tolast_x_quarterwhen given base date is first day of the quarter.last_x_year_including_currentis equal tolast_x_yearwhen given base date is first day of the year.all_timespecification switch fromlast_3_years_including_currentto2015-01-01_to_yesterdaylast_x_days_including_currentis deprecated, and will have same behavior aslast_3_daysyear_to_dateis replaced bythis_year. It's no more the complete year, but from the first day of the year to yesterday included.
getRangereplacingretrievePeriodgetPeriodParamsreplacingretrievePeriodParamsgetCompareRangereplacingretrieveComparePeriodgetAutoCompareRangeAndLabelreplacingcalculateAutoComparegetTillYesterdayPeriodgetCustomPeriodgetLastPeriodgetThisPeriodformatDatemigrateLegacyPeriodtransform legacy period format to new onemigrateLegacyCompareModetransform legacy compare mode format to new onetoLegacyPeriodreverse ofmigrateLegacyPeriodtoLegacyCompareModereverse ofmigrateLegacyCompareMode
this_quarterwas inconsistent withthis_week,this_month&this_year. Nowthis_quarterstarts from the beginning of the quarter to yesterday included.last_x_quarterswas inconsistent withlast_x_days,last_x_weeks,last_x_months&last_x_years. It's no more one quarter length, butxquarters length.