@beauraines/rtm-api 1.14.0 → 1.14.2

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.
@@ -6,12 +6,16 @@ on:
6
6
  types: [completed]
7
7
  branches: [main]
8
8
 
9
+ permissions:
10
+ contents: write
11
+ id-token: write
12
+
9
13
  jobs:
10
14
  publish-new-version:
11
15
  runs-on: ubuntu-latest
12
16
  if: ${{ github.event.workflow_run.conclusion == 'success' }}
13
17
  steps:
14
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v6
15
19
  with:
16
20
  fetch-depth: '0'
17
21
  - name: git setup
@@ -19,10 +23,11 @@ jobs:
19
23
  git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
20
24
  git config --local user.name "github-actions[bot]"
21
25
  - name: setup node
22
- uses: actions/setup-node@v3
26
+ uses: actions/setup-node@v6
23
27
  with:
24
- node-version: 20.x
28
+ node-version: '24'
25
29
  registry-url: 'https://registry.npmjs.org'
30
+ cache: 'npm'
26
31
  - name: npm install
27
32
  run: npm ci
28
33
 
@@ -41,13 +46,11 @@ jobs:
41
46
 
42
47
  - name: Publish to NPM
43
48
  if: steps.should_release.outcome == 'success'
44
- run: npm publish
45
- env:
46
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49
+ run: npm publish --provenance
47
50
 
48
51
  - name: Push commits to GitHub
49
52
  if: steps.should_release.outcome == 'success'
50
- uses: ad-m/github-push-action@master
53
+ uses: ad-m/github-push-action@v1.0.0
51
54
  with:
52
55
  github_token: ${{ secrets.GITHUB_TOKEN }}
53
56
  branch: ${{ github.ref }}
@@ -6,6 +6,9 @@ on:
6
6
  pull_request:
7
7
  branches: [ main,master ]
8
8
 
9
+ permissions:
10
+ contents: read
11
+
9
12
  jobs:
10
13
  build:
11
14
 
@@ -13,13 +16,14 @@ jobs:
13
16
 
14
17
  strategy:
15
18
  matrix:
16
- node-version: [18.x,20.x]
19
+ node-version: [20.x,22.x]
17
20
 
18
21
  steps:
19
- - uses: actions/checkout@v3
22
+ - uses: actions/checkout@v6
20
23
  - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v3
24
+ uses: actions/setup-node@v6
22
25
  with:
23
26
  node-version: ${{ matrix.node-version }}
27
+ cache: 'npm'
24
28
  - run: npm ci
25
29
  - run: npm test
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.14.2](https://github.com/beauraines/rtm-api/compare/v1.14.1...v1.14.2) (2026-03-24)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **deps:** bump lodash from 4.17.21 to 4.17.23 ([#77](https://github.com/beauraines/rtm-api/issues/77)) ([a488bac](https://github.com/beauraines/rtm-api/commit/a488bac293e7e5b4d23d1edd51cb43106bc3aa11)), closes [#6088](https://github.com/beauraines/rtm-api/issues/6088) [#6071](https://github.com/beauraines/rtm-api/issues/6071) [#6062](https://github.com/beauraines/rtm-api/issues/6062) [#6056](https://github.com/beauraines/rtm-api/issues/6056) [#6053](https://github.com/beauraines/rtm-api/issues/6053) [#6052](https://github.com/beauraines/rtm-api/issues/6052) [#6039](https://github.com/beauraines/rtm-api/issues/6039) [#6023](https://github.com/beauraines/rtm-api/issues/6023) [#5968](https://github.com/beauraines/rtm-api/issues/5968)
11
+
12
+ ### [1.14.1](https://github.com/beauraines/rtm-api/compare/v1.14.0...v1.14.1) (2025-12-19)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * adds Location functions to the user ([18322b7](https://github.com/beauraines/rtm-api/commit/18322b743419a7274e65d55780563198088cfd1d))
18
+
5
19
  ## [1.14.0](https://github.com/beauraines/rtm-api/compare/v1.13.1...v1.14.0) (2025-12-19)
6
20
 
7
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beauraines/rtm-api",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "description": "Remember the Milk API Interface",
5
5
  "author": "David Waring <dev@davidwaring.net> (https://davidwaring.net)",
6
6
  "contributors": [
@@ -29,9 +29,9 @@
29
29
  "@eslint/eslintrc": "^3.1.0",
30
30
  "@eslint/js": "^9.5.0",
31
31
  "eslint": "^9.5.0",
32
- "eslint-plugin-jest": "^28.6.0",
32
+ "eslint-plugin-jest": "^29.12.0",
33
33
  "globals": "^16.0.0",
34
- "jest": "^29.4.3",
34
+ "jest": "^30.2.0",
35
35
  "jsdoc": "^4.0.2"
36
36
  },
37
37
  "repository": {
package/src/user/index.js CHANGED
@@ -259,6 +259,16 @@ class RTMUser {
259
259
  }
260
260
 
261
261
 
262
+ /**
263
+ * RTM Location related functions:
264
+ * - {@link RTMUser~locations/get|get}
265
+ * @returns {{get: function}}
266
+ */
267
+ get locations() {
268
+ return require('./locations.js')(this);
269
+ }
270
+
271
+
262
272
  /**
263
273
  * RTM Task related functions:
264
274
  * - {@link RTMUser~tasks/get|get}
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ const _locations = require('../location/helper.js');
4
+
5
+
6
+ /**
7
+ * This module returns the RTM location-related functions for the RTMUser
8
+ * @param {RTMUser} user RTM User instance
9
+ * @returns {{get: function}}
10
+ * @private
11
+ */
12
+ module.exports = function(user) {
13
+ let rtn = {};
14
+
15
+ /**
16
+ * Get the list of RTM Lists for this User from the API Server
17
+ * @param {function} callback Callback function(err, lists)
18
+ * @param {RTMError} callback.err RTM API Error Response, if encountered
19
+ * @param {RTMList[]} callback.lists List of User's RTM Lists
20
+ * @function RTMUser~lists/get
21
+ */
22
+ rtn.get = function(callback) {
23
+ _locations.get(user, callback);
24
+ };
25
+
26
+ return rtn;
27
+ };