atomic-fns 0.3.5 → 0.4.3

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 (109) hide show
  1. package/README.md +1 -12
  2. package/{core → dist}/collections/BTree.d.ts +6 -6
  3. package/{core → dist}/collections/BTree.js +17 -17
  4. package/{core → dist}/collections/Heap.d.ts +3 -3
  5. package/{core → dist}/collections/Heap.js +0 -0
  6. package/dist/collections/LRUCache.d.ts +80 -0
  7. package/dist/collections/LRUCache.js +126 -0
  8. package/{core → dist}/collections/SortedMap.d.ts +2 -2
  9. package/{core → dist}/collections/SortedMap.js +0 -0
  10. package/{core → dist}/collections/SortedSet.d.ts +3 -3
  11. package/{core → dist}/collections/SortedSet.js +1 -1
  12. package/{core → dist}/collections/SortedTree.d.ts +3 -3
  13. package/{core → dist}/collections/SortedTree.js +1 -1
  14. package/{core → dist}/collections/SplayTree.d.ts +5 -5
  15. package/{core → dist}/collections/SplayTree.js +0 -0
  16. package/{core → dist}/collections/abc.d.ts +0 -0
  17. package/{core → dist}/collections/abc.js +0 -0
  18. package/{core → dist}/collections/deque.d.ts +7 -7
  19. package/{core → dist}/collections/deque.js +6 -8
  20. package/{core → dist}/collections/frozenset.d.ts +0 -0
  21. package/{core → dist}/collections/frozenset.js +3 -6
  22. package/{core → dist}/collections/index.d.ts +207 -105
  23. package/{core → dist}/collections/index.js +179 -436
  24. package/{core → dist}/functools/index.d.ts +30 -16
  25. package/{core → dist}/functools/index.js +34 -12
  26. package/dist/globals/decimal.d.ts +142 -0
  27. package/dist/globals/decimal.js +371 -0
  28. package/{core → dist}/globals/index.d.ts +26 -25
  29. package/{core → dist}/globals/index.js +16 -37
  30. package/dist/i18n/currency.d.ts +24 -0
  31. package/dist/i18n/currency.js +85 -0
  32. package/dist/i18n/date/index.d.ts +204 -0
  33. package/dist/i18n/date/index.js +530 -0
  34. package/dist/i18n/date/utils.d.ts +65 -0
  35. package/dist/i18n/date/utils.js +290 -0
  36. package/dist/i18n/duration.d.ts +112 -0
  37. package/dist/i18n/duration.js +392 -0
  38. package/dist/i18n/format.d.ts +26 -0
  39. package/dist/i18n/format.js +495 -0
  40. package/{core → dist}/i18n/index.d.ts +2 -1
  41. package/{core → dist}/i18n/index.js +2 -1
  42. package/{core → dist}/index.d.ts +0 -0
  43. package/{core → dist}/index.js +0 -0
  44. package/{core → dist}/itertools/index.d.ts +74 -46
  45. package/{core → dist}/itertools/index.js +28 -56
  46. package/{core → dist}/math/index.d.ts +9 -10
  47. package/{core → dist}/math/index.js +3 -1
  48. package/{core → dist}/operators/index.d.ts +4 -4
  49. package/{core → dist}/operators/index.js +2 -8
  50. package/{core → dist}/random/index.d.ts +1 -1
  51. package/{core → dist}/random/index.js +5 -5
  52. package/package.json +28 -42
  53. package/.editorconfig +0 -12
  54. package/.esdoc.json +0 -27
  55. package/.eslintignore +0 -1
  56. package/.eslintrc.json +0 -35
  57. package/.firebaserc +0 -5
  58. package/.prettierrc +0 -19
  59. package/core/collections/BTree.ts +0 -1340
  60. package/core/collections/Heap.ts +0 -189
  61. package/core/collections/LRUCache.d.ts +0 -152
  62. package/core/collections/LRUCache.js +0 -409
  63. package/core/collections/LRUCache.ts +0 -486
  64. package/core/collections/SortedMap.ts +0 -146
  65. package/core/collections/SortedSet.ts +0 -110
  66. package/core/collections/SortedTree.ts +0 -160
  67. package/core/collections/SplayTree.ts +0 -354
  68. package/core/collections/abc.ts +0 -176
  69. package/core/collections/deque.ts +0 -338
  70. package/core/collections/frozenset.ts +0 -37
  71. package/core/collections/index.ts +0 -1024
  72. package/core/collections/test.html +0 -10
  73. package/core/collections/typedArrays.d.ts +0 -31
  74. package/core/collections/typedArrays.js +0 -143
  75. package/core/collections/typedArrays.ts +0 -163
  76. package/core/functools/index.ts +0 -260
  77. package/core/globals/index.ts +0 -481
  78. package/core/i18n/date/format.d.ts +0 -16
  79. package/core/i18n/date/format.js +0 -307
  80. package/core/i18n/date/format.ts +0 -343
  81. package/core/i18n/date/index.d.ts +0 -224
  82. package/core/i18n/date/index.js +0 -387
  83. package/core/i18n/date/index.ts +0 -471
  84. package/core/i18n/date/test.html +0 -67
  85. package/core/i18n/index.ts +0 -8
  86. package/core/index.ts +0 -8
  87. package/core/itertools/index.ts +0 -494
  88. package/core/math/index.ts +0 -152
  89. package/core/operators/index.ts +0 -310
  90. package/core/random/index.ts +0 -66
  91. package/firebase.json +0 -10
  92. package/jasmine.json +0 -14
  93. package/tests/BTree.spec.ts +0 -143
  94. package/tests/Cache.spec.ts +0 -161
  95. package/tests/Heap.spec.ts +0 -66
  96. package/tests/SortedMap.spec.ts +0 -144
  97. package/tests/SortedSet.spec.ts +0 -84
  98. package/tests/SortedTree.spec.ts +0 -164
  99. package/tests/SplayTree.spec.ts +0 -121
  100. package/tests/collections.spec.ts +0 -288
  101. package/tests/deque.spec.ts +0 -107
  102. package/tests/globals.spec.ts +0 -270
  103. package/tests/itertools.spec.ts +0 -266
  104. package/tests/math.spec.ts +0 -25
  105. package/tests/operators.spec.ts +0 -40
  106. package/tests/random.spec.ts +0 -46
  107. package/tsconfig.json +0 -126
  108. package/tsconfig.node.json +0 -18
  109. package/tsconfig.xo.json +0 -9
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "atomic-fns",
3
3
  "description": "Like Lodash, but for ESNext and with types. Stop shipping code built for browsers from 2015.",
4
- "version": "0.3.5",
5
- "main": "core/index.js",
4
+ "version": "0.4.3",
5
+ "files": [
6
+ "dist/*"
7
+ ],
6
8
  "type": "module",
7
- "types": "core/index.d.ts",
8
- "module": "core/index.js",
9
+ "module": "dist/index.js",
10
+ "main": "dist/index.js",
11
+ "types": "dist/index.d.ts",
9
12
  "sideEffects": false,
10
13
  "scripts": {
11
- "prepublishOnly": "npm test",
14
+ "prepublishOnly": "npm run build",
12
15
  "test": "NODE_OPTIONS=--loader=ts-node/esm jasmine --config=jasmine.json",
13
- "tsc": "tsc -p ./tsconfig.xo.json --declaration",
14
- "tsc:w": "tsc -p ./tsconfig.xo.json --declaration --watch",
15
- "lint": "eslint core/**/*.ts",
16
- "lint:fix": "eslint core/**/*.ts --fix",
17
- "build": "npm run lint:fix && npm run tsc && npm run docs",
16
+ "tsc": "tsc -p . --declaration",
17
+ "tsc:w": "tsc -p . --declaration --watch",
18
+ "lint": "eslint src/**/*.ts --fix",
19
+ "build": "npm run lint && npm test && npm run tsc",
18
20
  "docs": "typedoc"
19
21
  },
20
22
  "devDependencies": {
@@ -23,40 +25,29 @@
23
25
  "eslint": "^8.25.0",
24
26
  "eslint-config-prettier": "^8.5.0",
25
27
  "eslint-config-standard-with-typescript": "^23.0.0",
26
- "eslint-plugin-import": "^2.26.0",
27
28
  "eslint-plugin-n": "^15.3.0",
28
29
  "eslint-plugin-prettier": "^4.2.1",
29
- "eslint-plugin-promise": "^6.0.1",
30
- "husky": "^8.0.1",
31
30
  "jasmine": "^4.4.0",
32
31
  "jasmine-spec-reporter": "^7.0.0",
33
- "lint-staged": "^13.0.3",
34
32
  "prettier": "^2.7.1",
35
- "pretty-quick": "^3.1.3",
36
- "ts-node": "^10.4.1",
33
+ "ts-node": "^10.9.1",
37
34
  "typedoc": "^0.23.16",
38
35
  "typescript": "^4.8.4"
39
36
  },
40
- "lint-staged": {
41
- "*.ts": "eslint --fix"
42
- },
43
- "husky": {
44
- "hooks": {
45
- "precommit": "lint-staged && pretty-quick --staged"
46
- }
47
- },
48
37
  "repository": {
49
38
  "type": "git",
50
39
  "url": "https://github.com/adrian2x/atomic-fns.git"
51
40
  },
52
41
  "keywords": [
53
- "atomic",
54
- "atomicfns",
55
- "atomic-fns",
56
- "esnext",
57
- "es-next",
58
- "@esnext",
59
- "@es-next",
42
+ "modules",
43
+ "stdlib",
44
+ "util",
45
+ "fp",
46
+ "lazy",
47
+ "itertools",
48
+ "core-js",
49
+ "lodash",
50
+ "lodash-es",
60
51
  "es6",
61
52
  "es7",
62
53
  "es8",
@@ -64,17 +55,12 @@
64
55
  "es2020",
65
56
  "es2021",
66
57
  "es2022",
67
- "es2023",
68
- "lodash",
69
- "lodash-es",
70
- "itertools",
71
- "lazy",
72
- "module",
73
- "modules",
74
- "stdlib",
75
- "core-js",
76
- "util",
77
- "fp"
58
+ "esnext",
59
+ "es-next",
60
+ "@esnext",
61
+ "@es-next",
62
+ "atomicfns",
63
+ "atomic-fns"
78
64
  ],
79
65
  "author": "Adrian Cruz <kangoonie@gmail.com>",
80
66
  "license": "Apache-2.0",
package/.editorconfig DELETED
@@ -1,12 +0,0 @@
1
- # EditorConfig is awesome: https://EditorConfig.org
2
-
3
- # top-most EditorConfig file
4
- root = true
5
-
6
- [*]
7
- indent_style = space
8
- indent_size = 2
9
- end_of_line = lf
10
- charset = utf-8
11
- trim_trailing_whitespace = true
12
- insert_final_newline = true
package/.esdoc.json DELETED
@@ -1,27 +0,0 @@
1
- {
2
- "source": "./lib",
3
- "destination": "./docs",
4
- "plugins": [
5
- {
6
- "name": "esdoc-standard-plugin",
7
- "option": {
8
- "test": {
9
- "source": "./tests/",
10
- "interfaces": [
11
- "describe",
12
- "it",
13
- "context",
14
- "suite",
15
- "test"
16
- ],
17
- "includes": [
18
- "(spec|Spec|test|Test)\\.ts$"
19
- ],
20
- "excludes": [
21
- "\\.config\\.js$"
22
- ]
23
- }
24
- }
25
- }
26
- ]
27
- }
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- *.d.ts
package/.eslintrc.json DELETED
@@ -1,35 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2021": true
5
- },
6
- "extends": [
7
- "standard-with-typescript",
8
- "plugin:prettier/recommended"
9
- ],
10
- "overrides": [
11
- {
12
- "files": [
13
- "*.ts",
14
- "*.tsx"
15
- ]
16
- }
17
- ],
18
- "parserOptions": {
19
- "project": [
20
- "./tsconfig.xo.json"
21
- ],
22
- "ecmaVersion": "latest",
23
- "sourceType": "module"
24
- },
25
- "rules": {
26
- "@typescript-eslint/explicit-function-return-type": "off",
27
- "@typescript-eslint/no-dynamic-delete": "off",
28
- "@typescript-eslint/no-unused-vars": "off",
29
- "@typescript-eslint/prefer-nullish-coalescing": "off",
30
- "@typescript-eslint/restrict-plus-operands": "off",
31
- "@typescript-eslint/space-before-function-paren": "off",
32
- "@typescript-eslint/strict-boolean-expressions": "off",
33
- "@typescript-eslint/triple-slash-reference": "off"
34
- }
35
- }
package/.firebaserc DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "projects": {
3
- "default": "atomic-fns"
4
- }
5
- }
package/.prettierrc DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "arrowParens": "always",
3
- "bracketSameLine": true,
4
- "bracketSpacing": true,
5
- "embeddedLanguageFormatting": "auto",
6
- "endOfLine": "lf",
7
- "htmlWhitespaceSensitivity": "css",
8
- "insertPragma": false,
9
- "printWidth": 100,
10
- "proseWrap": "preserve",
11
- "quoteProps": "as-needed",
12
- "requirePragma": false,
13
- "semi": false,
14
- "singleQuote": true,
15
- "jsxSingleQuote": true,
16
- "trailingComma": "none",
17
- "tabWidth": 2,
18
- "useTabs": false
19
- }