tone 14.8.27 → 14.8.28

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 (41) hide show
  1. package/Tone/component/analysis/Meter.test.ts +1 -1
  2. package/Tone/component/analysis/Meter.ts +3 -3
  3. package/Tone/component/channel/Recorder.ts +1 -1
  4. package/Tone/core/clock/Ticker.ts +0 -1
  5. package/Tone/core/context/BaseContext.ts +1 -1
  6. package/Tone/core/context/Context.test.ts +1 -1
  7. package/Tone/core/context/Context.ts +4 -0
  8. package/Tone/core/context/ToneAudioBuffer.ts +7 -1
  9. package/Tone/core/context/ToneAudioNode.ts +1 -1
  10. package/Tone/core/util/Debug.ts +1 -1
  11. package/Tone/effect/Distortion.test.ts +1 -1
  12. package/Tone/instrument/DuoSynth.ts +1 -1
  13. package/Tone/instrument/PolySynth.ts +2 -1
  14. package/Tone/source/OneShotSource.ts +2 -1
  15. package/Tone/version.ts +1 -1
  16. package/build/Tone.js +2 -21
  17. package/build/Tone.js.LICENSE.txt +6 -0
  18. package/build/Tone.js.map +1 -1
  19. package/build/esm/component/analysis/Meter.d.ts +1 -1
  20. package/build/esm/component/analysis/Meter.js +2 -2
  21. package/build/esm/component/analysis/Meter.js.map +1 -1
  22. package/build/esm/component/channel/Recorder.d.ts +1 -1
  23. package/build/esm/component/channel/Recorder.js.map +1 -1
  24. package/build/esm/core/clock/Ticker.js +0 -1
  25. package/build/esm/core/clock/Ticker.js.map +1 -1
  26. package/build/esm/core/context/Context.d.ts +4 -0
  27. package/build/esm/core/context/Context.js +4 -0
  28. package/build/esm/core/context/Context.js.map +1 -1
  29. package/build/esm/core/context/ToneAudioBuffer.js +5 -1
  30. package/build/esm/core/context/ToneAudioBuffer.js.map +1 -1
  31. package/build/esm/core/context/ToneAudioNode.js +0 -4
  32. package/build/esm/core/context/ToneAudioNode.js.map +1 -1
  33. package/build/esm/core/util/Debug.d.ts +1 -1
  34. package/build/esm/instrument/DuoSynth.js.map +1 -1
  35. package/build/esm/instrument/PolySynth.d.ts +1 -1
  36. package/build/esm/instrument/PolySynth.js.map +1 -1
  37. package/build/esm/source/OneShotSource.js +2 -1
  38. package/build/esm/source/OneShotSource.js.map +1 -1
  39. package/build/esm/version.js +1 -1
  40. package/docs/tone.json +1 -1
  41. package/package.json +24 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tone",
3
- "version": "14.8.27",
3
+ "version": "14.8.28",
4
4
  "description": "A Web Audio framework for making interactive music in the browser.",
5
5
  "main": "build/Tone.js",
6
6
  "module": "build/esm/index.js",
@@ -16,27 +16,27 @@
16
16
  "scripts": {
17
17
  "build": "npm run increment && rm -rf build && npm run ts:build && npm run webpack:build",
18
18
  "codecov": "codecov",
19
- "docs": "node scripts/generate_docs.js",
19
+ "docs": "node scripts/generate_docs.cjs",
20
20
  "docs:json": "cross-var typedoc --options \"./scripts/typedoc.json\" --json \"$npm_config_docs_json\"",
21
- "increment": "node scripts/increment_version.js",
22
- "karma": "cross-var karma start ./test/karma.conf.js --single-run --file $npm_config_file --dir $npm_config_dir",
23
- "karma:browser": "cross-var karma start ./test/karma.conf.js --auto-watch --browsers OnlineChrome --file $npm_config_file --dir $npm_config_dir",
24
- "karma:watch": "cross-var karma start ./test/karma.conf.js --auto-watch --file $npm_config_file --dir $npm_config_dir",
21
+ "increment": "node scripts/increment_version.cjs",
22
+ "karma": "cross-var karma start ./test/karma.conf.cjs --single-run --file $npm_config_file --dir $npm_config_dir",
23
+ "karma:browser": "cross-var karma start ./test/karma.conf.cjs --auto-watch --browsers OnlineChrome --file $npm_config_file --dir $npm_config_dir",
24
+ "karma:watch": "cross-var karma start ./test/karma.conf.cjs --auto-watch --file $npm_config_file --dir $npm_config_dir",
25
25
  "lint": "eslint --ignore-pattern ./Tone/**/*.test.ts --ext ts ./Tone",
26
26
  "lint:fix": "eslint --ext ts --fix ./Tone",
27
- "scratch": "webpack -w --env.scratch --mode=development",
27
+ "scratch": "webpack -w --env scratch=1 --mode=development",
28
28
  "test": "npm run karma",
29
29
  "test:browser": "npm run karma:browser",
30
- "test:examples": "node ./test/scripts/test_examples",
31
- "test:html": "node ./test/scripts/test_html",
32
- "test:node": "node ./test/scripts/node_test.js",
33
- "test:readme": "node ./test/scripts/test_readme.js",
30
+ "test:examples": "node ./test/scripts/test_examples.cjs",
31
+ "test:html": "node ./test/scripts/test_html.cjs",
32
+ "test:node": "node ./test/scripts/node_test.cjs",
33
+ "test:readme": "node ./test/scripts/test_readme.cjs",
34
34
  "test:travis": "npm run build && npm run lint && npm run test",
35
35
  "test:watch": "npm run karma:watch",
36
36
  "ts:build": "tsc --project ./scripts/tsconfig.build.json",
37
37
  "watch": "tsc --watch",
38
- "webpack:watch": "webpack -w --env.production --mode=development",
39
- "webpack:build": "webpack -p --env.production"
38
+ "webpack:watch": "webpack -w --env production=1 --mode=development --config ./webpack.config.cjs",
39
+ "webpack:build": "webpack --env production=1 --config ./webpack.config.cjs"
40
40
  },
41
41
  "repository": {
42
42
  "type": "git",
@@ -60,26 +60,25 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@tonejs/plot": "0.0.35",
63
- "@types/chai": "^4.1.7",
64
- "@types/dom-mediacapture-record": "^1.0.4",
63
+ "@types/chai": "^4.2.22",
65
64
  "@types/mocha": "^5.2.6",
66
65
  "@types/ua-parser-js": "^0.7.32",
67
66
  "@typescript-eslint/eslint-plugin": "^2.28.0",
68
67
  "@typescript-eslint/parser": "^2.28.0",
69
68
  "async": "^3.1.0",
70
- "chai": "^1.10.0",
69
+ "chai": "^4.3.4",
71
70
  "codecov": "^3.1.0",
72
71
  "cross-var": "^1.1.0",
73
- "eslint": "^6.6.0",
72
+ "eslint": "^8.0.0",
74
73
  "eslint-plugin-html": "^6.0.2",
75
74
  "eslint-plugin-jsdoc": "^15.12.0",
76
75
  "fs-extra": "^8.1.0",
77
76
  "glob": "^7.1.5",
78
77
  "html-webpack-plugin": "^3.2.0",
79
- "http-server": "^0.12.3",
78
+ "http-server": "^13.0.2",
80
79
  "istanbul-instrumenter-loader": "^3.0.1",
81
80
  "jsdom": "^16.3.0",
82
- "karma": "^5.1.1",
81
+ "karma": "^6.3.4",
83
82
  "karma-chrome-launcher": "^2.2.0",
84
83
  "karma-coverage": "^2.0.2",
85
84
  "karma-firefox-launcher": "^1.3.0",
@@ -88,7 +87,7 @@
88
87
  "karma-sourcemap-loader": "^0.3.7",
89
88
  "karma-spec-reporter": "0.0.32",
90
89
  "karma-typescript": "^5.0.0",
91
- "mocha": "^7.1.1",
90
+ "mocha": "^9.1.2",
92
91
  "semver": "^5.5.0",
93
92
  "showdown": "^1.9.1",
94
93
  "teoria": "^2.5.0",
@@ -96,14 +95,14 @@
96
95
  "ts-loader": "^7.0.1",
97
96
  "ts-node": "^8.4.1",
98
97
  "typedoc": "^0.17.6",
99
- "typescript": "^4.0.3",
98
+ "typescript": "^4.4.4",
100
99
  "ua-parser-js": "^0.7.20",
101
- "webpack": "^4.44.1",
102
- "webpack-cli": "^3.3.12",
103
- "yargs": "^13.2.0"
100
+ "webpack": "^5.58.2",
101
+ "webpack-cli": "^4.9.0",
102
+ "yargs": "^17.2.1"
104
103
  },
105
104
  "dependencies": {
106
- "standardized-audio-context": "^25.1.8",
105
+ "standardized-audio-context": "^25.3.12",
107
106
  "tslib": "^2.0.1"
108
107
  },
109
108
  "prettier": {