@dxos/index-core 0.0.0 → 0.8.4-main.05e74ebcff

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 +102 -5
  2. package/README.md +1 -1
  3. package/dist/lib/neutral/index.mjs +790 -0
  4. package/dist/lib/neutral/index.mjs.map +7 -0
  5. package/dist/lib/neutral/meta.json +1 -0
  6. package/dist/types/src/index-engine.d.ts +112 -0
  7. package/dist/types/src/index-engine.d.ts.map +1 -0
  8. package/dist/types/src/index-engine.test.d.ts +2 -0
  9. package/dist/types/src/index-engine.test.d.ts.map +1 -0
  10. package/dist/types/src/index-tracker.d.ts +44 -0
  11. package/dist/types/src/index-tracker.d.ts.map +1 -0
  12. package/dist/types/src/index-tracker.test.d.ts +2 -0
  13. package/dist/types/src/index-tracker.test.d.ts.map +1 -0
  14. package/dist/types/src/index.d.ts +8 -0
  15. package/dist/types/src/index.d.ts.map +1 -0
  16. package/dist/types/src/indexes/fts-index.d.ts +64 -0
  17. package/dist/types/src/indexes/fts-index.d.ts.map +1 -0
  18. package/dist/types/src/indexes/fts-index.test.d.ts +2 -0
  19. package/dist/types/src/indexes/fts-index.test.d.ts.map +1 -0
  20. package/dist/types/src/indexes/fts5.test.d.ts +2 -0
  21. package/dist/types/src/indexes/fts5.test.d.ts.map +1 -0
  22. package/dist/types/src/indexes/index.d.ts +5 -0
  23. package/dist/types/src/indexes/index.d.ts.map +1 -0
  24. package/dist/types/src/indexes/interface.d.ts +56 -0
  25. package/dist/types/src/indexes/interface.d.ts.map +1 -0
  26. package/dist/types/src/indexes/object-meta-index.d.ts +94 -0
  27. package/dist/types/src/indexes/object-meta-index.d.ts.map +1 -0
  28. package/dist/types/src/indexes/object-meta-index.test.d.ts +2 -0
  29. package/dist/types/src/indexes/object-meta-index.test.d.ts.map +1 -0
  30. package/dist/types/src/indexes/reverse-ref-index.d.ts +37 -0
  31. package/dist/types/src/indexes/reverse-ref-index.d.ts.map +1 -0
  32. package/dist/types/src/indexes/reverse-ref-index.test.d.ts +2 -0
  33. package/dist/types/src/indexes/reverse-ref-index.test.d.ts.map +1 -0
  34. package/dist/types/src/utils.d.ts +17 -0
  35. package/dist/types/src/utils.d.ts.map +1 -0
  36. package/dist/types/tsconfig.tsbuildinfo +1 -0
  37. package/package.json +23 -19
  38. package/src/index-engine.test.ts +176 -13
  39. package/src/index-engine.ts +162 -30
  40. package/src/index-tracker.ts +9 -0
  41. package/src/index.ts +10 -3
  42. package/src/indexes/fts-index.test.ts +153 -3
  43. package/src/indexes/fts-index.ts +66 -10
  44. package/src/indexes/interface.ts +10 -0
  45. package/src/indexes/object-meta-index.test.ts +366 -8
  46. package/src/indexes/object-meta-index.ts +310 -23
  47. package/src/indexes/reverse-ref-index.test.ts +31 -17
  48. package/src/indexes/reverse-ref-index.ts +11 -12
  49. package/src/utils.ts +1 -1
package/LICENSE CHANGED
@@ -1,8 +1,105 @@
1
- MIT License
2
- Copyright (c) 2022 DXOS
1
+ # Functional Source License, Version 1.1, ALv2 Future License
3
2
 
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ ## Abbreviation
5
4
 
6
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ FSL-1.1-Apache-2.0
7
6
 
8
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7
+ ## Notice
8
+
9
+ Copyright 2026 DXOS
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the Apache License, Version 2.0 that is effective on the second anniversary of
91
+ the date we make the Software available. On or after that date, you may use the
92
+ Software under the Apache License, Version 2.0, in which case the following
93
+ will apply:
94
+
95
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
+ this file except in compliance with the License.
97
+
98
+ You may obtain a copy of the License at
99
+
100
+ http://www.apache.org/licenses/LICENSE-2.0
101
+
102
+ Unless required by applicable law or agreed to in writing, software distributed
103
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
+ specific language governing permissions and limitations under the License.
package/README.md CHANGED
@@ -18,4 +18,4 @@ pnpm i @dxos/index-core
18
18
 
19
19
  Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).
20
20
 
21
- License: [MIT](./LICENSE) Copyright 2022 © DXOS
21
+ License: [FSL-1.1-Apache-2.0](./LICENSE) Copyright 2022 © DXOS