All Versions
38
Latest Version
Avg Release Cycle
236 days
Latest Release
1647 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.0.6
December 06, 2018 -
v2.0.5 Changes
December 05, 2018- ๐ Fixed issue with Angular 6 breaking webpack implementation of global context.
- ๐ Fixed issue with Date#get with past/future options.
- ๐ Fixed issue with parsing of "Mar-3".
- ๐ Fixed issue with parsing of "10:".
- ๐ Fixed issue with parsing of "end of year", etc.
- ๐ Fixed issue with specificity param being incorrectly set.
- ๐ Fixed issue with future option causing a day shift in format "this week tuesday".
- ๐ Fixed issue with inconsistency when overshooting certain units in parsing.
- ๐ Fixed issue with Array#max and empty strings.
- ๐ Fixed issue with incorrect order of "next/last" in Italian dates.
- ๐ Fixed issues with UTC times being reset and timezone abbreviations.
- ๐ Fixed issue with Finnish period as time separator interfering with date parsing.
- ๐ Fixed issues with Typescript declarations including better handling of generics.
- ๐ Temporary fix for bad parsing of ambiguous ์ผ token for day/Sunday.
- โช Restored VERSION property to the core.
- ๐ Fixed issue with future dates.
-
v2.0.4 Changes
August 06, 2018- ๐ Fixed issue with Typescript declarations not exporting all packages.
-
v2.0.3 Changes
November 23, 2016- โก๏ธ Updated Typescript declaration files to better handle modules.
- โ Added type guards to isString... declarations.
- ๐ Fixed issue with Range date unit methods on invalid ranges.
-
v2.0.2 Changes
November 05, 2016 -
v2.0.1 Changes
August 08, 2016- ๐ Fixed issues with locales not being ignored in modularized repos.
-
v2.0.0 Changes
November 05, 2016API Changes
- โ Added global objects. All methods will also be defined here.
- โ Removed String#escapeRegExp. Use RegExp.escape instead.
- ๐ Changed String#escapeHTML to double-escape entities.
Date#utc
is nowDate#setUTC
.Date.SugarNewDate
is now an option accessorSugar.Date.setOption('newDateInternal', fn)
- ๐ Modified
String#startsWith
andString#endsWith
to be more in compliance with ES6. See CAUTION.md for details. - โ Removed
String#has
in favor ofString#includes
to be more in compliance with ES6. See CAUTION.md for details. - โ Added
Number.isNaN
shim. RemovedObject.isNaN
in favor of this. - Alphanumeric array options are now on the global object.
- ๐ Moved
Object.map
,Object.each
, andObject.size
to the object module. - โ Added
Object.isArguments
. - ๐ Changed
String#each
(renamed toString#forEach
) to allow breaking the loop withfalse
. - โ Added ability for
String#stripTags
andStrip#removeTags
to pass a callback. - ๐ Made
String#stripTags
andString#removeTags
much more robust. - โ Removed
String#normalize
and will put into its own plugin module asString#toAscii
later. - โก๏ธ Updated
Array#sortBy
to handle sorting on multiple properties (Issue #386, thanks to @eric-weiser). - ๐ Fixed
String#unescapeHTML
to handle HTML (and hex) codes. Also now handling - โ Added a third argument to
Number#bytes
to allow normal SI units. - โก๏ธ
Object.merge
updated to take an options object. Non-enumerable property support is now an option, as well as property descriptors. Resolver function now will not traverse further into a deep merge if it has been resolved with a function. Sugar global object continues the merge. - ๐ Allowing a global thousands and decimal marker to be set.
String#hankaku
now makes a hyphen from hyphen-like fullwidth chars in number mode.- ๐ Fixed issue with the digit
ten
in date creation (Issue #431). - ๐ Fixed issue with the
Date#[unit]Since
improperly applying error margins. - ๐จ Refactored the
since
andfromNow
methods to traverse using internal date methods instead of applying an error margin. This makes them much more accurate in dicey situations like DST traversal, leap years, etc. - ๐ Fixed issue with dates shifting in "monthsFromNow" (and consequently "relative") when traversing into a month that doesn't have enough days.
- ๐ Fixed issue with advance/rewind using an object with both a "week" and "day" parameter (Issue #492).
- ๐ Fixed issue
Function#every
not being able to cancel itself (Issue #488). - ๐ Fixed issue with German dates not allowing abbreviated weekdays with 2 characters.
- โ Added
Date#get
allowing date creation with a context date that can be used as a starting point for relative dates. - โ Added
Function#memoize
(Issue #486) - ๐ Async functions are now synchronous with Sinon.
- ๐ Renamed
Object.equal
andObject#equals
toisEqual
for parity. - โ Removed
Date.utc
object as well asDate.past
andDate.future
in favor of an options object onDate#create
. - โ
Renamed
Function#fill
toFunction#partial
. Tests from Underscore and Lodash brought in to confirm conformitive behavior. - ๐
null
now no longer acts as a placeholder inFunction#partial
. Other bugs fixed around this including usingpartial
on constructors. Date#create
options object now usesfromUTC
instead of justutc
. A new optionsetUTC
is also added which will set the internal utc flag on creation.- ๐จ
String#assign
refactored and renamed toString#format
. Tokens are zero based and a few other changes. - โ Added
Object.get
andObject.set
, allowed them to use dot, bracket, range, and push syntax, and allowed deep object transforms onArray#map
, and other methods. - ๐ Fixed many issues with DST and simplified month traversal.
- ๐ Renamed
Array#randomize
toArray#shuffle
- โ Added
Array#sample
ability to remove sampled elements and performance optimization. - โ Added
String#replaceAll
andString#removeAll
. - โ Added polyfill for
Array.from
and modifiedArray.create
to return a reference by default. - ๐ Changed behavior of
Function#after
to more closely match that of Underscore/Lodash. - ๐ Changed behavior of
Number#times
to return an array of return values. - ๐ Changed
Object.fromQueryString
to return a plain object. - โ Removed
Object.watch
andObject.unwatch
. - โ Removed ability for
Date.create
to accept enumerated arguments. - Modified
Object.toQueryString
to accept an options object. - Modified
Object.fromQueryString
to accept an options object. - โ Added support for Sets in
isEqual
. - โ Added
Array#median
. - Modified
Number#metric
to use a more flexible system of defining units. - โ Added strf tokens to
Date#format
as well as a number of new standard tokens. Aligned tokens more with moment/ldml and renamed to ldml in the code. - Modified
Array#at
andString#at
to use arrays instead of enumerated arguments. - โ Removed mixed modes for
String#hankaku
andString#zenkaku
. - ๐ Modified
String#replaceTags
andString#stripTags
to simplify argument signature and small performance boost. - โ Added
Array#isEqual
. - ๐ Renamed
RegExp#addFlag
andRegExp#removeFlag
toRegExp#addFlags
andRegExp#removeFlags
, and ensured they work on multiple flags. - Created new module
enumerable
, and split out array methods. - โ Removed
Array#findAll
in favor ofArray#filter
andArray#filterFromIndex
. - Replaced
Object.findAll
withObject.filter
. Array#isEmpty
now only checks for zero length.- โก๏ธ Moved
Object.select
andObject.reject
to enumerable module and updated to match objects on key existence. - โ Added
Object.remove
andObject.exclude
. - โ Added
Array#append
to take the place ofArray#add
.Array#add
now is non-destructive.Array#insert
now aliasesappend
instead ofadd
. - โ Removed
Array#include
(now is identical toArray#add
). - โ Added
Object.invert
. - ๐ Moved
String#titleize
to String module from Inflections. - Modified
Object.has
to allow deep keys. Also added a flag to allow properties in the prototype. - โ Removed
Object.extended
and all trace of Hashes in favor of Sugar chainables. - โ Added date unit methods to ranges.
- ๐ Allowed excepting and allowing entire namespaces.
- Flipped "si" argument to Number#bytes to instead be "binary".
- Modified
String#capitalize
to have an extra parameter for downcasing. - ๐จ Refactored inflections module to have a more straightforward API.
- โก๏ธ Updated
Array#sortBy
to not clone the array by default. - Modified
Date#reset
to use higher units to make more semantic sense. - Reversed arguments in
Date#relative
. - โ Removed
Array#each
in favor ofArray#forEachFromIndex
in cases where the index is needed. - โ Added
fromIndex
methods. MovedfindFrom
andfindIndexFrom
to be inline with these. - ๐ Renamed
Object.each
toObject.forEach
to bring it in line with other methods. - ๐ Changed
Array#subtract
,Array#intersect
, andArray#union
to only accept a single argument to follow other methods more closely. - โ Removed
String#add
, which on its own is largely useless in favor ofString#insert
which was previously an alias. - โ Removed
all
andany
aliases. - ๐ Moved the
step
argument inNumber#upto
andNumber#downto
to be an optional 2nd argument. - โ Removed callbacks in
Object.keys
andObject.values
.Object.forEach
should be preferred method of iteration. - ๐ Changed object iteration callbacks to be value first.
- ๐ Renamed
String#each
toString#forEach
. - ๐ Changed
min/max/least/most
args to put the callback at the end. - โ Removed
String#paragraphs
. - โ Added
Object.addAll
.
-
v1.5.1
August 02, 2016 -
v1.5.0 Changes
November 05, 2016 -
v1.4.2 Changes
API Changes
- โ Added ability to pass a single string to
Date.range
- Bower.json now points to unminified script (#388)
- Date.create(null) is now interpeted as a time stamp (#387)
- ๐ Fix for ambiguous years not working with
Date#past/future
(#383) - ๐ Fix for odd iOS7 bug with
Number#abs
(#400)
- โ Added ability to pass a single string to