@univerjs/engine-formula 0.1.0-beta.2 → 0.1.0-beta.4

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 (49) hide show
  1. package/{LICENSE.txt → LICENSE} +0 -2
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/es/index.js +2812 -2093
  4. package/lib/types/basics/common.d.ts +1 -1
  5. package/lib/types/basics/error-type.d.ts +1 -1
  6. package/lib/types/basics/regex.d.ts +9 -9
  7. package/lib/types/engine/ast-node/reference-node.d.ts +2 -1
  8. package/lib/types/engine/reference-object/base-reference-object.d.ts +5 -5
  9. package/lib/types/engine/utils/__tests__/object-compare.spec.d.ts +16 -0
  10. package/lib/types/engine/utils/__tests__/r1c1-reference.spec.d.ts +16 -0
  11. package/lib/types/engine/utils/__tests__/reference.spec.d.ts +16 -0
  12. package/lib/types/engine/utils/array-object.d.ts +19 -0
  13. package/lib/types/engine/utils/compare.d.ts +5 -0
  14. package/lib/types/engine/utils/object-compare.d.ts +8 -2
  15. package/lib/types/engine/utils/r1c1-reference.d.ts +19 -0
  16. package/lib/types/engine/utils/reference.d.ts +80 -0
  17. package/lib/types/engine/value-object/array-value-object.d.ts +41 -8
  18. package/lib/types/engine/value-object/base-value-object.d.ts +10 -9
  19. package/lib/types/engine/value-object/primitive-object.d.ts +0 -1
  20. package/lib/types/functions/__tests__/{create-command-test-bed.d.ts → create-function-test-bed.d.ts} +1 -1
  21. package/lib/types/functions/base-function.d.ts +16 -1
  22. package/lib/types/functions/information/function-map.d.ts +3 -1
  23. package/lib/types/functions/information/isblank/__tests__/index.spec.d.ts +16 -0
  24. package/lib/types/functions/information/isblank/index.d.ts +20 -0
  25. package/lib/types/functions/logical/and/__tests__/index.spec.d.ts +16 -0
  26. package/lib/types/functions/logical/and/index.d.ts +20 -0
  27. package/lib/types/functions/logical/function-map.d.ts +2 -1
  28. package/lib/types/functions/logical/if/__tests__/index.spec.d.ts +16 -0
  29. package/lib/types/functions/logical/if/index.d.ts +22 -0
  30. package/lib/types/functions/logical/iferror/__tests__/index.spec.d.ts +16 -0
  31. package/lib/types/functions/logical/iferror/index.d.ts +20 -0
  32. package/lib/types/functions/lookup/address/index.d.ts +2 -3
  33. package/lib/types/functions/lookup/function-map.d.ts +4 -1
  34. package/lib/types/functions/lookup/hlookup/__tests__/index.spec.d.ts +16 -0
  35. package/lib/types/functions/lookup/hlookup/index.d.ts +21 -0
  36. package/lib/types/functions/lookup/lookup/__tests__/index.spec.d.ts +16 -0
  37. package/lib/types/functions/lookup/lookup/index.d.ts +23 -0
  38. package/lib/types/functions/lookup/offset/__tests__/index.spec.d.ts +16 -0
  39. package/lib/types/functions/lookup/offset/index.d.ts +5 -3
  40. package/lib/types/functions/lookup/xlookup/__tests__/index.spec.d.ts +16 -0
  41. package/lib/types/functions/lookup/xlookup/index.d.ts +24 -0
  42. package/lib/types/functions/math/sumif/index.d.ts +2 -3
  43. package/lib/types/functions/math/sumifs/index.d.ts +3 -2
  44. package/lib/types/functions/text/concatenate/__tests__/index.spec.d.ts +16 -0
  45. package/lib/types/functions/text/concatenate/index.d.ts +2 -3
  46. package/lib/types/index.d.ts +2 -0
  47. package/lib/types/services/current-data.service.d.ts +1 -0
  48. package/lib/umd/index.js +1 -1
  49. package/package.json +26 -23
package/package.json CHANGED
@@ -1,16 +1,11 @@
1
1
  {
2
2
  "name": "@univerjs/engine-formula",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.4",
4
+ "private": false,
4
5
  "description": "UniverSheet normal base-formula-engine",
5
- "keywords": [],
6
6
  "author": "DreamNum <developer@univer.ai>",
7
7
  "license": "Apache-2.0",
8
- "main": "./lib/cjs/index.js",
9
- "module": "./lib/es/index.js",
10
- "types": "./lib/types/index.d.ts",
11
- "publishConfig": {
12
- "access": "public"
13
- },
8
+ "keywords": [],
14
9
  "exports": {
15
10
  ".": {
16
11
  "import": "./lib/es/index.js",
@@ -23,38 +18,46 @@
23
18
  "types": "./lib/types/index.d.ts"
24
19
  }
25
20
  },
21
+ "main": "./lib/cjs/index.js",
22
+ "module": "./lib/es/index.js",
23
+ "types": "./lib/types/index.d.ts",
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
26
27
  "directories": {
27
28
  "lib": "lib"
28
29
  },
29
30
  "files": [
30
31
  "lib"
31
32
  ],
32
- "private": false,
33
+ "engines": {
34
+ "node": ">=16.0.0",
35
+ "npm": ">=8.0.0"
36
+ },
37
+ "peerDependencies": {
38
+ "@wendellhu/redi": ">=0.12.13",
39
+ "rxjs": ">=7.0.0",
40
+ "@univerjs/core": "0.1.0-beta.4"
41
+ },
33
42
  "dependencies": {
34
- "@wendellhu/redi": "^0.12.13",
35
- "big.js": "^6.2.1",
36
- "rxjs": "^7.8.1",
37
- "@univerjs/core": "0.1.0-beta.2"
43
+ "big.js": "^6.2.1"
38
44
  },
39
45
  "devDependencies": {
40
46
  "@types/big.js": "^6.2.2",
41
- "@vitest/coverage-istanbul": "^1.1.1",
47
+ "@wendellhu/redi": "^0.12.13",
42
48
  "less": "^4.2.0",
49
+ "rxjs": "^7.8.1",
43
50
  "typescript": "^5.3.3",
44
- "vite": "^5.0.10",
45
- "vite-plugin-dts": "^3.7.0",
46
- "vite-plugin-externals": "^0.6.2",
47
- "vitest": "^1.1.1"
48
- },
49
- "peerDependencies": {
50
- "@wendellhu/redi": ">=0.12.12",
51
- "rxjs": ">=7.0.0",
52
- "@univerjs/core": "0.1.0-beta.2"
51
+ "vite": "^5.0.12",
52
+ "vitest": "^1.2.1",
53
+ "@univerjs/core": "0.1.0-beta.4",
54
+ "@univerjs/shared": "0.1.0-beta.4"
53
55
  },
54
56
  "scripts": {
55
57
  "test": "vitest run",
56
58
  "test:watch": "vitest",
57
59
  "coverage": "vitest run --coverage",
60
+ "lint:types": "tsc --noEmit",
58
61
  "build": "tsc && vite build"
59
62
  }
60
63
  }