Skip to content

Commit 28b591a

Browse files
committed
Update readme
1 parent 1955627 commit 28b591a

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LINQ To TypeScript
22
- **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**
44
```TypeScript
55
await from([bing, google, quackQuackGo])
66
.asParallel()
@@ -72,11 +72,9 @@ const evenNumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9].where((x) => x % 2 === 0).toArra
7272

7373
Please refer to the [examples folder](/examples)
7474

75-
### ES6 Modules
75+
### ES6 Modules (ESM)
7676

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
8078

8179
## API
8280

@@ -231,28 +229,24 @@ fromParallel(ParallelGeneratorType.PromiseToArray, asyncFuncThatReturnsAnArray)
231229

232230
### Issues and Questions
233231

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?**
239233

240234
Other libraries tend to use eager evaluation and work with arrays instead of iterables.
241235

242-
**Q3: Can I use your code?**
236+
**Q2: Can I use your code?**
243237

244238
With attribution; the code is licensed under MIT.
245239

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?**
247241

248242
The whole library is written in TypeScript first and avoids typechecking done by TypeScript Language Service.
249243

250244
Lazy evaluation. Not much happens until you iterate over the enumerable or conver it to an Array, Map, etc.
251245

252-
**Q5: Is IE11 supported?**
246+
**Q4: Is IE11 supported?**
253247

254248
No.
255249

256-
**Q6: Can I contribute?**
250+
**Q5: Can I contribute?**
257251

258252
Please do!

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ steps:
5252
cd tests/moduletest
5353
npm install
5454
tsc
55-
node --experimental-specifier-resolution=node index.js
55+
node index.js
5656
displayName: 'Test ES6 Modules'
5757
- script: |
5858
cd examples

0 commit comments

Comments
 (0)