@aurodesignsystem/auro-library 5.9.0 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
# [5.10.0](https://github.com/AlaskaAirlines/auro-library/compare/v5.9.0...v5.10.0) (2026-02-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add class for unique ID generation [#220](https://github.com/AlaskaAirlines/auro-library/issues/220) ([8b7318c](https://github.com/AlaskaAirlines/auro-library/commit/8b7318c7e08c5c5cf858352a3801a680fc63204b))
|
|
9
|
+
|
|
3
10
|
# [5.9.0](https://github.com/AlaskaAirlines/auro-library/compare/v5.8.0...v5.9.0) (2026-01-28)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./uniqueHash.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class for generating unique hashes based on the current timestamp.
|
|
3
|
+
* This can be used to create unique identifiers for elements or data within an application,
|
|
4
|
+
* ensuring that each identifier is distinct and can be easily generated without the need
|
|
5
|
+
* for external libraries or complex algorithms.
|
|
6
|
+
*/
|
|
7
|
+
export class UniqueId {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a unique hash based on the current timestamp.
|
|
10
|
+
* @returns {Function} Timestamp as a base-36 string
|
|
11
|
+
*/
|
|
12
|
+
create() {
|
|
13
|
+
return Date.now().toString(36);
|
|
14
|
+
}
|
|
15
|
+
}
|