lib0 0.2.74 → 0.2.76

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 (83) hide show
  1. package/.github/workflows/node.js.yml +9 -14
  2. package/bin/gentesthtml.js +3 -2
  3. package/coverage/tmp/coverage-28363-1685013367051-0.json +1 -0
  4. package/crypto.test.d.ts.map +1 -1
  5. package/dist/{broadcastchannel-af458af2.cjs → broadcastchannel-855eca3a.cjs} +2 -2
  6. package/dist/{broadcastchannel-af458af2.cjs.map → broadcastchannel-855eca3a.cjs.map} +1 -1
  7. package/dist/broadcastchannel.cjs +5 -5
  8. package/dist/{buffer-2b621eca.cjs → buffer-303ec0e7.cjs} +14 -3
  9. package/dist/buffer-303ec0e7.cjs.map +1 -0
  10. package/dist/buffer.cjs +4 -4
  11. package/dist/cache.cjs +1 -1
  12. package/dist/component.cjs +3 -3
  13. package/dist/crypto.test.d.ts.map +1 -1
  14. package/dist/decoding.cjs +4 -4
  15. package/dist/{diff-bb9fe260.cjs → diff-e0bf81f9.cjs} +2 -2
  16. package/dist/{diff-bb9fe260.cjs.map → diff-e0bf81f9.cjs.map} +1 -1
  17. package/dist/diff.cjs +2 -2
  18. package/dist/encoding.cjs +5 -4
  19. package/dist/encoding.cjs.map +1 -1
  20. package/dist/encoding.d.ts +1 -0
  21. package/dist/encoding.d.ts.map +1 -1
  22. package/dist/encoding.test.d.ts.map +1 -1
  23. package/dist/{environment-575d2482.cjs → environment-01f6fae6.cjs} +2 -2
  24. package/dist/{environment-575d2482.cjs.map → environment-01f6fae6.cjs.map} +1 -1
  25. package/dist/environment.cjs +2 -2
  26. package/dist/eventloop.test.d.ts +1 -1
  27. package/dist/eventloop.test.d.ts.map +1 -1
  28. package/dist/{function-8ff9aad4.cjs → function-b07b935b.cjs} +45 -2
  29. package/dist/{function-8ff9aad4.cjs.map → function-b07b935b.cjs.map} +1 -1
  30. package/dist/function.cjs +6 -1
  31. package/dist/function.cjs.map +1 -1
  32. package/dist/function.d.ts +5 -0
  33. package/dist/function.d.ts.map +1 -1
  34. package/dist/function.test.d.ts.map +1 -1
  35. package/dist/index.cjs +9 -9
  36. package/dist/{indexeddb-38ee46bd.cjs → indexeddb-2dd34f7d.cjs} +2 -2
  37. package/dist/{indexeddb-38ee46bd.cjs.map → indexeddb-2dd34f7d.cjs.map} +1 -1
  38. package/dist/indexeddb.cjs +2 -2
  39. package/dist/list.cjs +1 -1
  40. package/dist/logging.cjs +2 -2
  41. package/dist/logging.common.cjs +2 -2
  42. package/dist/logging.node.cjs +2 -2
  43. package/dist/{number-f97e141a.cjs → number-dc113762.cjs} +4 -8
  44. package/dist/number-dc113762.cjs.map +1 -0
  45. package/dist/number.cjs +2 -1
  46. package/dist/number.cjs.map +1 -1
  47. package/dist/number.d.ts +1 -6
  48. package/dist/number.d.ts.map +1 -1
  49. package/dist/performance.node.cjs +1 -1
  50. package/dist/{prng-c48bb31e.cjs → prng-37fad71b.cjs} +2 -2
  51. package/dist/{prng-c48bb31e.cjs.map → prng-37fad71b.cjs.map} +1 -1
  52. package/dist/prng.cjs +5 -5
  53. package/dist/{promise-a4f32c85.cjs → promise-afe9dfc3.cjs} +6 -5
  54. package/dist/promise-afe9dfc3.cjs.map +1 -0
  55. package/dist/promise.cjs +1 -1
  56. package/dist/promise.d.ts +11 -1
  57. package/dist/promise.d.ts.map +1 -1
  58. package/dist/promise.test.d.ts +3 -2
  59. package/dist/promise.test.d.ts.map +1 -1
  60. package/dist/testing.cjs +7 -7
  61. package/encoding.d.ts +1 -0
  62. package/encoding.d.ts.map +1 -1
  63. package/encoding.js +9 -0
  64. package/encoding.test.d.ts.map +1 -1
  65. package/eventloop.test.d.ts +1 -1
  66. package/eventloop.test.d.ts.map +1 -1
  67. package/function.d.ts +5 -0
  68. package/function.d.ts.map +1 -1
  69. package/function.js +33 -0
  70. package/function.test.d.ts.map +1 -1
  71. package/number.d.ts +1 -6
  72. package/number.d.ts.map +1 -1
  73. package/number.js +1 -7
  74. package/package.json +2 -2
  75. package/promise.d.ts +11 -1
  76. package/promise.d.ts.map +1 -1
  77. package/promise.js +5 -4
  78. package/promise.test.d.ts +3 -2
  79. package/promise.test.d.ts.map +1 -1
  80. package/coverage/tmp/coverage-27464-1682175065150-0.json +0 -1
  81. package/dist/buffer-2b621eca.cjs.map +0 -1
  82. package/dist/number-f97e141a.cjs.map +0 -1
  83. package/dist/promise-a4f32c85.cjs.map +0 -1
@@ -1,29 +1,24 @@
1
1
  # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
2
  # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
 
4
- name: Node.js CI
5
-
4
+ name: Testing Lib0
6
5
  on:
7
6
  push:
8
7
  branches: [ main ]
9
8
  pull_request:
10
9
  branches: [ main ]
11
-
12
10
  jobs:
13
11
  build:
14
-
15
12
  runs-on: ubuntu-latest
16
-
17
13
  strategy:
18
14
  matrix:
19
- node-version: [18.x]
15
+ node-version: [16.x, 18.x]
20
16
 
21
17
  steps:
22
- - uses: actions/checkout@v2
23
- - name: Use Node.js ${{ matrix.node-version }}
24
- uses: actions/setup-node@v1
25
- with:
26
- node-version: ${{ matrix.node-version }}
27
- - run: npm ci
28
- - run: npm run build --if-present
29
- - run: npm test
18
+ - uses: actions/checkout@v3
19
+ - name: Use Node.js ${{ matrix.node-version }}
20
+ uses: actions/setup-node@v3
21
+ with:
22
+ node-version: ${{ matrix.node-version }}
23
+ - run: npm ci
24
+ - run: npm test
@@ -45,13 +45,14 @@ const readPkg = (pkgJson, pathPrefix, importMap) => {
45
45
  })
46
46
  }
47
47
 
48
- readPkg(JSON.parse(fs.readFileSync('./package.json', { encoding: 'utf8' })), '.', exports)
48
+ const rootPkgJson = JSON.parse(fs.readFileSync('./package.json', { encoding: 'utf8' }))
49
+ readPkg(rootPkgJson, '.', exports)
49
50
 
50
51
  const testHtml = `
51
52
  <!DOCTYPE html>
52
53
  <html>
53
54
  <head>
54
- <title>Testing lib0</title>
55
+ <title>Testing ${rootPkgJson.name}</title>
55
56
  <script type="importmap">
56
57
  {
57
58
  "imports": ${JSON.stringify(exports, null, 2)},