@skillswaveca/nova-shared-libraries 1.12.2 → 3.2.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.
Files changed (148) hide show
  1. package/.github/workflows/release.yml +9 -42
  2. package/.release-it.json +49 -0
  3. package/CHANGELOG.md +51 -0
  4. package/docs/drivers/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  5. package/docs/drivers/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  6. package/docs/drivers/assets/fonts/LICENSE.txt +0 -0
  7. package/docs/drivers/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  8. package/docs/drivers/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  9. package/docs/drivers/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  10. package/docs/drivers/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  11. package/docs/drivers/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  12. package/docs/drivers/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  13. package/docs/drivers/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  14. package/docs/drivers/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  15. package/docs/drivers/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  16. package/docs/drivers/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  17. package/docs/drivers/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  18. package/docs/drivers/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  19. package/docs/drivers/assets/fonts/source-code-pro.css +0 -0
  20. package/docs/drivers/index.html +2 -2
  21. package/docs/inline-module-index-0.js +5 -10
  22. package/docs/nova-middleware/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  23. package/docs/nova-middleware/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  24. package/docs/nova-middleware/assets/fonts/LICENSE.txt +0 -0
  25. package/docs/nova-middleware/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  26. package/docs/nova-middleware/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  27. package/docs/nova-middleware/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  28. package/docs/nova-middleware/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  29. package/docs/nova-middleware/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  30. package/docs/nova-middleware/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  31. package/docs/nova-middleware/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  32. package/docs/nova-middleware/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  33. package/docs/nova-middleware/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  34. package/docs/nova-middleware/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  35. package/docs/nova-middleware/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  36. package/docs/nova-middleware/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  37. package/docs/nova-middleware/assets/fonts/source-code-pro.css +0 -0
  38. package/docs/nova-middleware/index.html +2 -2
  39. package/docs/nova-model/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  40. package/docs/nova-model/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  41. package/docs/nova-model/assets/fonts/LICENSE.txt +0 -0
  42. package/docs/nova-model/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  43. package/docs/nova-model/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  44. package/docs/nova-model/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  45. package/docs/nova-model/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  46. package/docs/nova-model/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  47. package/docs/nova-model/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  48. package/docs/nova-model/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  49. package/docs/nova-model/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  50. package/docs/nova-model/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  51. package/docs/nova-model/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  52. package/docs/nova-model/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  53. package/docs/nova-model/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  54. package/docs/nova-model/assets/fonts/source-code-pro.css +0 -0
  55. package/docs/nova-model/index.html +2 -2
  56. package/docs/nova-utils/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  57. package/docs/nova-utils/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  58. package/docs/nova-utils/assets/fonts/LICENSE.txt +0 -0
  59. package/docs/nova-utils/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  60. package/docs/nova-utils/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  61. package/docs/nova-utils/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  62. package/docs/nova-utils/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  63. package/docs/nova-utils/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  64. package/docs/nova-utils/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  65. package/docs/nova-utils/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  66. package/docs/nova-utils/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  67. package/docs/nova-utils/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  68. package/docs/nova-utils/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  69. package/docs/nova-utils/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  70. package/docs/nova-utils/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  71. package/docs/nova-utils/assets/fonts/source-code-pro.css +0 -0
  72. package/docs/nova-utils/index.html +2 -2
  73. package/docs-base/package-info.js +4 -4
  74. package/package.json +22 -21
  75. package/packages/drivers/docs/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  76. package/packages/drivers/docs/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  77. package/packages/drivers/docs/assets/fonts/LICENSE.txt +0 -0
  78. package/packages/drivers/docs/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  79. package/packages/drivers/docs/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  80. package/packages/drivers/docs/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  81. package/packages/drivers/docs/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  82. package/packages/drivers/docs/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  83. package/packages/drivers/docs/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  84. package/packages/drivers/docs/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  85. package/packages/drivers/docs/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  86. package/packages/drivers/docs/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  87. package/packages/drivers/docs/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  88. package/packages/drivers/docs/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  89. package/packages/drivers/docs/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  90. package/packages/drivers/docs/assets/fonts/source-code-pro.css +0 -0
  91. package/packages/drivers/docs/index.html +2 -2
  92. package/packages/drivers/package.json +2 -1
  93. package/packages/nova-middleware/docs/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  94. package/packages/nova-middleware/docs/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  95. package/packages/nova-middleware/docs/assets/fonts/LICENSE.txt +0 -0
  96. package/packages/nova-middleware/docs/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  97. package/packages/nova-middleware/docs/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  98. package/packages/nova-middleware/docs/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  99. package/packages/nova-middleware/docs/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  100. package/packages/nova-middleware/docs/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  101. package/packages/nova-middleware/docs/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  102. package/packages/nova-middleware/docs/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  103. package/packages/nova-middleware/docs/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  104. package/packages/nova-middleware/docs/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  105. package/packages/nova-middleware/docs/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  106. package/packages/nova-middleware/docs/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  107. package/packages/nova-middleware/docs/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  108. package/packages/nova-middleware/docs/assets/fonts/source-code-pro.css +0 -0
  109. package/packages/nova-middleware/docs/index.html +2 -2
  110. package/packages/nova-middleware/package.json +3 -3
  111. package/packages/nova-model/docs/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  112. package/packages/nova-model/docs/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  113. package/packages/nova-model/docs/assets/fonts/LICENSE.txt +0 -0
  114. package/packages/nova-model/docs/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  115. package/packages/nova-model/docs/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  116. package/packages/nova-model/docs/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  117. package/packages/nova-model/docs/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  118. package/packages/nova-model/docs/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  119. package/packages/nova-model/docs/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  120. package/packages/nova-model/docs/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  121. package/packages/nova-model/docs/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  122. package/packages/nova-model/docs/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  123. package/packages/nova-model/docs/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  124. package/packages/nova-model/docs/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  125. package/packages/nova-model/docs/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  126. package/packages/nova-model/docs/assets/fonts/source-code-pro.css +0 -0
  127. package/packages/nova-model/docs/index.html +2 -2
  128. package/packages/nova-model/package.json +4 -5
  129. package/packages/nova-utils/docs/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  130. package/packages/nova-utils/docs/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  131. package/packages/nova-utils/docs/assets/fonts/LICENSE.txt +0 -0
  132. package/packages/nova-utils/docs/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  133. package/packages/nova-utils/docs/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  134. package/packages/nova-utils/docs/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  135. package/packages/nova-utils/docs/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  136. package/packages/nova-utils/docs/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  137. package/packages/nova-utils/docs/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  138. package/packages/nova-utils/docs/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  139. package/packages/nova-utils/docs/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  140. package/packages/nova-utils/docs/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  141. package/packages/nova-utils/docs/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  142. package/packages/nova-utils/docs/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  143. package/packages/nova-utils/docs/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  144. package/packages/nova-utils/docs/assets/fonts/source-code-pro.css +0 -0
  145. package/packages/nova-utils/docs/index.html +2 -2
  146. package/packages/nova-utils/package.json +4 -5
  147. package/scripts/create-library-template/package.json +2 -1
  148. package/scripts/bump-version.js +0 -26
@@ -7,66 +7,33 @@ on:
7
7
 
8
8
  jobs:
9
9
  release:
10
- runs-on: [ubuntu-latest]
10
+ runs-on: ubuntu-latest
11
+
11
12
  steps:
12
13
  - name: Install pnpm
13
14
  run: npm install -g pnpm
14
15
 
15
- - uses: actions/checkout@v2
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v2
16
18
  with:
17
19
  token: ${{ secrets.GITHUB_TOKEN }}
18
20
 
19
- - name: Check Commit Author
20
- id: check_author
21
- run: |
22
- AUTHOR=$(git log -1 --pretty=format:'%an')
23
- echo "Commit author: $AUTHOR"
24
- if [[ "$AUTHOR" == "github-actions[bot]" ]]; then
25
- echo "Automated commit detected, setting skip flag."
26
- echo "skip=true" >> $GITHUB_ENV
27
- else
28
- echo "skip=false" >> $GITHUB_ENV
29
- fi
30
-
31
- - uses: actions/setup-node@v2
32
- if: env.skip != 'true'
21
+ - name: Set up Node.js
22
+ uses: actions/setup-node@v2
33
23
  with:
34
24
  node-version: 20
35
25
  registry-url: 'https://registry.npmjs.org/'
36
26
 
37
27
  - name: Install dependencies
38
- if: env.skip != 'true'
39
28
  run: pnpm install
40
29
 
41
30
  - name: Initialize mandatory git config
42
- if: env.skip != 'true'
43
31
  run: |
44
32
  git config user.name "GitHub Actions - Release"
45
33
  git config user.email noreply@github.com
46
- shell: bash
47
-
48
-
49
- - name: Generate docs
50
- if: env.skip != 'true'
51
- run: pnpm run aggregate-docs
52
-
53
- - name: Create index
54
- if: env.skip != 'true'
55
- run: |
56
- pnpm recursive run create-index
57
- pnpm run create-index
58
34
 
59
- - name: Commit and Push if Changed
60
- if: env.skip != 'true'
61
- run: |
62
- git add .
63
- git diff --staged --quiet || git commit -m "Releasing ${{ env.NEW_VERSION }}"
64
-
65
- - name: Publish to npm
66
- run: |
67
- pnpm -r publish --access public
35
+ - name: Run release-it
68
36
  env:
37
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69
38
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
70
-
71
-
72
-
39
+ run: pnpm release-it
@@ -0,0 +1,49 @@
1
+ {
2
+ "git": {
3
+ "commitMessage": "chore(release): ${version.version}",
4
+ "tagName": "v${version.version}",
5
+ "push": true,
6
+ "requireCleanWorkingDir": false
7
+ },
8
+ "npm": {
9
+ "publish": true,
10
+ "publishCommand": "pnpm publish --access public",
11
+ "tag": false
12
+ },
13
+ "github": {
14
+ "release": true,
15
+ "releaseName": "Release ${version.version}",
16
+ "tokenRef": "GITHUB_TOKEN"
17
+ },
18
+ "hooks": {
19
+ "before:init": [
20
+ "pnpm install", "pnpm run aggregate-docs", "pnpm recursive run create-index",
21
+ "echo 'Version bump to ${version.version}'",
22
+ "pnpm recursive exec -- pnpm version ${version.version} --no-git-tag-version",
23
+ "git add .",
24
+ "git commit -m 'chore: bump version to ${version.version}'",
25
+ "echo 'Version bump commit done'"
26
+ ],
27
+
28
+
29
+ "before:changelog": "echo 'Before generating changelog'",
30
+ "after:changelog": "echo 'Changelog generated'",
31
+ "before:git:commit": "echo 'Before git commit'",
32
+ "after:git:commit": "echo 'After git commit'",
33
+ "before:git:tag": "echo 'Before git tag'",
34
+ "after:git:tag": "echo 'After git tag'",
35
+ "before:git:push": "echo 'Before git push'",
36
+ "after:git:push": "echo 'After git push'",
37
+ "before:github:release": "echo 'Before GitHub release'",
38
+ "after:github:release": "echo 'After GitHub release'",
39
+ "before:npm:publish": "echo 'Before npm publish'",
40
+ "after:npm:publish": "echo 'After npm publish'"
41
+ },
42
+ "plugins": {
43
+
44
+ "@release-it/conventional-changelog": {
45
+ "preset": "angular",
46
+ "infile": "CHANGELOG.md"
47
+ }
48
+ }
49
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,51 @@
1
+
2
+
3
+ # 3.2.0 (2024-05-17)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * attribute name ([b77d94f](https://github.com/SkillsWave/nova-shared-libraries/commit/b77d94fd06b1ee5eddf4aaca1af3f8173f1c5342))
9
+ * bad url in wave driver ([53e6b22](https://github.com/SkillsWave/nova-shared-libraries/commit/53e6b228c389d3f4b16e3babd39232d0d397ff53))
10
+ * change name of attribute for supervisors third party id ([144aedc](https://github.com/SkillsWave/nova-shared-libraries/commit/144aedcab396036a4d83e2e693b53851dcead451))
11
+ * Create logger if it doesn't already exist ([#134](https://github.com/SkillsWave/nova-shared-libraries/issues/134)) ([95e8fb0](https://github.com/SkillsWave/nova-shared-libraries/commit/95e8fb06dd3bf2a0b04b0087ffbb7b86542adf87))
12
+ * deploy again? ([2717690](https://github.com/SkillsWave/nova-shared-libraries/commit/2717690a45dd7742fba8061686b52249f1b264ec))
13
+ * deploy again? ([622d54c](https://github.com/SkillsWave/nova-shared-libraries/commit/622d54c57895c4985619bb0283be9a4a128575d3))
14
+ * deploy again? ([d2aaddc](https://github.com/SkillsWave/nova-shared-libraries/commit/d2aaddc449c0972de3dde8da095d83092ede7e9e))
15
+ * Deploy? ([c4d6a3a](https://github.com/SkillsWave/nova-shared-libraries/commit/c4d6a3a06f5ca943990f14bbb2a7365b24b59abe))
16
+ * Deploy? ([d7fd040](https://github.com/SkillsWave/nova-shared-libraries/commit/d7fd0401b137aecf2a9a3216637c51b24c4e067f))
17
+ * Deploy? ([8592ee0](https://github.com/SkillsWave/nova-shared-libraries/commit/8592ee0e40c987a816d35be5efa26cc10154a880))
18
+ * dont publish multiple packages for now ([22888b9](https://github.com/SkillsWave/nova-shared-libraries/commit/22888b9dd794c3883b70f93d23351d986e7b3bab))
19
+ * enabled falsey condition fix ([3a8bd66](https://github.com/SkillsWave/nova-shared-libraries/commit/3a8bd6617de5ddf26f7b308c63de18bcbe25277e))
20
+ * Fix wave driver to point to v2 ([36b02da](https://github.com/SkillsWave/nova-shared-libraries/commit/36b02da111407c82395e4fb1ded9f32e760b625d))
21
+ * move simple-oauth to deps ([e85a4c5](https://github.com/SkillsWave/nova-shared-libraries/commit/e85a4c56d7300c4a96d8375ddbf39bfe383b4b4c))
22
+ * OAuth Driver - don't include secretKeyId with clientConfig ([#131](https://github.com/SkillsWave/nova-shared-libraries/issues/131)) ([5467698](https://github.com/SkillsWave/nova-shared-libraries/commit/5467698ad7c5ad5dbc214ec44982838c5c181221))
23
+ * package versions ([510e118](https://github.com/SkillsWave/nova-shared-libraries/commit/510e118b075d0315f9b8db6fc49b9a98c70305b9))
24
+ * Pin chai to 4.4.1 ([#125](https://github.com/SkillsWave/nova-shared-libraries/issues/125)) ([2e9b184](https://github.com/SkillsWave/nova-shared-libraries/commit/2e9b184da8fb49b171416ee4786fb376f770e2b1))
25
+ * remove bump-version ([b59001c](https://github.com/SkillsWave/nova-shared-libraries/commit/b59001c046f044861894f5d28483ac300e7c10c4))
26
+ * remove bump-version ([1fa2755](https://github.com/SkillsWave/nova-shared-libraries/commit/1fa2755b26ea0dce581f8c8f1f465d3893c6fe0e))
27
+ * Remove workspace range from package.json ([#132](https://github.com/SkillsWave/nova-shared-libraries/issues/132)) ([6b403ce](https://github.com/SkillsWave/nova-shared-libraries/commit/6b403cef44641f45e572c3a20b51f3bc7a80194c))
28
+ * test ([fc5adc2](https://github.com/SkillsWave/nova-shared-libraries/commit/fc5adc22135bdce0da09a7679f5d9e8f38845f1d))
29
+ * test ([4df020d](https://github.com/SkillsWave/nova-shared-libraries/commit/4df020dd68fb8240c43959e0ebf6a143bd433630))
30
+ * update docs ([64a81fe](https://github.com/SkillsWave/nova-shared-libraries/commit/64a81fe8fb83b9f2bc9f788e24aa4893a19c3a23))
31
+ * update docs as part of release ([62c07be](https://github.com/SkillsWave/nova-shared-libraries/commit/62c07bec7b21938d7961811f1ee2bfac11d70077))
32
+ * version bump ([d049548](https://github.com/SkillsWave/nova-shared-libraries/commit/d04954883629cfa711012c9fc30c89f60d423191))
33
+ * version bump ([d6ce4be](https://github.com/SkillsWave/nova-shared-libraries/commit/d6ce4be2160797bef4391ca9dc1e8379cab7c29d))
34
+
35
+
36
+ ### Features
37
+
38
+ * [NOVA-615] Setup distributed logging ([#123](https://github.com/SkillsWave/nova-shared-libraries/issues/123)) ([d7955ff](https://github.com/SkillsWave/nova-shared-libraries/commit/d7955fff4e7bfde7a5c7a5bd5d8f8cf302c932de))
39
+ * add config helpers ([e72edb9](https://github.com/SkillsWave/nova-shared-libraries/commit/e72edb9caacc7d43b5fdcc7b544264f0a94cc495))
40
+ * Add express oauth middleware ([1588fff](https://github.com/SkillsWave/nova-shared-libraries/commit/1588fff33e5c279b37dba20d846134da8e7c4420))
41
+ * add getTenant to wave driver ([e0c7af1](https://github.com/SkillsWave/nova-shared-libraries/commit/e0c7af13042cb3b0d2859db99e357322a6f9d5ae))
42
+ * Add kraken driver ([2f4246b](https://github.com/SkillsWave/nova-shared-libraries/commit/2f4246bdf39eee324f1f35e99244bec0ee26ce5f))
43
+ * Add nova-user to shared libs ([d315ae8](https://github.com/SkillsWave/nova-shared-libraries/commit/d315ae837d4c683186fade4538c1739e04f29799))
44
+ * add oauth middleware ([4f37fbf](https://github.com/SkillsWave/nova-shared-libraries/commit/4f37fbf375af026fbccc6c6ac73d84c68d3be775))
45
+ * add preferred language to nova-user ([a42b758](https://github.com/SkillsWave/nova-shared-libraries/commit/a42b75854f35d7235cb69b9254d53cb63b4089dc))
46
+ * bump the all-dependencies group with 12 updates ([#111](https://github.com/SkillsWave/nova-shared-libraries/issues/111)) ([1f692bb](https://github.com/SkillsWave/nova-shared-libraries/commit/1f692bb2ba4af4df6f00c6e0d47ef9ca6c7119f1))
47
+ * config changes ([b9b3723](https://github.com/SkillsWave/nova-shared-libraries/commit/b9b3723fd1fee93c31034a5dbc8e3426053bd070))
48
+ * oauth-driver ([c38a032](https://github.com/SkillsWave/nova-shared-libraries/commit/c38a03290a5cfde8b2939a587b6c29ce573ad487))
49
+ * oauth-driver ([12356e2](https://github.com/SkillsWave/nova-shared-libraries/commit/12356e2670f558f6ca1535eb266802eb0dd66803))
50
+ * publish to codartifact ([844dba3](https://github.com/SkillsWave/nova-shared-libraries/commit/844dba3f117ea791d2481867114f20a5b7c4e005))
51
+ * Revert chai to 4.4.1 ([#112](https://github.com/SkillsWave/nova-shared-libraries/issues/112)) ([c1d5324](https://github.com/SkillsWave/nova-shared-libraries/commit/c1d532466ef496ddfe59683d8f3426d2ced5cbb8))
File without changes
File without changes
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset='utf-8'>
5
- <title>@skillswaveca/nova-drivers 1.2.1 | Documentation</title>
5
+ <title>@skillswaveca/nova-drivers 3.1.0 | Documentation</title>
6
6
  <meta name='description' content='Some helper drivers for AWS services'>
7
7
  <meta name='viewport' content='width=device-width,initial-scale=1'>
8
8
  <link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
15
15
  <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
16
16
  <div class='py1 px2'>
17
17
  <h3 class='mb0 no-anchor'>@skillswaveca/nova-drivers</h3>
18
- <div class='mb1'><code>1.2.1</code></div>
18
+ <div class='mb1'><code>3.1.0</code></div>
19
19
  <input
20
20
  placeholder='Filter'
21
21
  id='filter-input'
@@ -1721,15 +1721,10 @@ class CollapsiblePanel extends SkeletonMixin(FocusMixin(RtlMixin(s$5))) {
1721
1721
  top: 2px;
1722
1722
  }
1723
1723
  .d2l-collapsible-panel-title {
1724
- -webkit-box-orient: vertical;
1725
- display: -webkit-box;
1726
1724
  flex: 1;
1727
- -webkit-line-clamp: 2;
1728
1725
  margin: 0.3rem;
1729
1726
  margin-inline-start: var(--d2l-collapsible-panel-spacing-inline);
1730
1727
  overflow-wrap: anywhere;
1731
- overflow-x: hidden;
1732
- overflow-y: hidden;
1733
1728
  user-select: none;
1734
1729
  }
1735
1730
  .d2l-collapsible-panel.has-before .d2l-collapsible-panel-title {
@@ -1943,7 +1938,7 @@ class CollapsiblePanel extends SkeletonMixin(FocusMixin(RtlMixin(s$5))) {
1943
1938
 
1944
1939
  _handleExpandCollapse(e) {
1945
1940
  const eventPromise = this.expanded ? e.detail.expandComplete : e.detail.collapseComplete;
1946
- const event = `d2l-collapsible-panel-${this.expanded ? 'expand' : 'collapse' }`;
1941
+ const event = this.expanded ? 'd2l-collapsible-panel-expand' : 'd2l-collapsible-panel-collapse';
1947
1942
 
1948
1943
  this.dispatchEvent(new CustomEvent(
1949
1944
  event, { bubbles: false, composed: false, detail: { complete: eventPromise } }
@@ -9486,25 +9481,25 @@ customElements.define('d2l-link', Link);
9486
9481
  const packageInfo = [
9487
9482
  {
9488
9483
  "name": "@skillswaveca/nova-utils",
9489
- "version": "1.2.1",
9484
+ "version": "3.1.0",
9490
9485
  "description": "A collection of random utils used in nova repos",
9491
9486
  "docsPath": "./nova-utils/index.html"
9492
9487
  },
9493
9488
  {
9494
9489
  "name": "@skillswaveca/nova-model",
9495
- "version": "1.2.1",
9490
+ "version": "3.1.0",
9496
9491
  "description": "Nova model stuff",
9497
9492
  "docsPath": "./nova-model/index.html"
9498
9493
  },
9499
9494
  {
9500
9495
  "name": "@skillswaveca/nova-middleware",
9501
- "version": "1.0.0",
9496
+ "version": "3.1.0",
9502
9497
  "description": "A collection of middleware used by nova projects",
9503
9498
  "docsPath": "./nova-middleware/index.html"
9504
9499
  },
9505
9500
  {
9506
9501
  "name": "@skillswaveca/nova-drivers",
9507
- "version": "1.2.1",
9502
+ "version": "3.1.0",
9508
9503
  "description": "Some helper drivers for AWS services",
9509
9504
  "docsPath": "./drivers/index.html"
9510
9505
  }
File without changes
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset='utf-8'>
5
- <title>@skillswaveca/nova-middleware 1.0.0 | Documentation</title>
5
+ <title>@skillswaveca/nova-middleware 3.1.0 | Documentation</title>
6
6
  <meta name='description' content='A collection of middleware used by nova projects'>
7
7
  <meta name='viewport' content='width=device-width,initial-scale=1'>
8
8
  <link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
15
15
  <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
16
16
  <div class='py1 px2'>
17
17
  <h3 class='mb0 no-anchor'>@skillswaveca/nova-middleware</h3>
18
- <div class='mb1'><code>1.0.0</code></div>
18
+ <div class='mb1'><code>3.1.0</code></div>
19
19
  <input
20
20
  placeholder='Filter'
21
21
  id='filter-input'
File without changes
File without changes
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset='utf-8'>
5
- <title>@skillswaveca/nova-model 1.2.1 | Documentation</title>
5
+ <title>@skillswaveca/nova-model 3.1.0 | Documentation</title>
6
6
  <meta name='description' content='Nova model stuff'>
7
7
  <meta name='viewport' content='width=device-width,initial-scale=1'>
8
8
  <link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
15
15
  <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
16
16
  <div class='py1 px2'>
17
17
  <h3 class='mb0 no-anchor'>@skillswaveca/nova-model</h3>
18
- <div class='mb1'><code>1.2.1</code></div>
18
+ <div class='mb1'><code>3.1.0</code></div>
19
19
  <input
20
20
  placeholder='Filter'
21
21
  id='filter-input'
File without changes
File without changes
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset='utf-8'>
5
- <title>@skillswaveca/nova-utils 1.2.1 | Documentation</title>
5
+ <title>@skillswaveca/nova-utils 3.1.0 | Documentation</title>
6
6
  <meta name='description' content='A collection of random utils used in nova repos'>
7
7
  <meta name='viewport' content='width=device-width,initial-scale=1'>
8
8
  <link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
15
15
  <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
16
16
  <div class='py1 px2'>
17
17
  <h3 class='mb0 no-anchor'>@skillswaveca/nova-utils</h3>
18
- <div class='mb1'><code>1.2.1</code></div>
18
+ <div class='mb1'><code>3.1.0</code></div>
19
19
  <input
20
20
  placeholder='Filter'
21
21
  id='filter-input'
@@ -1,25 +1,25 @@
1
1
  export const packageInfo = [
2
2
  {
3
3
  "name": "@skillswaveca/nova-utils",
4
- "version": "1.2.1",
4
+ "version": "3.1.0",
5
5
  "description": "A collection of random utils used in nova repos",
6
6
  "docsPath": "./nova-utils/index.html"
7
7
  },
8
8
  {
9
9
  "name": "@skillswaveca/nova-model",
10
- "version": "1.2.1",
10
+ "version": "3.1.0",
11
11
  "description": "Nova model stuff",
12
12
  "docsPath": "./nova-model/index.html"
13
13
  },
14
14
  {
15
15
  "name": "@skillswaveca/nova-middleware",
16
- "version": "1.0.0",
16
+ "version": "3.1.0",
17
17
  "description": "A collection of middleware used by nova projects",
18
18
  "docsPath": "./nova-middleware/index.html"
19
19
  },
20
20
  {
21
21
  "name": "@skillswaveca/nova-drivers",
22
- "version": "1.2.1",
22
+ "version": "3.1.0",
23
23
  "description": "Some helper drivers for AWS services",
24
24
  "docsPath": "./drivers/index.html"
25
25
  }
package/package.json CHANGED
@@ -3,23 +3,32 @@
3
3
  "name": "@skillswaveca/nova-shared-libraries",
4
4
  "description": "A monorepo of shared libraries for Nova projects.",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "1.12.2",
6
+ "version": "3.2.0",
7
7
  "main": "index.js",
8
+ "scripts": {
9
+ "release": "pnpm run bump-version && pnpm run create-index",
10
+ "docs": "pnpm run aggregate-docs && npx live-server docs/drivers",
11
+ "bump-version": "node scripts/bump-version.js",
12
+ "create-index": "node scripts/create-index.js",
13
+ "create-library": "node ./scripts/create-library.js",
14
+ "generate-docs": "echo \"Building docs\"",
15
+ "aggregate-docs": "pnpm recursive run generate-docs && node ./scripts/aggregate-docs.js && rollup -c",
16
+ "test": "echo \"Tests\""
17
+ },
8
18
  "keywords": [],
9
19
  "author": "",
10
20
  "dependencies": {
11
- "@aws-sdk/client-dynamodb": "^3.572.0",
12
- "@aws-sdk/client-secrets-manager": "^3.572.0",
13
- "@aws-sdk/client-sqs": "^3.572.0",
14
- "@aws-sdk/lib-dynamodb": "^3.572.0",
15
- "auto-changelog": "^2.4.0",
21
+ "@aws-sdk/client-dynamodb": "^3.577.0",
22
+ "@aws-sdk/client-secrets-manager": "^3.578.0",
23
+ "@aws-sdk/client-sqs": "^3.577.0",
24
+ "@aws-sdk/lib-dynamodb": "^3.577.0",
16
25
  "aws-xray-sdk-core": "^3.6.0",
17
26
  "jsonwebtoken": "^9.0.2",
18
27
  "jwk-to-pem": "^2.0.5",
19
28
  "lit": "^3.1.3",
20
29
  "lodash.chunk": "^4.2.0",
21
30
  "node-fetch": "^3.3.2",
22
- "pino": "^9.0.0",
31
+ "pino": "^9.1.0",
23
32
  "simple-oauth2": "^5.0.0",
24
33
  "uuid": "^9.0.1",
25
34
  "yn": "^5.0.0"
@@ -27,18 +36,19 @@
27
36
  "devDependencies": {
28
37
  "@alpha-lambda/eslint-config": "^2.0.0",
29
38
  "@babel/eslint-parser": "^7.24.5",
30
- "@brightspace-ui/core": "^2.187.5",
39
+ "@brightspace-ui/core": "^2.189.0",
31
40
  "@open-wc/rollup-plugin-html": "^1.2.5",
41
+ "@release-it/bumper": "^6.0.1",
32
42
  "@release-it/conventional-changelog": "^8.0.1",
33
43
  "@rollup/plugin-node-resolve": "^15.2.3",
34
- "@typescript-eslint/parser": "^7.8.0",
44
+ "@typescript-eslint/parser": "^7.9.0",
35
45
  "chai": "^4.4.1",
36
46
  "documentation": "^14.0.3",
37
47
  "eslint": "^8.57.0",
38
48
  "eslint-config-brightspace": "^1.1.1",
39
- "eslint-plugin-jsdoc": "^48.2.4",
49
+ "eslint-plugin-jsdoc": "^48.2.5",
40
50
  "eslint-plugin-mocha": "^10.4.3",
41
- "glob": "^10.3.14",
51
+ "glob": "^10.3.15",
42
52
  "live-server": "^1.2.2",
43
53
  "mocha": "^10.4.0",
44
54
  "release-it": "^17.2.1",
@@ -46,14 +56,5 @@
46
56
  "sinon": "^17.0.2",
47
57
  "sinon-chai": "^3.7.0",
48
58
  "stylelint": "^16.5.0"
49
- },
50
- "scripts": {
51
- "docs": "pnpm run aggregate-docs && npx live-server docs/drivers",
52
- "bump-version": "node scripts/bump-version.js",
53
- "create-index": "node scripts/create-index.js",
54
- "create-library": "node ./scripts/create-library.js",
55
- "generate-docs": "echo \"Building docs\"",
56
- "aggregate-docs": "pnpm recursive run generate-docs && node ./scripts/aggregate-docs.js && rollup -c",
57
- "test": "echo \"Tests\""
58
59
  }
59
- }
60
+ }
File without changes
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset='utf-8'>
5
- <title>@skillswaveca/nova-drivers 1.2.1 | Documentation</title>
5
+ <title>@skillswaveca/nova-drivers 3.1.0 | Documentation</title>
6
6
  <meta name='description' content='Some helper drivers for AWS services'>
7
7
  <meta name='viewport' content='width=device-width,initial-scale=1'>
8
8
  <link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
15
15
  <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
16
16
  <div class='py1 px2'>
17
17
  <h3 class='mb0 no-anchor'>@skillswaveca/nova-drivers</h3>
18
- <div class='mb1'><code>1.2.1</code></div>
18
+ <div class='mb1'><code>3.1.0</code></div>
19
19
  <input
20
20
  placeholder='Filter'
21
21
  id='filter-input'
@@ -3,9 +3,10 @@
3
3
  "name": "@skillswaveca/nova-drivers",
4
4
  "description": "Some helper drivers for AWS services",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "1.2.1",
6
+ "version": "3.1.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
+ "pre-release": "pnpm run create-index",
9
10
  "create-index": "node ../../scripts/create-index.js",
10
11
  "generate-docs": "documentation build src/** -f html -o docs",
11
12
  "test": "mocha --parallel 'test/**/*.test.js'"
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset='utf-8'>
5
- <title>@skillswaveca/nova-middleware 1.0.0 | Documentation</title>
5
+ <title>@skillswaveca/nova-middleware 3.1.0 | Documentation</title>
6
6
  <meta name='description' content='A collection of middleware used by nova projects'>
7
7
  <meta name='viewport' content='width=device-width,initial-scale=1'>
8
8
  <link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
15
15
  <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
16
16
  <div class='py1 px2'>
17
17
  <h3 class='mb0 no-anchor'>@skillswaveca/nova-middleware</h3>
18
- <div class='mb1'><code>1.0.0</code></div>
18
+ <div class='mb1'><code>3.1.0</code></div>
19
19
  <input
20
20
  placeholder='Filter'
21
21
  id='filter-input'
@@ -3,17 +3,17 @@
3
3
  "name": "@skillswaveca/nova-middleware",
4
4
  "description": "A collection of middleware used by nova projects",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "1.0.0",
6
+ "version": "3.1.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
+ "pre-release": "pnpm run create-index",
9
10
  "create-index": "node ../../scripts/create-index.js",
10
11
  "generate-docs": "documentation build src/** -f html -o docs",
11
12
  "test": "mocha --parallel 'test/**/*.test.js'"
12
13
  },
13
14
  "author": "SkillsWave",
14
15
  "license": "UNLICENSED",
15
- "devDependencies": {
16
- },
16
+ "devDependencies": {},
17
17
  "dependencies": {
18
18
  "jsonwebtoken": "^9.0.2",
19
19
  "jwk-to-pem": "^2.0.5"
File without changes
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset='utf-8'>
5
- <title>@skillswaveca/nova-model 1.2.1 | Documentation</title>
5
+ <title>@skillswaveca/nova-model 3.1.0 | Documentation</title>
6
6
  <meta name='description' content='Nova model stuff'>
7
7
  <meta name='viewport' content='width=device-width,initial-scale=1'>
8
8
  <link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
15
15
  <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
16
16
  <div class='py1 px2'>
17
17
  <h3 class='mb0 no-anchor'>@skillswaveca/nova-model</h3>
18
- <div class='mb1'><code>1.2.1</code></div>
18
+ <div class='mb1'><code>3.1.0</code></div>
19
19
  <input
20
20
  placeholder='Filter'
21
21
  id='filter-input'
@@ -3,17 +3,16 @@
3
3
  "name": "@skillswaveca/nova-model",
4
4
  "description": "Nova model stuff",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "1.2.1",
6
+ "version": "3.1.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
+ "pre-release": "pnpm run create-index",
9
10
  "create-index": "node ../../scripts/create-index.js",
10
11
  "generate-docs": "documentation build src/** -f html -o docs",
11
12
  "test": "mocha --parallel 'test/**/*.test.js'"
12
13
  },
13
14
  "author": "SkillsWave",
14
15
  "license": "UNLICENSED",
15
- "devDependencies": {
16
- },
17
- "dependencies": {
18
- }
16
+ "devDependencies": {},
17
+ "dependencies": {}
19
18
  }
File without changes
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset='utf-8'>
5
- <title>@skillswaveca/nova-utils 1.2.1 | Documentation</title>
5
+ <title>@skillswaveca/nova-utils 3.1.0 | Documentation</title>
6
6
  <meta name='description' content='A collection of random utils used in nova repos'>
7
7
  <meta name='viewport' content='width=device-width,initial-scale=1'>
8
8
  <link href='assets/bass.css' rel='stylesheet'>
@@ -15,7 +15,7 @@
15
15
  <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
16
16
  <div class='py1 px2'>
17
17
  <h3 class='mb0 no-anchor'>@skillswaveca/nova-utils</h3>
18
- <div class='mb1'><code>1.2.1</code></div>
18
+ <div class='mb1'><code>3.1.0</code></div>
19
19
  <input
20
20
  placeholder='Filter'
21
21
  id='filter-input'
@@ -3,17 +3,16 @@
3
3
  "name": "@skillswaveca/nova-utils",
4
4
  "description": "A collection of random utils used in nova repos",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "1.2.1",
6
+ "version": "3.1.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
+ "pre-release": "pnpm run create-index",
9
10
  "create-index": "node ../../scripts/create-index.js",
10
11
  "generate-docs": "documentation build src/** -f html -o docs",
11
12
  "test": "mocha --parallel 'test/**/*.test.js'"
12
13
  },
13
14
  "author": "SkillsWave",
14
15
  "license": "UNLICENSED",
15
- "devDependencies": {
16
- },
17
- "dependencies": {
18
- }
16
+ "devDependencies": {},
17
+ "dependencies": {}
19
18
  }
@@ -3,9 +3,10 @@
3
3
  "name": "{{packageName}}",
4
4
  "description": "{{packageDescription}}",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "1.0.0",
6
+ "version": "2.0.0",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
+ "pre-release": "pnpm run create-index",
9
10
  "create-index": "node ../../scripts/create-index.js",
10
11
  "generate-docs": "documentation build src/** -f html -o docs",
11
12
  "test": "mocha --parallel 'test/**/*.test.js'"
@@ -1,26 +0,0 @@
1
- import { readFile, writeFile } from 'fs/promises';
2
-
3
- // Path to the package.json file
4
- const packageJsonPath = 'package.json';
5
-
6
- // Read package.json file
7
- const data = await readFile(packageJsonPath, 'utf8');
8
-
9
- // Parse package.json content
10
- const packageJson = JSON.parse(data);
11
-
12
- // Check if the current version is an integer
13
- const currentVersion = parseInt(packageJson.version, 10);
14
- if (isNaN(currentVersion)) {
15
- throw new Error('Version number in package.json is not a simple integer.');
16
- }
17
-
18
- // Increment the version number
19
- const newVersion = currentVersion + 1;
20
-
21
- // Update the version number in the package.json object
22
- packageJson.version = newVersion.toString();
23
-
24
- // Write the updated package.json back to file
25
- await writeFile(packageJsonPath, `${JSON.stringify(packageJson, null, 2) }\n`, 'utf8');
26
- console.log(newVersion);