Skip to content

Commit c29e888

Browse files
committed
utc tomorrow closes #30
1 parent 9fefc4c commit c29e888

File tree

12 files changed

+466
-1269
lines changed

12 files changed

+466
-1269
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# deverything
22

3+
## 3.3.0
4+
5+
### Minor Changes
6+
7+
- utc tomorrow
8+
39
## 3.2.0
410

511
### Breaking Changes for getDateRangeSeries (not bumping major pkg version)

README.md

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Contributions always welcome!
1717
### Validators
1818

1919
- `isArray()`
20+
- `isArrayIncluded()`
2021
- `isBoolean()`
2122
- `isBrowser()` to detect if you are on the browser
2223
- `isBuffer()` if it's a buffer
@@ -42,6 +43,7 @@ Contributions always welcome!
4243
- `isPositiveInt()`
4344
- `isNegativeInt()`
4445
- `isNumeric()` if string is representing a number
46+
- `isNumericId()` if it's a valid numeric ID
4547
-`isObject()` if it's a js plain Object
4648
- `isPromise()` if it's a promise
4749
- `isPWA()` to detect if you are on a PWA
@@ -50,18 +52,24 @@ Contributions always welcome!
5052
-`isSame()` Compare if dates, functions, arrays, objects or anything else are the same
5153
- `isSequence()` if the array is a perfect sequence
5254
- `isServer()` if you are on the server
55+
- `isSpacedString()` if string contains spaces
5356
- `isString()`
5457
- `isURL()`
5558
- `isUUID()` if it's a valid UUID
59+
- `isValue()` if it's a defined value (not null, undefined, or empty string)
5660

5761
### Dates
5862

63+
- `getDateRangeSeries()` generate a series of dates within a range
5964
- `isOver18()`
65+
- `startOfDay()` get the start of a specific day
6066
- `startOfNextMonth()`
6167
- `startOfNextWeek()`
6268
- `startOfThisWeek()`
6369
- `startOfToday()`
6470
- `startOfTomorrow()`
71+
- `startOfUTCDay()` get the start of a specific day in UTC
72+
- `startOfUTCTomorrow()` get the start of tomorrow in UTC
6573

6674
### Math
6775

@@ -83,14 +91,22 @@ Contributions always welcome!
8391
- `arrayDiff()` get the difference of two arrays
8492
- `arrayIntersection()` get the intersection of two arrays
8593
- `capitalize()` word => Word
94+
- `chunkArray()` split array into chunks
95+
- `chunkedAll()` process all items in chunks
96+
- `chunkedAsync()` process async operations in chunks
97+
- `chunkedDynamic()` process with dynamic chunk sizes
8698
- `clamp()` clamp number in a range
8799
- `cleanSpaces()` trims and turns double spaces into single space
100+
- `cyclicalItem()` get item from array with cyclical indexing
101+
- `dir()` get directory listing
88102
- `enumKeys()` enum FRUIT { APPLE, PEAR } => ["APPLE", "PEAR"]
89103
- `enumValues()` enum FRUIT { APPLE = 1, PEAR = 3 } => [1, 3]
90104
- `filterAlphanumeric()` remove non-alphanumeric characters
91105
- `first()` get the first element of an array
92106
- `firstKey()` get the first key of an object
93107
- `firstValue()` get the first value of an object
108+
- `getCookieByName()` get cookie value by name
109+
- `getKeys()` get all keys from an object
94110
- `getUrlSearchParam()` get URL search param
95111
- `getUrlSearchParams()` get URL search params
96112
- `groupByKey()`
@@ -100,15 +116,21 @@ Contributions always welcome!
100116
- `lastIndex()` get the last index of an array
101117
- `mapByKey()`
102118
-`merge()` deep merge objects
119+
- `mergeArrays()` merge multiple arrays
103120
- `moveToFirst()` move array element to first
104121
- `moveToIndex()` move array element to desired index
105122
- `moveToLast()` move array element to last
106123
- `normalizeNumber()` normalizes between 0 and 1
107124
- `objectDiff()` get the difference between two objects
125+
- `omit()` omit properties from object
108126
-`parseDate()` pass anything Date-Like, and get a JS Date back
127+
- `pickObjectKeys()` pick specific keys from object
128+
- `pickObjectValues()` pick specific values from object
109129
- `pluck()` make array of value from object keys
110130
- `promiseWithTimeout()` takes a promise, a timeoutMs, and an option error as arguments. Returns a new Promise that either resolves with the value of the input promise or rejects with the provided error or a default error message if the input promise does not resolve or reject within the specified timeoutMs.
131+
- `removeUndefinedValues()` remove undefined values from object
111132
- `scrambleText()` replace alpha chars with random chars
133+
- `serialize()` serialize object to string
112134
- `seriesAsync()` executes promises in series, and returns all results
113135
- `setObjectPath()` set a value in an object by path
114136
- `setUrlSearchParams()` set URL search params
@@ -126,6 +148,7 @@ Contributions always welcome!
126148
- `formatNumber()` 1000 => "1,000" or "1K" or 0.112 => "11.2%"
127149
- `formatPercentage()` 0.11 => "11%"
128150
- `formatIndexProgress()` => "[2/10]"
151+
- `formatProgress()` format progress as percentage
129152
- `stringToCSSUnicode()` "hello" => "\000068\000065\00006c\00006c\00006f" use this for CSS
130153
- `stringToUnicode()` "hello" => "\u0068\u0065\u006c\u006c\u006f"
131154

@@ -151,6 +174,7 @@ These functions are optimized for low entropy random data generation useful for
151174
- `randomDateRange()` => { startDate, endDate }
152175
- `randomEmail()`
153176
- `randomEmoji()`
177+
- `randomEmptyValue()` random empty value (null, undefined, empty string)
154178
- `randomEnumKey()` enum FRUIT { APPLE, PEAR } => APPLE
155179
- `randomEnumValue()` enum FRUIT { APPLE = 1, PEAR = 3 } => 3
156180
- `randomFile()`
@@ -190,29 +214,27 @@ These functions are optimized for low entropy random data generation useful for
190214
- `DateLike`
191215
- `Defined<T>`
192216
- `Dimensions`
217+
- `Function`
193218
- `HashMap<>`
194219
- `BoolMap`
195220
- `NumberMap`
196221
- `StringMap`
197222
- `TrueMap`
198223
- `Key`
224+
- `Matrix`
199225
- `Maybe<>`
200226
- `MaybePromise<>`
201227
- `MaybePromiseOrValue<>`
202228
- `MaybePromiseOrValueArray<>`
203229
- `NonUndefined`
204-
- `ObjectEntries<>`
205-
- `ObjectEntry<>`
206-
- `ObjectKey<>`
207-
- `ObjectKeys<>`
208-
- `ObjectValue<>`
209-
- `ObjectValues<>`
210-
-`PlainObject` use this instead of `Record<,>` or `extends object`, also makes sure it's not an array
230+
- `Object`
211231
- `PickDefined<T, K>`
212232
- `PickRequired<T, K>`
213233
- `PlainKey`
214234
- `Point`
215-
- `VoidFn`
235+
- `PrismaSelect`
236+
- `Serialized`
237+
- `Tuple`
216238

217239
## Development
218240

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deverything",
3-
"version": "3.2.0",
3+
"version": "3.3.0",
44
"description": "Everything you need for Dev",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",
@@ -46,7 +46,7 @@
4646
"@babel/core": "^7.24.3",
4747
"@babel/preset-env": "^7.24.3",
4848
"@babel/preset-typescript": "^7.24.1",
49-
"@changesets/cli": "^2.27.1",
49+
"@changesets/cli": "^2.29.4",
5050
"@jest/globals": "^29.7.0",
5151
"@types/jest": "^29.5.12",
5252
"@types/node": "^18.19.26",

0 commit comments

Comments
 (0)