imdone-core 1.48.0 → 1.48.1

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.
@@ -11,7 +11,7 @@ jobs:
11
11
 
12
12
  strategy:
13
13
  matrix:
14
- node-version: [16.x, 17.x, 18.x, 19.x]
14
+ node-version: [16.x, 17.x, 18.x, 19.x, 20.x]
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v3
@@ -4,20 +4,20 @@ const LocalFileParserFactory = require('../parsers/file/LocalFileParserFactory')
4
4
 
5
5
  module.exports = class FileSystemProjectReader {
6
6
  async read (projectPath) {
7
- // BACKLOG:-890 ## Load the config file
7
+ // BACKLOG ## Load the config file
8
8
  // #adapter
9
- // [${source.path}](${source.path})
9
+ // [lib/adapters/readers/FileSystemProjectReader.js](lib/adapters/readers/FileSystemProjectReader.js)
10
10
  // <!-- epic:"Release 2.0" -->
11
11
  const files = await this.getFilesFromDirectory(projectPath)
12
12
 
13
- // BACKLOG:-780 ## Parse project files
13
+ // BACKLOG ## Parse project files
14
14
  // - Loop over the files in the filesystem
15
15
  // - Give each one a file parser and parse the file
16
16
  // - `const parser = LocalFileParserFactory.getFileParser(filePath, config)`
17
17
  // - Use worker_threads
18
18
  // - After tasks are parsed trim the description appropriately and look for Check style tasks in what's left of the description
19
19
  // #adapter
20
- // [${source.path}](${source.path})
20
+ // [lib/adapters/readers/FileSystemProjectReader.js](lib/adapters/readers/FileSystemProjectReader.js)
21
21
  // <!-- epic:"Release 2.0" -->
22
22
 
23
23
  }
@@ -148,9 +148,9 @@ function mixin(repo, fs = require('fs')) {
148
148
  if (!path || stat.isDirectory()) return
149
149
  var file = repo.getFile(path) || path
150
150
  const isFile = File.isFile(file)
151
- // BACKLOG:-20 ## Handle the case where the file is not in the repo
151
+ // BACKLOG ## Handle the case where the file is not in the repo
152
152
  // #urgent #1.12.0
153
- // console.log(`file.modifiedTime ${file.getModifiedTime()} stat.mtime ${stat.mtime}`)
153
+ // console.log(`file.modifiedTime ~~${ReferenceError: file is not defined}~~ stat.mtime ~~${ReferenceError: file is not defined}~~`)
154
154
  if (isFile && stat.mtime <= file.getModifiedTime()) {
155
155
  // console.log("File update already applied. Change ignored.")
156
156
  return
package/lib/project.js CHANGED
@@ -93,7 +93,7 @@ module.exports = class WorkerProject extends Project {
93
93
  return { path: this.path }
94
94
  }
95
95
 
96
- toImdoneJSON() {
96
+ async toImdoneJSON() {
97
97
  this.pluginManager.initDevMode()
98
98
  console.time('toJSON time')
99
99
  const totals = calculateTotals(
@@ -123,7 +123,7 @@ module.exports = class WorkerProject extends Project {
123
123
  console.timeEnd('card init')
124
124
 
125
125
  console.time('plugin onBoardUpdate')
126
- this.pluginManager.onBoardUpdate(
126
+ await this.pluginManager.onBoardUpdate(
127
127
  this.getLists({
128
128
  tasks: cards,
129
129
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "1.48.0",
3
+ "version": "1.48.1",
4
4
  "description": "imdone-core",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -60,7 +60,7 @@
60
60
  "function-regex": "^1.0.2",
61
61
  "gray-matter": "^4.0.2",
62
62
  "ignore": "^5.2.0",
63
- "imdone-api": "^1.47.0",
63
+ "imdone-api": "^1.48.0",
64
64
  "isbinaryfile": "^3.0.2",
65
65
  "js-yaml": "^3.14.1",
66
66
  "json-fns": "^1.0.0",