|
1 | 1 | # LINQ To TypeScript |
2 | 2 | - **Implementation of [LINQ](https://en.wikipedia.org/wiki/Language_Integrated_Query) for TypeScript** |
3 | | -- **Targets TypeScript 4.4.X and ES 2019** |
| 3 | +- **Targets TypeScript 4.5.X and ES 2019** |
4 | 4 | ```TypeScript |
5 | 5 | await from([bing, google, quackQuackGo]) |
6 | 6 | .asParallel() |
@@ -72,11 +72,9 @@ const evenNumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9].where((x) => x % 2 === 0).toArra |
72 | 72 |
|
73 | 73 | Please refer to the [examples folder](/examples) |
74 | 74 |
|
75 | | -### ES6 Modules |
| 75 | +### ES6 Modules (ESM) |
76 | 76 |
|
77 | | -To use library with ES6 modules, |
78 | | -1. Make sure that you specify `"type": "module"` in package.json |
79 | | -2. Run node with `--experimental-specifier-resolution=node` |
| 77 | +To use library with ES6 modules make sure that you specify `"type": "module"` in package.json |
80 | 78 |
|
81 | 79 | ## API |
82 | 80 |
|
@@ -231,28 +229,24 @@ fromParallel(ParallelGeneratorType.PromiseToArray, asyncFuncThatReturnsAnArray) |
231 | 229 |
|
232 | 230 | ### Issues and Questions |
233 | 231 |
|
234 | | -**Q1: I'm getting a `Directory import [...] is not supported resolving ES modules imported from [...]`** |
235 | | - |
236 | | -If your application npm package is `"type": "module"` then you need to run with `--experimental-specifier-resolution=node` |
237 | | - |
238 | | -**Q2: How does this compare to other LINQ libraries?** |
| 232 | +**Q1: How does this compare to other LINQ libraries?** |
239 | 233 |
|
240 | 234 | Other libraries tend to use eager evaluation and work with arrays instead of iterables. |
241 | 235 |
|
242 | | -**Q3: Can I use your code?** |
| 236 | +**Q2: Can I use your code?** |
243 | 237 |
|
244 | 238 | With attribution; the code is licensed under MIT. |
245 | 239 |
|
246 | | -**Q4: Why should I use this instead of lodash or something similar?** |
| 240 | +**Q3: Why should I use this instead of lodash or something similar?** |
247 | 241 |
|
248 | 242 | The whole library is written in TypeScript first and avoids typechecking done by TypeScript Language Service. |
249 | 243 |
|
250 | 244 | Lazy evaluation. Not much happens until you iterate over the enumerable or conver it to an Array, Map, etc. |
251 | 245 |
|
252 | | -**Q5: Is IE11 supported?** |
| 246 | +**Q4: Is IE11 supported?** |
253 | 247 |
|
254 | 248 | No. |
255 | 249 |
|
256 | | -**Q6: Can I contribute?** |
| 250 | +**Q5: Can I contribute?** |
257 | 251 |
|
258 | 252 | Please do! |
0 commit comments