Skip to content

Commit 0865857

Browse files
Merge pull request #460 from spencermountain/dev
Dev
2 parents 6910a44 + e3378f7 commit 0865857

15 files changed

Lines changed: 1582 additions & 4216 deletions

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [18.x, 22.x, 24.x]
11+
node-version: [20.x, 26.x]
1212

1313
steps:
1414
- uses: actions/checkout@v4
@@ -18,23 +18,13 @@ jobs:
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020

21-
- name: cache dependencies
22-
uses: actions/cache@v4
23-
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-npm-${{ matrix.node-version }}-
28-
${{ runner.os }}-npm-
29-
3021
- name: npm install, build, and test
3122
run: |
3223
npm ci
33-
npm i eslint ts-node typescript
3424
npm run lint
3525
npm run pack
26+
npm run test
3627
npm run build
3728
npm run testb
38-
# npm run test:types
3929
env:
4030
CI: true

.github/workflows/coverage.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: '20'
18-
19-
- uses: actions/cache@v4
20-
with:
21-
path: ~/.npm
22-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23-
restore-keys: |
24-
${{ runner.os }}-node-
17+
node-version: 'lts/*'
18+
registry-url: 'https://registry.npmjs.org'
2519

2620
- run: npm ci
2721
- run: npm run codecov

.github/workflows/release.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,24 @@ on:
77
jobs:
88
release:
99
runs-on: ubuntu-latest
10+
1011
permissions:
11-
contents: read
1212
id-token: write
13-
env:
14-
CI: true
13+
contents: read
1514

16-
# Note that these steps are *identical* to build-and-test (with the caveat
17-
# that build-and-test uses several versions of Node, and Release only uses
18-
# 10.x) at least until the actual publishing happens. Ideally, we could
19-
# delegate to the build- and-test workflow, but I haven't found a way to do
20-
# that yet.
2115
steps:
2216
- uses: actions/checkout@v4
2317
with:
2418
persist-credentials: false
25-
- uses: actions/setup-node@v4
26-
with:
27-
node-version: 20.x
2819

29-
- name: cache dependencies
30-
uses: actions/cache@v3
31-
with:
32-
path: ~/.npm
33-
key: ${{ runner.os }}-npm-10.x-${{ hashFiles('package-lock.json') }}
34-
restore-keys: |
35-
${{ runner.os }}-npm-10.x-
36-
${{ runner.os }}-npm-
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 'lts/*'
23+
registry-url: 'https://registry.npmjs.org'
3724

3825
- name: install
3926
run: |
4027
npm ci
41-
npm i --no-save eslint ts-node typescript
4228
4329
- name: static checks
4430
run: |
@@ -50,12 +36,9 @@ jobs:
5036
5137
- name: test
5238
run: |
39+
npm run test
5340
npm run testb
54-
npm run test:types
5541
56-
# And finally... publish it! Note that we create the .npmrc file
57-
# "just in time" so that `npm publish` can get the auth token from the
58-
# environment
5942
- name: publish
6043
run: |
6144
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

builds/spacetime.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* spencermountain/spacetime 7.12.0 Apache 2.0 */
1+
/* spencermountain/spacetime 7.12.1 Apache 2.0 */
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
44
typeof define === 'function' && define.amd ? define(factory) :
@@ -1385,7 +1385,7 @@
13851385
s.tz = input.tz;
13861386
return s
13871387
}
1388-
const obj = Object.assign({}, input, today);
1388+
const obj = Object.assign({}, today, input);
13891389
s = parseObject(s, obj);
13901390
return s
13911391
}
@@ -4176,7 +4176,7 @@
41764176
return tzs
41774177
};
41784178

4179-
var version = '7.12.0';
4179+
var version = '7.12.1';
41804180

41814181
const main = (input, tz, options) => new SpaceTime(input, tz, options);
41824182

builds/spacetime.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builds/spacetime.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ This project follows semVer, where:
99
1010
-->
1111

12+
### 7.12.1 [May 2026]
13+
- **[fix]** - regression for today param in object format
14+
- **[change]** - add npm ignore-scripts=true
15+
- **[update]** - github actions scripts
16+
- **[update]** - dependencies
17+
1218
### 7.12.0 [Dec 2025]
1319
- **[update]** - update zonefile to 2026 DST dates
1420
- **[update]** - update dependencies

0 commit comments

Comments
 (0)