Skip to content

Commit 857ed16

Browse files
authored
Release v1.2.0 (#4)
* Bump version and update dependencies * Added set-value * Fix package.json 'main' path to proper distribution folder * Copyright 2019-2021
1 parent b6dbde7 commit 857ed16

File tree

7 files changed

+1051
-1037
lines changed

7 files changed

+1051
-1037
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ The af-utilities library provides utility classes and functions used throughout
2424

2525
`defaultTimers` - an instance of TaskTimerManager using the `DEFAULT_TASK_TIMER_MANAGER_NAME` as the name for the instance.
2626

27+
## Functions Provided
28+
29+
`setValue` - this function provides an easy way to set defaults while checking for an usable value or not. This function can also be used to ensure a consistent value of `undefined` for `undefined` or `null` values. If you leave `defaultValue` undefined, it will be returned when `newValue` is unusable (which is `undefined` or `null`).
30+
2731
## [Support Issues](https://github.com/acmeframework/af-utilities/issues)
2832

2933
## Release Notes
@@ -36,9 +40,19 @@ This is the initial release version. The code has been thoroughly tested with 10
3640

3741
Updates to dependencies to remove security vulnerabilities. Updates to the packaging.
3842

43+
### v1.1.1 - Dependency Updates
44+
45+
Updated all dependencies to the latest releases. This fixed an vulnerability with Handlebars which was a nested dependency. Handlebars is no longer a nested dependency with this release.
46+
47+
### v1.2.0 - Minor new features
48+
49+
- Added a new method to the TaskTimer class that now allows you to define your own current time source. This can be used to provide a more accurate time source than the default `Date.now()`. This change is fully backward compatible.
50+
- Added a new utility function:
51+
- `setValue`
52+
3953
## The MIT License
4054

41-
Copyright © 2019 Acme Framework
55+
Copyright © 2019-2021 Acme Framework
4256

4357
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4458

package-lock.json

Lines changed: 651 additions & 754 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "af-utilities",
3-
"version": "1.1.1",
3+
"version": "1.2.0",
44
"description": "Utility functions used within the af-XXXX Frameworks and Libraries",
5-
"main": "build/lib/index.js",
5+
"main": "dist/lib/index.js",
66
"scripts": {
77
"clean-dist": "rm -rf dist",
88
"clean-reports": "rm -rf reports && rm -rf .nyc_output",
@@ -42,24 +42,24 @@
4242
"homepage": "https://github.com/acmeframework/af-utilities",
4343
"dependencies": {
4444
"af-conditionals": "^1.1.1",
45-
"tslib": "^1.10.0",
46-
"uuid": "^3.3.3"
45+
"tslib": "^1.11.1",
46+
"uuid": "^7.0.3"
4747
},
4848
"devDependencies": {
49-
"@types/chai": "^4.2.7",
50-
"@types/mocha": "^5.2.7",
51-
"@types/node": "^13.1.4",
52-
"@types/sinon": "^7.5.1",
53-
"@types/uuid": "^3.4.6",
49+
"@types/chai": "^4.2.11",
50+
"@types/mocha": "^7.0.2",
51+
"@types/node": "^13.13.2",
52+
"@types/sinon": "^9.0.0",
53+
"@types/uuid": "^7.0.2",
5454
"chai": "^4.2.0",
55-
"coveralls": "^3.0.9",
56-
"mocha": "^7.0.0",
57-
"mochawesome": "^4.1.0",
58-
"nyc": "^15.0.0",
59-
"sinon": "^8.0.2",
60-
"source-map-support": "^0.5.16",
61-
"ts-node": "^8.5.4",
62-
"tslint": "^5.20.1",
63-
"typescript": "^3.7.4"
55+
"coveralls": "^3.0.13",
56+
"mocha": "^7.1.1",
57+
"mochawesome": "^6.1.0",
58+
"nyc": "^15.0.1",
59+
"sinon": "^9.0.2",
60+
"source-map-support": "^0.5.18",
61+
"ts-node": "^8.9.0",
62+
"tslint": "^6.1.1",
63+
"typescript": "^3.8.3"
6464
}
6565
}

src/lib/util/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
export * from './task-timers';
21
export * from './logging';
2+
export * from './set-value';
3+
export * from './task-timers';

0 commit comments

Comments
 (0)