@kusto/monaco-kusto 10.0.22 → 11.1.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 (30) hide show
  1. package/README.md +17 -3
  2. package/package.json +11 -6
  3. package/release/dev/Kusto.Language.Bridge.min.js +110 -110
  4. package/release/dev/kustoMode.js +106 -76
  5. package/release/dev/kustoWorker.js +205 -342
  6. package/release/dev/{main-2c182d5b.js → main-326a932b.js} +8 -9
  7. package/release/dev/monaco.contribution.js +22 -25
  8. package/release/dev/{schema-c6f82d74.js → schema-26bd7933.js} +2 -2
  9. package/release/esm/completionCacheManager/completionCacheManager.d.ts +7 -0
  10. package/release/esm/completionCacheManager/completionCacheManager.js +14 -0
  11. package/release/esm/kusto.worker.js +46 -164
  12. package/release/esm/languageFeatures.d.ts +3 -3
  13. package/release/esm/languageFeatures.js +26 -13
  14. package/release/esm/languageFeatures.utils.d.ts +2 -0
  15. package/release/esm/languageFeatures.utils.js +7 -0
  16. package/release/esm/languageServiceManager/competionItemSort.d.ts +4 -0
  17. package/release/esm/languageServiceManager/competionItemSort.js +25 -0
  18. package/release/esm/languageServiceManager/kustoLanguageService.d.ts +2 -2
  19. package/release/esm/languageServiceManager/kustoLanguageService.js +24 -173
  20. package/release/esm/languageServiceManager/kustoMonarchLanguageDefinition.js +1 -1
  21. package/release/esm/languageServiceManager/settings.d.ts +0 -1
  22. package/release/esm/monaco.contribution.js +31 -32
  23. package/release/esm/{schema-f88560be.js → schema-33d2a0bc.js} +1 -1
  24. package/release/min/Kusto.Language.Bridge.min.js +110 -110
  25. package/release/min/kustoMode.js +2 -2
  26. package/release/min/kustoWorker.js +4 -4
  27. package/release/min/main-af2fa57f.js +7 -0
  28. package/release/min/monaco.contribution.js +2 -2
  29. package/release/min/{schema-acce8a2f.js → schema-9f26f1e2.js} +2 -2
  30. package/release/min/main-0657dac0.js +0 -7
package/README.md CHANGED
@@ -73,14 +73,28 @@ Every PR should come with a test that checks it.
73
73
  1. Set CI environment variable to "tru"
74
74
  2. Run `yarn build`
75
75
 
76
+ ## Running unit tests
77
+
78
+ - Run `yarn test` from the package folder to run all unit tests
79
+
76
80
  ## Running integration tests
77
81
 
78
- 1. Run `yarn test:install` from the root of the project
79
- 2. Run `yarn test` from the package folder to run the tests in headless mode
80
- 3. Run `yarn test:watch` from the package folder to run the tests in a browser and rebuild after each change
82
+ - Run `yarn test:integration:install` from the root of the project
83
+ - Run `yarn test:integration` from the package folder to run the tests in headless mode
84
+ - Run `yarn test:integration:watch` from the package folder to run the tests in a browser and rebuild after each change
81
85
 
82
86
  ## Changelog
83
87
 
88
+ ### 11.1.0
89
+
90
+ - feat: Modify the ordering of completion items so that columns always appear at the top.
91
+ - feat: upgrade language service next to 11.5.6.
92
+
93
+ ### 11.0.0
94
+
95
+ - BREAKING CHANGE: Removed the useIntellisenseV2 option; it now defaults to true.
96
+ - feat: upgrade language service next to 11.5.5.
97
+
84
98
  ### 10.0.0
85
99
 
86
100
  - BREAKING CHANGE: addClusterToSchema know excepts databases as an object with name and alternative name instead of just
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kusto/monaco-kusto",
3
- "version": "10.0.22",
3
+ "version": "11.1.0",
4
4
  "description": "CSL, KQL plugin for the Monaco Editor",
5
5
  "author": {
6
6
  "name": "Microsoft"
@@ -23,8 +23,9 @@
23
23
  "test_release": "echo release > test/mode.txt && http-server -c-1 -p 8080 ./ -o index.html",
24
24
  "clean": "rimraf ./release",
25
25
  "start": "ts-node ./scripts/dev.ts",
26
- "test": "playwright test --trace=retain-on-failure -c tests/playwright.config.ts",
27
- "test:watch": "ts-node ./scripts/test.ts"
26
+ "test": "jest",
27
+ "test:integration": "playwright test --trace=retain-on-failure -c tests/integration/playwright.config.ts",
28
+ "test:integration:watch": "ts-node ./scripts/test.ts"
28
29
  },
29
30
  "types": "./release/esm/monaco.contribution.d.ts",
30
31
  "module": "./release/esm/monaco.contribution.js",
@@ -41,6 +42,7 @@
41
42
  "@babel/core": "^7.22.20",
42
43
  "@babel/preset-env": "^7.22.20",
43
44
  "@babel/preset-typescript": "^7.22.15",
45
+ "@faker-js/faker": "^8.4.1",
44
46
  "@playwright/test": "^1.44.0",
45
47
  "@rollup/plugin-alias": "^5.0.0",
46
48
  "@rollup/plugin-babel": "^6.0.3",
@@ -50,16 +52,19 @@
50
52
  "@rollup/plugin-terser": "^0.4.3",
51
53
  "@rollup/plugin-virtual": "^3.0.1",
52
54
  "@tsconfig/node20": "^20.1.2",
55
+ "@types/jest": "^29.5.12",
53
56
  "@types/lodash-es": "^4.17.9",
54
57
  "@types/node": "^20.6.3",
55
58
  "@types/xregexp": "^4.4.0",
56
59
  "browser-sync": "^3.0.2",
57
60
  "concurrently": "^8.2.1",
58
61
  "http-server": "^14.1.1",
59
- "monaco-editor": "^0.46.0",
62
+ "jest": "^29.7.0",
63
+ "monaco-editor": "^0.49.0",
60
64
  "rimraf": "^5.0.1",
61
65
  "rollup": "^3.29.2",
62
66
  "terser": "^5.19.4",
67
+ "ts-jest": "^29.1.4",
63
68
  "ts-node": "^10.9.1",
64
69
  "typescript": "^5.2.2",
65
70
  "vite": "^5.2.11",
@@ -68,12 +73,12 @@
68
73
  },
69
74
  "dependencies": {
70
75
  "@kusto/language-service": "0.0.278",
71
- "@kusto/language-service-next": "11.5.3",
76
+ "@kusto/language-service-next": "11.5.6",
72
77
  "lodash-es": "^4.17.21",
73
78
  "vscode-languageserver-types": "^3.17.4",
74
79
  "xregexp": "^5.1.1"
75
80
  },
76
81
  "peerDependencies": {
77
- "monaco-editor": "^0.46.0"
82
+ "monaco-editor": "0.49.0"
78
83
  }
79
84
  }