Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATAVIZ: Merge upstream 4.0.3 #4

Merged
merged 215 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
32421ea
v4.0.0-alpha.13
belom88 Jul 13, 2023
452e5cf
fix(tile-converter): i3s->3dtiles regression (#2550)
belom88 Jul 14, 2023
0b43313
fix(3d-tiles): implicit tiling v1.1 (#2549)
belom88 Jul 14, 2023
dd88559
v4.0.0-alpha.14
belom88 Jul 14, 2023
ed13bdb
chore(tile-converter): update i3s-server manual (#2552)
belom88 Jul 18, 2023
3f3a88a
chore: update CHANGELOG.md (#2551)
belom88 Jul 18, 2023
4400d4b
fix(tile-converter): CesiumION tileset URL (#2560)
belom88 Jul 19, 2023
132c452
chore(deps): bump word-wrap in /test/apps/typescript-test (#2559)
dependabot[bot] Jul 19, 2023
729619b
fix(docs): JSONLoader _rootObjectBatches removed but not mentioned in…
nreese Jul 19, 2023
edffd47
chore(deps): bump semver from 5.7.1 to 5.7.2 in /website (#2546)
dependabot[bot] Jul 19, 2023
48e473d
feat(tile-converter): i3s-server bundle (#2555)
belom88 Jul 20, 2023
71e48c3
chore(tile-converter): Support for SLPKs larger than 2 Gb (#2547)
dariaterekhova-actionengine Jul 20, 2023
93e3678
chore(tile-converter): bump i3s-server deps (#2561)
belom88 Jul 20, 2023
47467ab
v4.0.0-alpha.15
belom88 Jul 20, 2023
c4e099c
chore(tile-converter): i3s-server convert to ts (#2562)
belom88 Jul 21, 2023
1f99018
chore(deps): bump semver from 5.7.1 to 5.7.2 (#2545)
dependabot[bot] Jul 24, 2023
d02c8ff
chore(deps): bump semver in /test/apps/typescript-test (#2544)
dependabot[bot] Jul 24, 2023
1dabc14
chore(tile-converter): i3s-server tests (#2563)
belom88 Jul 24, 2023
0db5012
docs(tile-converter): I3S Server (#2564)
belom88 Jul 25, 2023
5df9cb0
chore(tile-converter): create SLPK hash during serve (#2565)
dariaterekhova-actionengine Jul 26, 2023
87e9714
v4.0.0-alpha.16
belom88 Jul 26, 2023
a19c1c5
fix(obj): Improved vertex colors parsing (#2569)
chrisgervang Jul 27, 2023
8247945
Add `triangulate` property to `geojsonToBinary` (#2571)
felixpalmer Aug 2, 2023
6869583
docs(chore): core API documentation improvements (#2573)
ibgreen Aug 3, 2023
68a743e
v4.0.0-alpha.17
belom88 Aug 3, 2023
f51905b
chore(tile-converter): 3dtiles - exclude Tile3D and Tileset3D (#2574)
belom88 Aug 4, 2023
6e4979c
chore(core): Refactor fetchFile to handle Node.js local file loading …
ibgreen Aug 4, 2023
86a1ff4
docs(tile-converter): Add documentation for SLPK Extractor (#2567)
dariaterekhova-actionengine Aug 4, 2023
0a0b7d3
fix: Bump and remove @xmldom/xmldom (input validation issue) (#2582)
ibgreen Aug 9, 2023
d92fa35
fix(tile-converter): skip failing content (#2576)
belom88 Aug 11, 2023
7bc633f
v4.0.0-alpha.18
belom88 Aug 11, 2023
58538f7
fix(tile-converter): fix loading buffers in preprocess-3d-tiles (#2572)
mspivak-actionengine Aug 11, 2023
71d5733
fix(i3s): add to tileset data (#2585)
belom88 Aug 14, 2023
652a663
Handle empty childless tiles in TilesetTraverser (#2584)
felixpalmer Aug 15, 2023
cbb7073
feat(tile-converter): i3s - offline conversion (#2579)
belom88 Aug 15, 2023
18f8574
fix(tile-converter): CLI startup script (#2587)
belom88 Aug 15, 2023
2ca50ec
v4.0.0-alpha.19
belom88 Aug 15, 2023
ff2a63d
fix(tile-converter): featureIds + uvRegions (#2588)
belom88 Aug 21, 2023
684dd0d
feat(tile-converter): select metadata classes (#2590)
belom88 Aug 22, 2023
c8b3fac
chore(tile-converter): remove CesiumION tokens (#2592)
belom88 Aug 22, 2023
298d8c3
fix(core): fetchOptions regression (#2591)
belom88 Aug 23, 2023
ce55460
chore(i3s): Zip parse refactoring (#2594)
dariaterekhova-actionengine Aug 23, 2023
4b9e9bf
chore(i3s): Hash file utility moved to loader-utils (#2595)
dariaterekhova-actionengine Aug 24, 2023
ac122e8
v4.0.0-alpha.20
belom88 Aug 24, 2023
10d3d7c
chore(compression): Added raw mode for deflate-compresion module (#2598)
dariaterekhova-actionengine Aug 24, 2023
e0046ab
chore(zip): Compression method added for local header (#2600)
dariaterekhova-actionengine Aug 25, 2023
a05ea7a
chore(zip): read file classes (#2601)
belom88 Aug 28, 2023
c99c913
chore(i3s): Hash generation moved to @loader.gl/zip (#2599)
dariaterekhova-actionengine Aug 28, 2023
532c0b9
feat(zip): ZipFileSystem (#2602)
belom88 Aug 28, 2023
b63db2b
feat(zip): extract one file (#2603)
belom88 Aug 28, 2023
444d85e
Revert "feat(zip): extract one file (#2603)" (#2604)
belom88 Aug 28, 2023
9a66df9
feat(3d-tiles): 3tz loader (#2578)
dariaterekhova-actionengine Aug 29, 2023
0ddcf66
feat: More typed loaders (#2607)
ibgreen Aug 29, 2023
7c7e40b
feat(core): parseSync, parseInBatches, load, loadInBatches type infer…
ibgreen Aug 31, 2023
df5d670
v4.0.0-alpha.21
belom88 Sep 1, 2023
cc9cbd3
feat(3d-tiles): some improvements (#2610)
dariaterekhova-actionengine Sep 1, 2023
616b598
feat(loader-utils): Type safe context parsers for sub loaders (#2613)
ibgreen Sep 1, 2023
8064ccb
chore: Use parseFromContext in subloaders (#2616)
ibgreen Sep 3, 2023
15326df
chore(core): Reduce use of implicit any, move test files to .ts (#2619)
ibgreen Sep 3, 2023
10bbbf6
feat(tile-converter): support 3tz (#2609)
belom88 Sep 4, 2023
1d75362
fix(zip): @loaders.gl/core dependency (#2620)
belom88 Sep 4, 2023
0da838c
v4.0.0-alpha.22
belom88 Sep 4, 2023
cb97144
chore: Clean up module imports, remove default exports in images modu…
ibgreen Sep 4, 2023
43b2fed
chore(zip): Remove zip module dependency on @loaders.gl/core (#2622)
ibgreen Sep 4, 2023
a3a9fa1
docs(core): Typed loaders (#2624)
ibgreen Sep 4, 2023
8cb4608
chore(csv): Ensure tests use typed CSVLoader (#2621)
ibgreen Sep 4, 2023
70c0bbf
feat(core): non-specific parse functions return unknown (#2625)
ibgreen Sep 4, 2023
e64b879
feat(tile-converter): support EXT_mesh_features and EXT_structural_me…
mspivak-actionengine Sep 5, 2023
b7c1ef5
chore: Add loader type parameters (#2626)
ibgreen Sep 5, 2023
e212f2a
v4.0.0-alpha.23
belom88 Sep 5, 2023
61aebf4
chore: Type 3d-tile and I3S loaders. (#2606)
ibgreen Sep 5, 2023
eeb1376
docs(i3s): I3S receipts (#2627)
belom88 Sep 6, 2023
2f8878f
docs(i3s): fix formats and english (#2628)
belom88 Sep 7, 2023
b73def8
chore(gis): Add typescript types (#2629)
ibgreen Sep 7, 2023
152ad4f
chore: More typed loaders (#2630)
ibgreen Sep 7, 2023
2577ca7
feat(arrow): Typed apache arrow loader (#2631)
ibgreen Sep 7, 2023
359593c
feat(arrow): upgrade to apache-arrow v13 (#2632)
ibgreen Sep 10, 2023
cd39ede
docs: Consolidate whats-new (merge duplications) (#2637)
ibgreen Sep 10, 2023
16a07f2
Fix browser exclude (#2596)
Pessimistress Sep 11, 2023
07948d3
chore(draco): Upgrade to draco3d v1.5.6 (#2638)
ibgreen Sep 11, 2023
ee4f8e3
chore(gltf): 3d-tiles extensions refactoring (#2633)
belom88 Sep 12, 2023
a0d1602
feat(gltf): EXT_feature_metadata - numeric types support (#2634)
belom88 Sep 12, 2023
950013d
fix(tile-converter): EXT_feature_metadata conversion (#2639)
belom88 Sep 12, 2023
3842801
fix(tile-converter): geometry attributes reordering performance (#2640)
belom88 Sep 12, 2023
97a8990
v4.0.0-alpha.24
belom88 Sep 12, 2023
0ae435e
chore(parquet): Add Buffer polyfill to parquet to avoid bundler compl…
ibgreen Sep 13, 2023
5b40e98
chore(tile-converter): rename (#2641)
belom88 Sep 13, 2023
3faf18f
docs(tile-converter): metadata class selection (#2642)
belom88 Sep 13, 2023
56bceec
feat(schema): Make geojson-table compatible with GeoJSON (#2644)
ibgreen Sep 13, 2023
86a4936
docs: Add whats-new and upgrade-guide to arrowjs docs (#2636)
ibgreen Sep 13, 2023
e24b47c
docs(release-notes): Loaders 4.0 upcoming release notes (#2648)
dsavinov-actionengine Sep 14, 2023
f54182f
feat(wkt): Add WKTCRSLoader/Writer (#2649)
ibgreen Sep 15, 2023
0bcc8af
chore: geoparquet prep (#2650)
ibgreen Sep 15, 2023
514f550
chore(worker-utils): Improve version handling (#2651)
ibgreen Sep 15, 2023
382f2ca
feat(wkb): New HexWKBLoader for hex encoded WKB (#2652)
ibgreen Sep 16, 2023
c7797f9
feat(wkb): Auto-detect WKB dialect and encoding (#2184)
ibgreen Sep 16, 2023
dcaabf1
feat(wkt): Add TWKBLoader/Writer (#2028)
ibgreen Sep 18, 2023
f4c7b2e
feat: new geoparquet example (#2646)
ibgreen Sep 18, 2023
0fd3321
feat(tile-converter): select metadata class from EXT_structural_metad…
belom88 Sep 19, 2023
fef5d92
chore(twkb): Add TWKBLoader tests (#2653)
ibgreen Sep 19, 2023
ce0acb9
batch types (#2645)
ibgreen Sep 19, 2023
535a7fd
fix(gltf, converter): make ext-mesh-features independent from ext-str…
mspivak-actionengine Sep 21, 2023
fe45578
fix(gltf): tests for ext-feature-metadata (#2656)
mspivak-actionengine Sep 22, 2023
40135f3
v4.0.0-alpha.25
dariaterekhova-actionengine Sep 22, 2023
ef6613c
feat(crypto): Add encoding parameter for hashes (#2657)
ibgreen Sep 24, 2023
361ca5b
Fixes for deck.gl 8.10 (#2658)
ibgreen Sep 25, 2023
91adce7
v4.0.0-alpha.26
dariaterekhova-actionengine Sep 25, 2023
f360245
fix(parse-i3s): getting root node url for normalizeTilesetData withou…
maxkuznetsov-actionengine Sep 25, 2023
483b869
Website: Geoparquet example (#2660)
ibgreen Sep 25, 2023
0f42927
feat(pmtiles): Support for pmtiles format (#2662)
ibgreen Sep 26, 2023
b35da26
docs: Improved release notes
ibgreen Sep 26, 2023
7dd178b
feat(pmtools): Add vector tile support (#2664)
ibgreen Sep 29, 2023
f675a87
Move master to 4.0-beta tags (#2661)
ibgreen Sep 29, 2023
61ebb06
fix: remove unused ts directive (#2665)
maxkuznetsov-actionengine Sep 29, 2023
f711293
feat(wms): Separate WMSSource and WMSService (#2667)
ibgreen Oct 1, 2023
6fd3f8f
feat(pmtiles): Create PMTileSource from Blob (#2668)
ibgreen Oct 1, 2023
ffc5875
feat(mvt): Add TileJSONLoader (#2666)
ibgreen Oct 1, 2023
9dc3f6d
feat(gltf): added support of arrays to ext-feature-metadata (#2663)
mspivak-actionengine Oct 2, 2023
77e6e32
feat(tile-converter): support of 64-bit int (#2670)
mspivak-actionengine Oct 2, 2023
35c625e
v4.0.0-beta.1
dariaterekhova-actionengine Oct 2, 2023
ece5138
chore(polyfills): Start moving Node.js code into polyfills (#2669)
ibgreen Oct 2, 2023
0ca40cb
fix: getting tile url with empty query params (#2671)
maxkuznetsov-actionengine Oct 4, 2023
79c2033
v4.0.0-beta.2
dariaterekhova-actionengine Oct 4, 2023
c65b6f9
chore(polyfills): Remove Promise.allSettled polyfill (#2672)
ibgreen Oct 4, 2023
4be14fb
chore(zip): Refactor zip content hash tables (#2500)
ibgreen Oct 6, 2023
4ffe878
chore: Remove Buffer usage (#2675)
ibgreen Oct 6, 2023
d60184d
feat(loader-utils): Refactor FileSystem to be independent of fs (#2676)
ibgreen Oct 8, 2023
84df1e9
chore(core): Remove writeSync, save and fs dependencies (#2678)
ibgreen Oct 8, 2023
a251e2a
feat(mvt): Add MVTSource (#2674)
ibgreen Oct 9, 2023
71b0e82
feat: Move to ES modules, upgrade dev-tools (#2681)
ibgreen Oct 10, 2023
c283346
fix(tiles): convert region to obb (#2685)
belom88 Oct 11, 2023
bd1f15f
chore: Restore library loading (#2686)
ibgreen Oct 11, 2023
be2badc
chore: Upgrade to math.gl@4.0.0-beta.1. Remove gl-matrix (#2696)
ibgreen Oct 13, 2023
f5d4fc0
chore(schema): Move arrow dependencies to arrow module (#2697)
ibgreen Oct 13, 2023
e145003
fix(gltf): fix of getTypedArrayForAccessor in gltf-scenegraph (#2683)
mspivak-actionengine Oct 14, 2023
0b1b487
chore: math.gl@4.0.0 (#2698)
ibgreen Oct 14, 2023
8458385
chore: Prep for Node18 support (#2699)
ibgreen Oct 15, 2023
dafed99
fix(wms): WMS 1.3.0 compatability on GetFeatureInfo (#2680)
mortenolsenzn Oct 15, 2023
0e6ca24
chore(website): Restore website (#2689)
ibgreen Oct 15, 2023
d0f5ab3
fix(tiles): cartographicToCartesan syntax (#2690)
belom88 Oct 16, 2023
3d9da1b
feat(tile-converter): --analyze-only option (#2694)
belom88 Oct 16, 2023
7ba9621
v4.0.0-beta.3
dariaterekhova-actionengine Oct 16, 2023
81f6c77
fix(i3s): handle search params in I3SLoader (#2692)
belom88 Oct 16, 2023
8cd3716
chore(polyfills): Consolidate node code (#2701)
ibgreen Oct 16, 2023
a52ce43
feat(tile-converter): test for conversion arrays to attribute of stri…
mspivak-actionengine Oct 17, 2023
522eca1
fix(tile-converter): cli tools (#2707)
belom88 Oct 17, 2023
848c20b
v4.0.0-beta.4
dariaterekhova-actionengine Oct 19, 2023
3b44fe0
feat(geopackage): Upgrade and modernize (#2704)
ibgreen Oct 20, 2023
4d4af19
docs (whats-new): Update whats-new.mdx for 4.0 loaders.gl release (#2…
dsavinov-actionengine Oct 20, 2023
770ddcc
chore: Bump to Node 18 (#2711)
ibgreen Oct 20, 2023
a8ae28f
fix(tile-converter): enable tests (#2708)
belom88 Oct 20, 2023
0cfd11c
chore: Add CI for Node 20 (#2712)
ibgreen Oct 20, 2023
b3ffecc
fix(gltf, tile-converter): attributeStorageInfo, use class name (#2673)
mspivak-actionengine Oct 20, 2023
44b0a19
Path fix (#2709)
dariaterekhova-actionengine Oct 20, 2023
a6f5a0d
v4.0.0-beta.5
dariaterekhova-actionengine Oct 20, 2023
2bd05d7
chore: Remove deprecated APIs and update docs (#2714)
ibgreen Oct 20, 2023
419bfba
feat(wms): Restore LERCLoader (#2715)
ibgreen Oct 21, 2023
d4262a5
fix(polyfills): Add CJS export for node.js (#2720)
ibgreen Oct 23, 2023
2840f60
v4.0.0-beta.6
dariaterekhova-actionengine Oct 23, 2023
8e5f1bf
fix(i3s): I3SContentLoader regression (#2713)
belom88 Oct 23, 2023
a713af4
feat(polyfills): Add installFilePolyfills on Node.js (#2722)
ibgreen Oct 23, 2023
a25f026
chore(polyfills): Bump deps (#2723)
ibgreen Oct 23, 2023
fa8d70a
feat(lerc): Break out LERCLoader into its own module (size and bundli…
ibgreen Oct 23, 2023
55df2d5
feat(flatgeobuf): Upgrade to latest flatgeobuf (#2684)
ibgreen Oct 24, 2023
fb8e0d0
fix(i3s): Remove luma.gl dependency (#2727)
ibgreen Oct 24, 2023
5b6cab0
v4.0.0-beta.7
dariaterekhova-actionengine Oct 24, 2023
49b1536
added test for conversion 64-bit attributes to strings (#2728)
mspivak-actionengine Oct 24, 2023
08dd4db
chore(i3s): Export a function customizeColors from i3s lib utils (#2719)
maxkuznetsov-actionengine Oct 24, 2023
a183a68
chore: Clean up license text (#2729)
ibgreen Oct 24, 2023
adcf2f8
chore(crypto): Restore crypto tests (#2730)
ibgreen Oct 24, 2023
75f4cc3
fix: render test import (#2731)
chrisgervang Oct 25, 2023
b3e5a56
fix(website): restore I3S examples (#2734)
belom88 Oct 25, 2023
40cdaf4
Update gltf.md. (#2733)
mspivak-actionengine Oct 25, 2023
ec3d174
v4.0.0-beta.8
dariaterekhova-actionengine Oct 25, 2023
2252ce8
chore(textures): enable tests (#2741)
belom88 Oct 26, 2023
a46d7c5
feat(gis): Consolidate geo metadata detection and table conversion (#…
ibgreen Oct 26, 2023
1297d24
fix(zip): cd header zip64 data reading fix (#2710)
dariaterekhova-actionengine Oct 26, 2023
6b24df5
feat(arrow): GeoArrow utilities (#2744)
ibgreen Oct 27, 2023
e27a03c
Got rid of .toString() usage for ArrayBuffers (#2743)
dariaterekhova-actionengine Oct 27, 2023
af8e56f
chore: Add some javascript API guidelines (#2747)
ibgreen Oct 27, 2023
99b3da7
Update 3D Tiles Docs (#2749)
OmarShehata Oct 30, 2023
3de6408
feat(mvt): MVTileSource (#2750)
ibgreen Oct 30, 2023
e2c6d99
chore: improve test coverage (#2751)
ibgreen Oct 30, 2023
4c134a1
docs: Clean up website links (#2748)
ibgreen Oct 30, 2023
6c00aaa
refactor(tile-converter): refactor creation of Attribute info (#2718)
mspivak-actionengine Oct 30, 2023
4647368
feat(tile-converter): conversion progress (#2739)
mspivak-actionengine Oct 30, 2023
5a34761
chore(shapefile): Improve Shapefile format doc (#2752)
ibgreen Oct 30, 2023
8b9bf2b
fix(tile-converter): i3s-server - esm compatibility (#2745)
belom88 Oct 30, 2023
765e5a2
v4.0.1
dariaterekhova-actionengine Oct 31, 2023
25028fc
chore: fix 4.0 peer dependencies (#2755)
ibgreen Oct 31, 2023
38c11e1
fix(website): Unbreak website build (#2756)
ibgreen Oct 31, 2023
9225d21
chore: Improve docs (#2758)
ibgreen Nov 1, 2023
8ae72ad
fix(kml): Fix TXCLoader default shape (#2761)
ibgreen Nov 1, 2023
a65640a
fix get arrow bound function; add test case (#2763)
lixun910 Nov 2, 2023
90c7eb1
chore: Adopt namespace style imports for apache-arrow (#2764)
ibgreen Nov 2, 2023
a22b356
chore(Arrow): add test cases for geoarrow to binary geometries (#2765)
lixun910 Nov 2, 2023
447fa67
chore: Remove Buffer in test cases (#2766)
ibgreen Nov 2, 2023
4067375
feat(schema): makeTableFromBatches (#2767)
ibgreen Nov 2, 2023
fdd6061
test: run workers from source code (#2762)
belom88 Nov 3, 2023
471058d
v4.0.2
dariaterekhova-actionengine Nov 3, 2023
e5f9759
chore(loader-utils): split Worker/WorkerWithEncoder types (#2768)
ibgreen Nov 3, 2023
b21dec6
chore(excel): Fix batched loader adapter from atomic parse (#2769)
ibgreen Nov 3, 2023
e42f9fd
chore: parseFile accepts `ReadableFile` (#2770)
ibgreen Nov 3, 2023
d90ffc4
chore: Dependencies (#2772)
ibgreen Nov 3, 2023
59fc842
fix(3d-tiles): Enable Tiles3DLoader tests (#2771)
ibgreen Nov 3, 2023
de10c5d
feat(parquet): Enable Parquet WASM loader (#2773)
ibgreen Nov 4, 2023
be7000f
chore: Update all dependencies to ^4.0.0 (#2775)
ibgreen Nov 5, 2023
4184949
fix(examples): run 'geospatial' locally (#2776)
belom88 Nov 9, 2023
21ed934
docs(arrowjs): Update Arrow docs and release notes (#2778)
ibgreen Nov 9, 2023
708a26d
fix: Use "latest" version tag when loading from unpkg (#2779)
ibgreen Nov 9, 2023
d29fd1e
fix(Arrow): featureIds not correctly parsed from MultiPolygon w/ hole…
lixun910 Nov 9, 2023
d3e1f0b
fix: Revert parquet-wasm integration (#2781)
ibgreen Nov 9, 2023
8c4f971
feat(tile-converter): estimation of time remaining (#2774)
mspivak-actionengine Nov 9, 2023
03c8718
v4.0.3
dariaterekhova-actionengine Nov 9, 2023
1cfd924
Merge tag 'v4.0.3' into merge-4.0.3-master
Kaapp Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
133 changes: 133 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
const {getESLintConfig} = require('ocular-dev-tools/configuration');

// Make any changes to default config here
const config = getESLintConfig({
overrides: {
// To make import assertions work
parser: '@babel/eslint-parser',
parserOptions: {
project: ['./tsconfig.json'],
requireConfigFile: false,
babelOptions: {
plugins: ['@babel/plugin-syntax-import-assertions']
}
},
env: {
browser: true,
es2020: true,
node: true
},

rules: {
indent: 0,
'import/no-unresolved': 0,
'no-console': 1,
'no-continue': ['warn'],
'callback-return': 0,
'max-depth': ['warn', 4],
complexity: ['warn'],
'max-statements': ['warn'],
'default-case': ['warn'],
'no-eq-null': ['warn'],
eqeqeq: ['warn'],
radix: 0
// 'accessor-pairs': ['error', {getWithoutSet: false, setWithoutGet: false}]
},

overrides: [
{
files: ['**/*.ts', '**/*.tsx', '**/*.d.ts'],
rules: {
// typescript-eslint 6.0
'@typescript-eslint/no-unsafe-argument': 0,
'@typescript-eslint/no-redundant-type-constituents': 0,
'@typescript-eslint/no-unsafe-enum-comparison': 1,
'@typescript-eslint/no-duplicate-type-constituents': 1,
'@typescript-eslint/no-base-to-string': 1,
'@typescript-eslint/no-loss-of-precision': 1,

// For parquet module
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-non-null-asserted-optional-chain': 0,
'@typescript-eslint/no-floating-promises': 0,
// Gradually enable
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-unused-vars': [
'warn',
{vars: 'all', args: 'none', ignoreRestSiblings: false}
],
// We still have some issues with import resolution
'import/named': 0,
'import/no-extraneous-dependencies': 0, // ['warn'], disable for test folder only...
// Warn instead of error
// 'max-params': ['warn'],
// 'no-undef': ['warn'],
// camelcase: ['warn'],
// '@typescript-eslint/no-floating-promises': ['warn'],
// '@typescript-eslint/await-thenable': ['warn'],
// '@typescript-eslint/no-misused-promises': ['warn'],
'@typescript-eslint/no-empty-function': 0,
// We use function hoisting
'@typescript-eslint/no-use-before-define': 0,
// We always want explicit typing, e.g `field: string = ''`
'@typescript-eslint/no-inferrable-types': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/require-await': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/restrict-plus-operands': 0
}
},
{
// scripts use devDependencies
files: ['*worker*.js', '**/worker-utils/**/*.js'],
env: {
browser: true,
es2020: true,
node: true,
worker: true
}
},
// tests are run with aliases set up in node and webpack.
// This means lint will not find the imported files and generate false warnings
{
// scripts use devDependencies
files: ['**/test/**/*.js', '**/scripts/**/*.js', '*.config.js', '*.config.local.js'],
rules: {
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0
}
},
{
files: ['examples/**/*.js'],
rules: {
'import/no-unresolved': 0
}
}
],

settings: {
// Ensure eslint finds typescript files
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx']
}
}
}
}
});

// config.overrides[1].parserOptions = {
// project: ['./tsconfig.json']
// };

// Uncomment to log the eslint config
// console.debug(JSON.stringify(config, null, 2));

module.exports = config;
120 changes: 0 additions & 120 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
node-version: [16, 18, 20]

steps:
- uses: actions/checkout@v3
Expand All @@ -33,7 +33,7 @@ jobs:
npm run test ci

- name: Coveralls
if: matrix.node-version == 16
if: matrix.node-version == 18
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# tests
test/data/test.png
tmp
!modules/zip/test/data/**/*.zip

# dists
dist/*
Expand Down
35 changes: 0 additions & 35 deletions .ocularrc.cjs

This file was deleted.

37 changes: 37 additions & 0 deletions .ocularrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import {resolve} from 'path';

export default {
aliases: {
test: resolve('./test')
},

typescript: {
project: 'tsconfig.build.json'
},

bundle: {
globalName: 'loader',
externals: ['fs', 'path', 'util', 'events', 'stream', 'crypto', 'http', 'https'],
target: ['supports async-functions', 'not dead'],
format: 'umd',
globals: {
'@loaders.gl/*': 'globalThis.loaders'
}
},

lint: {
// TODO - comment out while getting typescript to work
paths: ['dev-docs', 'docs', 'modules'] // 'examples', test', 'website', 'examples'],
// extensions: ['js', 'jsx', 'mjs', 'ts', 'tsx', 'md']
},

webpack: {},

entry: {
test: 'test/node.ts',
'test-browser': 'test/browser.ts',
bench: 'test/bench/node.js',
'bench-browser': 'test/bench/browser.js',
size: 'test/size/import-nothing.js'
}
};
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ node_modules/
.cache
public

modules/core/src/iterators/make-stream/make-node-stream.ts

modules/loader-utils/src/lib/files/node-file-facade.ts
modules/loader-utils/src/lib/filesystems/node-filesystem-facade.ts

modules/3d-tiles/test/lib/classes/tile-3d-batch-table-hierarchy.spec.ts

modules/bson/src/bson-writer.ts
Expand All @@ -15,6 +20,7 @@ modules/bson/src/lib/encoders/encode-bson.ts
modules/bson/src/lib/parsers/parse-bson.ts
modules/bson/test/data/js-bson/corrupt.ts

modules/parquet/src/polyfills/buffer/buffer.ts
modules/parquet/test

examples/experimental/gltf-with-raw-webgl/
Expand All @@ -35,6 +41,8 @@ modules/mvt/src/lib/geojson-tiler/tile.ts

modules/parquet/test

modules/textures/test/basis-loader.spec.ts

modules/xml/test/sax-ts/testcases/attribute-name.spec.ts
modules/xml/test/sax-ts/testcases/opentagstart.spec.ts
modules/xml/test/sax-ts/testcases/script-close-better.spec.ts
Expand Down
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
printWidth: 100
semi: true
singleQuote: true
trailingComma: none
bracketSpacing: false
Loading