All notable changes to this project will be documented in this file. Dates are displayed in UTC.
Generated by auto-changelog.
28 March 2026
- Bump handlebars from 4.7.8 to 4.7.9
#249 - Updating documentation
fac0c01 - Adding 'coverage.txt'
2f00cbd - Updating README.md
5167a56
25 March 2026
- Major refactor, documentation overhaul, and community best practices
#248 - Bump rollup from 4.59.0 to 4.60.0
#246 - Bump flatted from 3.3.3 to 3.4.2
#245 - Bump @rollup/plugin-terser from 0.4.4 to 1.0.0
#243 - Bump minimatch
#242 - Bump c8 from 10.1.3 to 11.0.0
#241 - Bump rollup from 4.57.1 to 4.59.0
#239 - Bump rollup from 4.57.0 to 4.57.1
#236 - Bump rollup from 4.56.0 to 4.57.0
#235 - Bump rollup from 4.55.3 to 4.56.0
#234 - Bump rollup from 4.55.2 to 4.55.3
#233 - Bump rollup from 4.55.1 to 4.55.2
#232 - Bump rollup from 4.54.0 to 4.55.1
#231 - Bump rollup from 4.53.5 to 4.54.0
#230 - Bump rollup from 4.53.4 to 4.53.5
#229 - Bump rollup from 4.53.3 to 4.53.4
#228 - Bump eslint from 9.39.1 to 9.39.2
#227 - Bump actions/checkout from 5 to 6
#226 - Bump rollup from 4.53.2 to 4.53.3
#225 - Bump glob from 10.4.5 to 10.5.0
#224 - Bump js-yaml from 4.1.0 to 4.1.1
#223 - Bump rollup from 4.53.1 to 4.53.2
#222 - Bump rollup from 4.52.5 to 4.53.1
#221 - Bump mocha from 11.7.4 to 11.7.5
#220 - Bump eslint from 9.39.0 to 9.39.1
#219 - Bump eslint from 9.38.0 to 9.39.0
#218 - Bump actions/setup-node from 5 to 6
#217 - Bump rollup from 4.52.4 to 4.52.5
#216 - Bump eslint from 9.37.0 to 9.38.0
#215 - Bump eslint from 9.36.0 to 9.37.0
#214 - Bump rollup from 4.52.3 to 4.52.4
#213 - Bump mocha from 11.7.3 to 11.7.4
#212 - Bump mocha from 11.7.2 to 11.7.3
#211 - Bump rollup from 4.52.2 to 4.52.3
#210 - Bump rollup from 4.52.1 to 4.52.2
#209 - Bump rollup from 4.52.0 to 4.52.1
#208 - Generating CHANGELOG.md
0a79afd - Version bump
443e3cc
21 September 2025
21 September 2025
21 September 2025
19 September 2025
19 September 2025
- Optimizations
#206 - Version bump
6c22783 - Updating documentation
f38cabf - Updating documentation
5d06823
19 September 2025
19 September 2025
19 September 2025
- Taking a mulligan on 'precision'
#203 - Bump rollup from 4.50.1 to 4.50.2
#199 - Bump actions/setup-node from 4 to 5
#198 - Bump rollup from 4.50.0 to 4.50.1
#197 - Bump eslint from 9.34.0 to 9.35.0
#196 - Bump mocha from 11.7.1 to 11.7.2
#195 - Bump rollup from 4.49.0 to 4.50.0
#194 - Bump rollup from 4.44.2 to 4.49.0
#193 - Bump eslint from 9.30.1 to 9.34.0
#192 - Bump actions/checkout from 4 to 5
#191 - Updating tests
017e5b1 - Adding 'Mathematical Foundation' section to 'TECHNICAL_DOCUMENTATION.md'
ec20636 - Updating documentation
ef70bf8
16 July 2025
13 July 2025
11 July 2025
4 September 2024
- Fixing regression due to rollup config, fixes #185
#185 - Missed the nullish coercion with last commit
10d1fc6 - Generated CHANGELOG.md
6eaa3ce - Generated CHANGELOG.md
b480b29
3 September 2024
- Fixing implementation of 'pad' such that 'separator' is not required for it to be applied, fixes #184
#184 - Generated CHANGELOG.md
0248be0
8 July 2024
8 July 2024
- fix: add bigint in filesize.d.ts
#183 - Bump braces from 3.0.2 to 3.0.3
#182 - Updating dependencies
400b3e3 - Generated CHANGELOG.md
5b2198a
11 May 2024
- fix: input type should accept string
#181 - Version bump to release, generating CHANGELOG.md
e840b87 - Updating the year in LICENSE & README.md
c9840ae
21 March 2024
- Rework types to allow Parameters<typeof filesize> to function properly
#180 - Bump @babel/traverse from 7.23.0 to 7.23.2
#178 - Version bump to release new types declaration
cf1dcb7 - change: rework types to allow usages like Parameters<typeof filesize>
fbfc87f - Generating CHANGELOG.md
d80c457
3 October 2023
- Fixing tests to use
strictEqual()6b4b108 - Simplifying the assignment of
base&standard, adding ansialias to correct implementations, fixing tests for the standards, adding tests forsistandard, updating types, updating README.md720c032 - Generated CHANGELOG.md
b591a66
3 October 2023
- Symbol option type fix
#177 - Merge latest
#1 - Adding a test, fixing a test, adding
nycfor test coverage reporting, updatingREADME.md, returning.npmignore, updating.gitignore7a61c30 - Adding a workflow
cb26761 - Adding husky for a pre-commit hook
0e7d0ba
12 August 2023
- Allow passing options without output property
#174 - remove any usage and allow passing options without output property
c42acc0 - Version bump, generating CHANGELOG.md
901be1f
10 August 2023
10 August 2023
- Revert "Tweaking types and removing any usage"
3aee3e8 - Version bump to release, generating CHANGELOG.md
d1c1247
9 August 2023
27 July 2023
- fixup: Add interface for filesize options object
#171 - Bump word-wrap from 1.2.3 to 1.2.4
#170 - Version bump to release, generating CHANGELOG.md
c9fff4f
29 March 2023
- Updating copyright year in README.md & LICENSE, updating dependencies
4de5566 - Updating CHANGELOG.md
d41818f - Generating CHANGELOG.md
a324b71
12 December 2022
- Setting
engines.nodeto>= 10.4.0for lowest version supportingBigInt, fixingnpm run buildfor windows (needsgow)0a4d329 - Minor tweak
daf5389 - Updating CHANGELOG.md
d110a35
12 December 2022
- Fix web pack
#164 - Reverting revert to default export, removing
browserkey frompackage.jsonas it's redirection away frommainormoduleis what breaks webpack, fixes #162#162 - Version bump to release reverted README.md
ee1a977 - Updating CHANGELOG.md, version bump to release
71a6336 - Revert "Updating README.md"
87f817c
29 September 2022
- Switching back to a default export for webpack issues (unsure of where the issue is atm), fixes #162
#162 - Building version bump
b80a38d - Updating README.md
d826155 - Updating CHANGELOG.md
bd259de
28 September 2022
- Fixing rollup config (copy/pasta), version bump to release, fixes #162
#162 - Updating CHANGELOG.md
24501d0
28 September 2022
- Lowering minimum version to 14.0.0, fixes #161
#161 - Building with new version number, updating CHANGELOG.md
9d81ad1
28 September 2022
- BigInts and named exports
#160 - Adding support for
BigIntnumbers, fixes #146#146 - Building with revision dependencies
00ff1ae - Updating tests to run within
mocha091a7cc - Regenerating CHANGELOG.md
3b40756
27 June 2022
- Adding invaid
base 10 iectest set, building38221a0 - Adding invaid
base 10 iectest set, building, version bump to release7b75cae - Updating changelog
893d312
27 June 2022
- Fixing base 2 jedec regression with refactoring
#158 - Adding dupe set of
base2tests explicitly set tojedecstandard to expose logic error1281269 - Fixing the conditional statement which assigns
standardifbasehas been specified, updatingbittests inbase2Jedecsetdc7c3a4 - Version bump to release
f924463
17 June 2022
- Fix regression of output from 9.x.x
#155 - Returning original logic, taking tests from 8.x.x, creating a constants.js & moving all strings into it as named exports
22c3911 - Building
295907c - Fixing unit assignment (WIP)
70bb6a1
16 June 2022
- Updating README.md to remove examples, fixes #154
#154 - Version bump to release updated README.md, updating changelog
c798056
16 June 2022
- Returning strict mode to core function
f6d2b87 - Version bump to release, updating CHANGELOG.md
06e4214 - Building
8f6641b
16 June 2022
- Fixing assignment of
baseand returning original behavior, fixing base2 tests35aedfd - Version bump to release, updating CHANGELOG.md
f2e7bde
16 June 2022
16 June 2022
16 June 2022
11 June 2022
- Fix type inference for output: 'array' when precision is configured
#151 - Updating CHANGELOG.md
04542c6 - Building for new banner
3ff8295 - Updating CHANGELOG.md
6bd0ee0
1 June 2022
- Updating the signature to use destructuring, removing edge case assignments on invalid inputs (fail by design)
a833bb5 - Removing more defaults from test
3c6bcb5
26 May 2022
- Fixing output
#149 - Updating dependencies, version bump to release
6284219 - Updating CHANGELOG.md
1223f8d - Removing
unixoption, fixing assignment ofstandard& updating tests3eb5bb2
19 January 2022
- [typescript] Add pad, precision, & roundingMethod
#145 - Fixing a duplicate declaration within
filesize.d.tsfrom recent merge, building, updating copyright years, & version bump to release2dbc4bc
31 October 2021
- Updating dependencies, fixing
test:unit, building to update version inlib/**,updating CHANGELOG.md, version bump to releaseb6628f8
27 October 2021
- Fixing type comments of
baseandstandard#143 - Updating CHANGELOG.md, version bump to release
bec8e12
27 October 2021
- feat: infer result type correctly with TypeScript (no "npx tsc")
#144 - feat: infer result type correctly with TypeScript
#142 - Updating CHANGELOG.md, version bump to release
ef24fdc - Revert "Merge pull request #142 from tomoto/feat/infer-result-type-with-typescript"
2b2d508
13 September 2021
- Revert "Fixing assignment of
standardsuch that it aligns with the README (default of "iec") & updating tests, fixing hardcoded copyright year in rollup.config.js, version bump to release"afd78c2 - Updating CHANGELOG.md
68aeed5
12 September 2021
- Version bump to release, updating dependencies
9a1fd51 - Updating CHANGELOG.md
5024749 - SI is not a symbol family, it's a synonym for 'base: 10'
44d8bc9
12 September 2021
- Fixing assignment of
standardsuch that it aligns with the README (default of "iec") & updating tests, fixing hardcoded copyright year in rollup.config.js, version bump to releasebb72429
18 August 2021
- Make SI and IEC standards defaults
#138 - Update symbols for bits to "bit"
#136 - Make SI and IEC standards defaults
#137 - Updating lock file, updating changelog, version bump to release & building outputs
9633cda - Updating CHANGELOG.md
f89b102
11 July 2021
- Build an ES6 module as well
#134 - Updating CHANGELOG.md
713000e - Updating dev dependencies, major version bump to release new
modulevalue inpackage.json, adding.esmfiles in/lib4c4363a
29 June 2021
- Precision option
#133 - Implementing
precisionoption with tests, fixes #117, fixes #132#117#132 - Updating README.md & dev dependencies
8ec6429 - Version bump to release
d431869 - Updating CHANGELOG.md
0f4cf40
21 April 2021
- [feature suggestion] add roundingMethod option
#131 - add roundingMethod option
f2acf64 - Version bump to release
roundingMethodoption26735f6 - Updating CHANGELOG.md
e1448a6
19 April 2021
15 April 2021
- Removing the multiple
returnstatements from the end offilesize(), tweaking order of final changes1d19261 - Updating CHANGELOG.md
ae2c8f9
15 April 2021
15 April 2021
- Updating dependencies, updating
bannerShortinrollup.config.js86b4374 - Updating CHANGELOG.md
493e759 - Fixing README.md
f6667c8
13 April 2021
- Small package cleanup
#130 - Remove support for bower
51d4eb6 - Remove support for composer/packagist
90b3e28 - Remove .npmignore
e6bc23d
13 April 2021
- Adding
unittoobjectoutput#129 - Fixing
arrayoutput such thatfullformis a potential output#128 - Adding
padoptional setting to pad the ending of decimal place#127 - Adding
padoptional setting to pad the ending of decimal place, fixes #117#117 - Version bump to release
98a59b1
13 April 2021
- Replace build system with rollup
#124 - Updating copyright years in LICENSE & README.md, version bump to signal new build tool chain
098538d - Upgrade babel to version 7
26d7a75 - Remove grunt
5faab68
21 February 2020
- Adding
exponenttoobjectoutput, fixes #112#113 - Merge pull request #113 from avoidwork/exponents
#112 - Adding
exponenttoobjectoutput, fixes #112#112 - Using
auto-changelogto generate a formatted changelog, fixes #110#110 - Updating CHANGELOG
d1b726a - Updating LICENSE
8acef4c - Create FUNDING.yml
6eb9744
8 November 2019
30 October 2019
- Create FUNDING.yml
#106 - Revert "Fixing the hackish type definition, fixes #105"
#105 - Revert "Merge pull request #104 from avoidwork/modernize"
3909b04 - Reverting modern build as it's too problematic at this time, major version bump to roll forward
71a9ead - Revert "Merge pull request #106 from avoidwork/avoidwork-patch-1"
ec99f00
8 October 2019
7 October 2019
- git-log based CHANGELOG via
npm run changelogd8415f5 - Adding CHANGELOG to
.npmignorewith minor version bump to prep for changes2a9e78d
30 September 2019
- Fixing the hackish type definition, fixes #105
#105
30 September 2019
- Modernizing build & outputs
#104 - Updating
.npmignore5715622 - Updating typescript module definition
2e3d1bb
25 September 2019
- Fixing case where rounding results in the wrong exponent, fixes #103
#103 - Updating travis-ci.org config
5b362af
11 September 2019
- Add support for localeOptions option: allow customization of i18n output
#102 - Bump mixin-deep from 1.3.1 to 1.3.2
#101 - Bump eslint-utils from 1.3.1 to 1.4.2
#99 - Updating dependencies, version bump to release #102
ab80f87 - add support for localeOptions
6505945 - build
b9f7fb4
15 February 2019
- Refactoring
localeoption to acceptStringorBooleanvalues, re-organizing code such that anexponentoutput skips unneeded opsdd8f754
13 February 2019
- Fixing order of ops that could've impacted
objectoutput3b71615
14 February 2019
- Adding
localeoption which overridesseparator, fixes #96#96
12 January 2019
- Removing deprecated
suffixesoption with a major version bump, updating README & LICENSE copyrights, updating dev dependenciesa0b268f - Updating README
81e5499 - Updating travis-ci.org configuration
5bcc3c4
24 March 2018
- Including ES6 version with
npm install, updating grunt build such that more files are lintedfb9bd3e - oops
dc04050
3 February 2018
- Adding
separatoroption, fixes #93#93
18 October 2017
- Add CDNJS version badge in README.md
#90 - Updating build dependencies, travis-ci.org config, fixing banner alignment in uglify output
20baedd
19 May 2017
30 April 2017
- Removing loader script as it apparently breaks browserify/webpack loading (sigh)
54d9770
29 April 2017
- Adding
index.jsto load es5 or es6 depending on the test environment0e07bba
29 April 2017
- Adding
babilitask to minify the es6 file, fixes #86#86
6 March 2017
- Building missing files, updating README
77db546
24 February 2017
- Changing things such that you can do
filesize(0, {exponent: n})and get the correct result, adding a test, fixes #85#85 - Updating example in README
7c75121 - Updating example in README
1f6c51f
24 January 2017
- Adding
fullformsfor overriding full form727db07
24 January 2017
- Fixing
0 bytesd957df3
24 January 2017
- Updating README
7bc227e
24 January 2017
- Correcting
longformtofullform1dee34f
24 January 2017
- Adding
longformflag, fixing markdown in README7d8b650
23 January 2017
- Oops, fixes #84
#84
21 January 2017
- Simplifying
filesize.partial()& adding a test4d1e9ea
19 January 2017
- Changing a statement to be a little easier to read, updating build status graphic to be SVG for better rendering on various devices
de2e388 - Updating
travis-ci.orgconfig 'cause the eslint dep requires es6 engine without astrictEngine(so pro)c1d40b5 - Fixing alignment of the example in README
245aa6d
19 January 2017
- improve format
#83 - Creating
filesize.partial()for creating a partial application / functional programming style, updating dependencies, fixing lint errors, updating README & LICENSE copyright year, updating README to coverfilesize.partial()1ba7b0c - Adding a downloads shield to the README ... 'cause why not
81bc1d2
23 April 2016
- Adding support for IEC standard via new
standarddescriptor property (defaults tojedec), fixes #80#80 - Handling bits, and
basecollision70048cb - Minor optimization by looking at the exponent vs the string length
d795026 - Updating a comment
0521336
30 January 2016
- add test case for huge number
#76 - Fixing invalid results for small & large bit values, fixes #77
#77
22 January 2016
- Fixing a poor choice in wording by marking
suffixesfor deprecation & moving tosymbols, updating README (fixes #72, #73)#72
19 January 2016
- Fixing kilobit & kilobyte symbols by ensuring JEDEC for base 2 & SI for base 10, fixes #69
#69 - Removing
.ideafile from npm, fixes #71#71 - Updating travis-ci to test node 5.4.x
df5d39d
22 December 2015
- Add bower manifest
#67 - Fixing
bitsuffix & updating build to use latest version of babel, fixes #68#68 - Fixing package.json
71cc5a5
13 November 2015
27 July 2015
27 February 2015
- Removing unneeded nesting of conditionals
a4448cd
24 February 2015
- Updating to transpiler to
babel4.0.0, reformatting some statements for readability, movingconststo the top of the libfc3714f - Updating travis file
4fd4373
4 February 2015
- Add a Gitter chat badge to README.md
#60 - Refactored to ES6, with transpiling to ES5
f214346 - Update README.md
db1df8e - Added Gitter badge
905c6b5
29 January 2015
- Fixing an error in exponent calculation such that
ceilis utilized & added two tests, fixes #59#59
12 January 2015
- Adding the ability to specify the
exponentused for determining the file size, and addingexponentas an output value (feature request by email)0af5ea1
4 January 2015
- Composer support
#58 - Refactoring
filesize()to outputArray&Objectshapes, & changing defaultbaseto2, reformatting code based on IDE settings (not included)a7fe91b - add composer.json
f53152d
2 October 2014
- Fixes #55 by avoiding type mutation, fixing CI tests by removing node 0.8.x
#55
28 February 2014
28 February 2014
- Removing a file
#52 - Optimizations
#51 - Changing the method of generating
result98f34a1 - Generating a String instead of an Array for 'unix mode'
7e46fd9
24 February 2014
- Adding language overriding via optional
suffixesdictionary#49
12 October 2013
- Major refactoring, API change
#47 - Initial refactor for 2.0.0
c401052 - Completing 2.0.0
09a7dbc - Updating README
d68c555
19 July 2013
- Typo
#42 - Updating README
#41 - Switching to base 10
#40 - Updating example in README
c148806 - Minor change
49ecfc2
8 July 2013
- Fixing scientific notation (google!), fixes #39
#39
5 July 2013
18 June 2013
13 June 2013
- Minor change
#35 - Updating
README.mdexamples#34 - Refactoring
#33 - Updated grunt build, implemented
jshintfor linting, fixes #32#32 - Removing unused grunt module
11f0d72 - Returning
grunt-clitopackage.json191baa4
14 April 2013
11 April 2013
7 April 2013
- Minor change
#29 - Updating README.md
#27 - Updating
.npmignoreto ignore unneeded files for distribution, fixes #28#28
7 April 2013
3 March 2013
- Optimizations
#24 - Caching variables in closure scope, upgraded to grunt 0.4.0, fixed license link in README.md
7648fee
5 February 2013
5 February 2013
5 February 2013
- Optimizations
#18 - Optimizations; kudos to @marktucker for looking over the lib
e5965f0 - 💎 Added travis.yml file 💎
785ae92
5 February 2013
- Minor optimization
#17 - Optimizing the negative number flip using the simplest method (minus operator)
0fb401c
2 February 2013
2 February 2013
2 February 2013
- Minor refactoring
#13 - Adding support for negative sizes, fixes #12
#12 - Adding license for proper attribution in a retail product
e1a3ea5 - Adding license for proper attribution in a retail product
4a167c2
2 November 2012
- Minor changes
#11 - Refactored to utilize regex tests instead of string comparisons, minor version bump
bfa1398
2 November 2012
- Minor changes
#10 - Fixing shorthand for
bitsuffixes2222c6e - Updated README
1d0eb61 - Updated README
5ffc824
2 November 2012
- Refactored
#9 - Extended size ranges to support Byte - PetaByte based on the new standard definitions
97a497c - Version bump
5341f0b
2 November 2012
- Minor refactoring
#8 - The repo your repo could be like!
#7 - Specified the base/radix for parseInt() & simplified the number cast
8315027 - Fixing a test
f487a26 - 💎 Added travis.yml file 💎
497a6f9
15 August 2012
- Shouldn't have been in the commit
#6 - Correcting dir structure
#5 - Implemented a grunt build process & unit tests
#4 - Removing deprecated variables, moving tag
6cfdca0 - Fixing npm path
cc36eac - Updating npm package.json, moving tag
ce70843
22 June 2012
- Add a jam ignore to reduce packaged size
#3 - Made it faster
f2126d0 - Removing unnecessary ops, making the AMD loading anonymous, updated docblock
cf2c698 - Generated a proper package.json
59d04ab
2 May 2012
30 April 2012
- Added an optional third boolean parameter to emulate "ls -lh" output, which overrides "pos" parameter
33b074c
16 March 2012
- Add parameter validation, fixed byte output, updated docblock
329e874 - Removing window references
1375bdc - Fixing AMD loading
21e2aa7
8 March 2012
4 March 2012
2 March 2012
- Added 'byte' as the smallest size, fixes S3 file size computing, etc.
829b250 - Updated README
11f5015
2 March 2012