fugu-api-data 1.9.0 → 1.10.0

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 (3) hide show
  1. package/package.json +3 -3
  2. package/patterns.js +13 -46
  3. package/patterns.mjs +13 -46
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fugu-api-data",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Data about Project Fugu 🐡 APIs.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "homepage": "https://github.com/tomayac/fugu-api-data#readme",
25
25
  "devDependencies": {
26
- "node-fetch": "^3.2.6",
27
- "prettier": "^2.7.0"
26
+ "node-fetch": "^3.2.8",
27
+ "prettier": "^2.7.1"
28
28
  }
29
29
  }
package/patterns.js CHANGED
@@ -353,15 +353,6 @@ const patterns = {
353
353
  documentation: 'https://web.dev/nfc/',
354
354
  blinkFeatureID: 3094,
355
355
  },
356
- 'Run On Login': {
357
- regEx: /navigator\.runOnOsLogin\.set\s*\(/g,
358
- where: 'JavaScript',
359
- supported: (async () => 'runOnOsLogin' in navigator)(),
360
- featureDetection: `(async () => 'runOnOsLogin' in navigator)()`,
361
- documentation:
362
- 'https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/RunOnLogin/Explainer.md',
363
- blinkFeatureID: undefined,
364
- },
365
356
  'WebCodecs': {
366
357
  regEx: /new\s+MediaStreamTrackProcessor\s*\(/g,
367
358
  where: 'JavaScript',
@@ -387,14 +378,6 @@ const patterns = {
387
378
  documentation: 'https://web.dev/idle-detection/',
388
379
  blinkFeatureID: 2834,
389
380
  },
390
- 'Storage Foundation': {
391
- regEx: /storageFoundation\.open\s*\(/g,
392
- where: 'JavaScript',
393
- supported: (async () => 'storageFoundation' in self)(),
394
- featureDetection: `(async () => 'storageFoundation' in self)()`,
395
- documentation: 'https://web.dev/storage-foundation/',
396
- blinkFeatureID: 3822,
397
- },
398
381
  'Handwriting Recognition': {
399
382
  regEx: /navigator\.queryHandwritingRecognizerSupport\s*\(/g,
400
383
  where: 'JavaScript',
@@ -475,22 +458,13 @@ const patterns = {
475
458
  documentation: 'https://web.dev/generic-sensor/',
476
459
  blinkFeatureID: 1901,
477
460
  },
478
- 'Notification Triggers': {
479
- regEx: /showTrigger\s*\:\s*new\s+TimestampTrigger\s*\(/g,
480
- where: 'JavaScript',
481
- supported: (async () =>
482
- 'Notification' in self && 'showTrigger' in Notification.prototype)(),
483
- featureDetection: `(async () => 'Notification' in self && 'showTrigger' in Notification.prototype)()`,
484
- documentation: 'https://web.dev/notification-triggers/',
485
- blinkFeatureID: 3017,
486
- },
487
461
  'Local Font Access': {
488
- regEx: /navigator\.fonts\.query\s*\(\)/g,
462
+ regEx: /queryLocalFonts\s*\(/g,
489
463
  where: 'JavaScript',
490
- supported: (async () => 'fonts' in navigator)(),
491
- featureDetection: `(async () => 'fonts' in navigator)()`,
464
+ supported: (async () => 'queryLocalFonts' in self)(),
465
+ featureDetection: `(async () => 'queryLocalFonts' in self)()`,
492
466
  documentation: 'https://web.dev/local-fonts/',
493
- blinkFeatureID: 3386,
467
+ blinkFeatureID: 4211,
494
468
  },
495
469
  'Multi-Screen Window Placement': {
496
470
  regEx: /getScreens\s*\(\)/g,
@@ -610,14 +584,6 @@ const patterns = {
610
584
  documentation: 'https://web.dev/app-shortcuts/',
611
585
  blinkFeatureID: undefined,
612
586
  },
613
- 'Declarative Link Capturing': {
614
- regEx: /"capture_links"/g,
615
- where: 'Web App Manifest',
616
- supported: (async () => undefined)(),
617
- featureDetection: `(async () => undefined)()`,
618
- documentation: 'https://web.dev/declarative-link-capturing/',
619
- blinkFeatureID: 3813,
620
- },
621
587
  'Tabbed Application Mode': {
622
588
  regEx: /"tabbed"/g,
623
589
  where: 'Web App Manifest',
@@ -626,14 +592,6 @@ const patterns = {
626
592
  documentation: 'https://web.dev/tabbed-application-mode/',
627
593
  blinkFeatureID: undefined,
628
594
  },
629
- 'URL Handlers': {
630
- regEx: /"url_handlers"/g,
631
- where: 'Web App Manifest',
632
- supported: (async () => undefined)(),
633
- featureDetection: `(async () => undefined)()`,
634
- documentation: 'https://web.dev/pwa-url-handler/',
635
- blinkFeatureID: 3851,
636
- },
637
595
  'Protocol Handlers': {
638
596
  regEx: /"protocol_handlers"/g,
639
597
  where: 'Web App Manifest',
@@ -660,4 +618,13 @@ const patterns = {
660
618
  documentation: 'https://web.dev/launch-handler/',
661
619
  blinkFeatureID: undefined,
662
620
  },
621
+ 'Web App Link Handling': {
622
+ regEx: /"handle_links"/g,
623
+ where: 'Web App Manifest',
624
+ supported: (async () => undefined)(),
625
+ featureDetection: `(async () => undefined)()`,
626
+ documentation:
627
+ 'https://github.com/WICG/pwa-url-handler/blob/main/handle_links/explainer.md',
628
+ blinkFeatureID: undefined,
629
+ },
663
630
  };
package/patterns.mjs CHANGED
@@ -353,15 +353,6 @@ export default {
353
353
  documentation: 'https://web.dev/nfc/',
354
354
  blinkFeatureID: 3094,
355
355
  },
356
- 'Run On Login': {
357
- regEx: /navigator\.runOnOsLogin\.set\s*\(/g,
358
- where: 'JavaScript',
359
- supported: (async () => 'runOnOsLogin' in navigator)(),
360
- featureDetection: `(async () => 'runOnOsLogin' in navigator)()`,
361
- documentation:
362
- 'https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/RunOnLogin/Explainer.md',
363
- blinkFeatureID: undefined,
364
- },
365
356
  'WebCodecs': {
366
357
  regEx: /new\s+MediaStreamTrackProcessor\s*\(/g,
367
358
  where: 'JavaScript',
@@ -387,14 +378,6 @@ export default {
387
378
  documentation: 'https://web.dev/idle-detection/',
388
379
  blinkFeatureID: 2834,
389
380
  },
390
- 'Storage Foundation': {
391
- regEx: /storageFoundation\.open\s*\(/g,
392
- where: 'JavaScript',
393
- supported: (async () => 'storageFoundation' in self)(),
394
- featureDetection: `(async () => 'storageFoundation' in self)()`,
395
- documentation: 'https://web.dev/storage-foundation/',
396
- blinkFeatureID: 3822,
397
- },
398
381
  'Handwriting Recognition': {
399
382
  regEx: /navigator\.queryHandwritingRecognizerSupport\s*\(/g,
400
383
  where: 'JavaScript',
@@ -475,22 +458,13 @@ export default {
475
458
  documentation: 'https://web.dev/generic-sensor/',
476
459
  blinkFeatureID: 1901,
477
460
  },
478
- 'Notification Triggers': {
479
- regEx: /showTrigger\s*\:\s*new\s+TimestampTrigger\s*\(/g,
480
- where: 'JavaScript',
481
- supported: (async () =>
482
- 'Notification' in self && 'showTrigger' in Notification.prototype)(),
483
- featureDetection: `(async () => 'Notification' in self && 'showTrigger' in Notification.prototype)()`,
484
- documentation: 'https://web.dev/notification-triggers/',
485
- blinkFeatureID: 3017,
486
- },
487
461
  'Local Font Access': {
488
- regEx: /navigator\.fonts\.query\s*\(\)/g,
462
+ regEx: /queryLocalFonts\s*\(/g,
489
463
  where: 'JavaScript',
490
- supported: (async () => 'fonts' in navigator)(),
491
- featureDetection: `(async () => 'fonts' in navigator)()`,
464
+ supported: (async () => 'queryLocalFonts' in self)(),
465
+ featureDetection: `(async () => 'queryLocalFonts' in self)()`,
492
466
  documentation: 'https://web.dev/local-fonts/',
493
- blinkFeatureID: 3386,
467
+ blinkFeatureID: 4211,
494
468
  },
495
469
  'Multi-Screen Window Placement': {
496
470
  regEx: /getScreens\s*\(\)/g,
@@ -610,14 +584,6 @@ export default {
610
584
  documentation: 'https://web.dev/app-shortcuts/',
611
585
  blinkFeatureID: undefined,
612
586
  },
613
- 'Declarative Link Capturing': {
614
- regEx: /"capture_links"/g,
615
- where: 'Web App Manifest',
616
- supported: (async () => undefined)(),
617
- featureDetection: `(async () => undefined)()`,
618
- documentation: 'https://web.dev/declarative-link-capturing/',
619
- blinkFeatureID: 3813,
620
- },
621
587
  'Tabbed Application Mode': {
622
588
  regEx: /"tabbed"/g,
623
589
  where: 'Web App Manifest',
@@ -626,14 +592,6 @@ export default {
626
592
  documentation: 'https://web.dev/tabbed-application-mode/',
627
593
  blinkFeatureID: undefined,
628
594
  },
629
- 'URL Handlers': {
630
- regEx: /"url_handlers"/g,
631
- where: 'Web App Manifest',
632
- supported: (async () => undefined)(),
633
- featureDetection: `(async () => undefined)()`,
634
- documentation: 'https://web.dev/pwa-url-handler/',
635
- blinkFeatureID: 3851,
636
- },
637
595
  'Protocol Handlers': {
638
596
  regEx: /"protocol_handlers"/g,
639
597
  where: 'Web App Manifest',
@@ -660,4 +618,13 @@ export default {
660
618
  documentation: 'https://web.dev/launch-handler/',
661
619
  blinkFeatureID: undefined,
662
620
  },
621
+ 'Web App Link Handling': {
622
+ regEx: /"handle_links"/g,
623
+ where: 'Web App Manifest',
624
+ supported: (async () => undefined)(),
625
+ featureDetection: `(async () => undefined)()`,
626
+ documentation:
627
+ 'https://github.com/WICG/pwa-url-handler/blob/main/handle_links/explainer.md',
628
+ blinkFeatureID: undefined,
629
+ },
663
630
  };