186
186
< div id ="sidebar " class ="interface ">
187
187
188
188
< a class ="toc_title " href ="# ">
189
- Underscore.js < span class ="version "> (1.12.1 )</ span >
189
+ Underscore.js < span class ="version "> (1.13.0-3 )</ span >
190
190
</ a >
191
191
< ul class ="toc_section ">
192
192
< li > » < a href ="https://github.com/jashkenas/underscore "> GitHub Repository</ a > </ li >
442
442
</ p >
443
443
444
444
< p >
445
- You may choose between monolithic and modular imports. There is a quick
446
- summary of the options below, as well as a more comprehensive
447
- discussion in < a
448
- href ="https://juliangonggrijp.com/article/introducing-modular-underscore.html "
449
- > the article</ a > .
445
+ You may choose between monolithic and modular imports. There is a quick
446
+ summary of the options below, as well as a more comprehensive
447
+ discussion in < a
448
+ href ="https://juliangonggrijp.com/article/introducing-modular-underscore.html "
449
+ > the article</ a > .
450
450
</ p >
451
451
452
452
< p >
453
- < i > < a
454
- href ="https://cdn.statically.io/gh/jashkenas/underscore/1.13.0-1/index.html "
455
- > Prerelease version 1.13.0-1</ a > adds full support for native ESM
456
- imports in Node.js version 12 and later. It should do this without
457
- breaking existing setups. Please try it out by installing
453
+ < i > Prerelease version 1.13.0-1 adds full support for native ESM imports
454
+ in Node.js version 12 and later. It should do this without breaking
455
+ existing setups. Please try it out by installing
458
456
< tt > underscore@preview</ tt > from NPM and let us know whether it worked
459
- for you in < a
460
- href ="https://github.com/jashkenas/underscore/pull/2914 "
461
- > the pull request</ a > !</ i >
457
+ for you in < a href ="https://github.com/jashkenas/underscore/pull/2914 "> the
458
+ pull request</ a > !</ i >
462
459
</ p >
463
460
464
461
< p >
486
483
< i > Underscore is an open-source component of < a href ="https://documentcloud.org/ "> DocumentCloud</ a > .</ i >
487
484
</ p >
488
485
489
- < h2 > v1.12.1 Downloads < i style ="padding-left: 12px; font-size:12px; "> (Right-click, and use "Save As")</ i > </ h2 >
486
+ < h2 > v1.13.0-3 Downloads < i style ="padding-left: 12px; font-size:12px; "> (Right-click, and use "Save As")</ i > </ h2 >
490
487
491
488
< table >
492
489
< tr >
@@ -504,17 +501,17 @@ <h2>v1.12.1 Downloads <i style="padding-left: 12px; font-size:12px;">(Right-clic
504
501
</ td >
505
502
</ tr >
506
503
< tr >
507
- < td class ="dl-link "> < a href ="underscore.js "> UMD (Development)</ a > </ td >
504
+ < td class ="dl-link "> < a href ="underscore-umd .js "> UMD (Development)</ a > </ td >
508
505
< td >
509
506
< i > 67.45kb, Uncompressed with Bountiful Comments</ i >
510
- < small > (< a href ="underscore.js.map "> Source Map</ a > )</ small >
507
+ < small > (< a href ="underscore-umd .js.map "> Source Map</ a > )</ small >
511
508
</ td >
512
509
</ tr >
513
510
< tr >
514
- < td class ="dl-link "> < a href ="underscore-min.js "> UMD (Production)</ a > </ td >
511
+ < td class ="dl-link "> < a href ="underscore-umd- min.js "> UMD (Production)</ a > </ td >
515
512
< td >
516
513
< i > 7.39kb, Minified and Gzipped</ i >
517
- < small > (< a href ="underscore-min.js.map "> Source Map</ a > )</ small >
514
+ < small > (< a href ="underscore-umd- min.js.map "> Source Map</ a > )</ small >
518
515
</ td >
519
516
</ tr >
520
517
< tr >
@@ -525,37 +522,37 @@ <h2>v1.12.1 Downloads <i style="padding-left: 12px; font-size:12px;">(Right-clic
525
522
< td > < i > Unreleased, current < tt > master</ tt > , use by your own judgement and at your own risk</ i > </ td >
526
523
</ tr >
527
524
< tr >
528
- < td class ="dl-link "> < a href ="https://raw.github.com/jashkenas/underscore/master/underscore.js "> Edge UMD</ a > </ td >
525
+ < td class ="dl-link "> < a href ="https://raw.github.com/jashkenas/underscore/master/underscore-umd .js "> Edge UMD</ a > </ td >
529
526
< td > < i > Unreleased, current < tt > master</ tt > , use if you’re feeling lucky</ i > </ td >
530
527
</ tr >
531
528
</ table >
532
529
533
- < h2 > v1.12.1 CDN URLs < i style ="padding-left: 12px; font-size:12px; "> (Use with < tt > <script src="..."></script></ tt > )</ i > </ h2 >
530
+ < h2 > v1.13.0-3 CDN URLs < i style ="padding-left: 12px; font-size:12px; "> (Use with < tt > <script src="..."></script></ tt > )</ i > </ h2 >
534
531
535
532
< ul >
536
533
< li >
537
- < tt > https://cdn.jsdelivr.net/npm/underscore@1.12.1 /underscore-min.js</ tt >
534
+ < tt > https://cdn.jsdelivr.net/npm/underscore@1.13.0-3 /underscore-umd -min.js</ tt >
538
535
</ li >
539
536
< li >
540
- < tt > https://cdn.jsdelivr.net/npm/underscore@1.12.1 /underscore-esm-min.js</ tt >
537
+ < tt > https://cdn.jsdelivr.net/npm/underscore@1.13.0-3 /underscore-esm-min.js</ tt >
541
538
</ li >
542
539
< li >
543
- < tt > https://unpkg.com/underscore@1.12.1 /underscore-min.js</ tt >
540
+ < tt > https://unpkg.com/underscore@1.13.0-3 /underscore-umd -min.js</ tt >
544
541
</ li >
545
542
< li >
546
- < tt > https://unpkg.com/underscore@1.12.1 /underscore-esm-min.js</ tt >
543
+ < tt > https://unpkg.com/underscore@1.13.0-3 /underscore-esm-min.js</ tt >
547
544
</ li >
548
545
< li >
549
- < tt > https://pagecdn.io/lib/underscore/1.12.1 /underscore-min.js</ tt >
546
+ < tt > https://pagecdn.io/lib/underscore/1.13.0-3 /underscore-umd -min.js</ tt >
550
547
</ li >
551
548
< li >
552
- < tt > https://pagecdn.io/lib/underscore/1.12.1 /underscore-esm-min.js</ tt >
549
+ < tt > https://pagecdn.io/lib/underscore/1.13.0-3 /underscore-esm-min.js</ tt >
553
550
</ li >
554
551
< li >
555
- < tt > https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.12.1 /underscore-min.js</ tt >
552
+ < tt > https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.0-3 /underscore-umd -min.js</ tt >
556
553
</ li >
557
554
< li >
558
- < tt > https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.12.1 /underscore-esm-min.js</ tt >
555
+ < tt > https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.0-3 /underscore-esm-min.js</ tt >
559
556
</ li >
560
557
</ ul >
561
558
@@ -573,7 +570,7 @@ <h2>Package Installation</h2>
573
570
</ li >
574
571
</ ul >
575
572
576
- < h2 > Monolithic Import</ h2 >
573
+ < h2 > Monolithic Import (recommended) </ h2 >
577
574
578
575
< ul >
579
576
< li >
@@ -586,7 +583,7 @@ <h2>Monolithic Import</h2>
586
583
< b > CommonJS</ b > < tt > var _ = require('underscore');</ tt >
587
584
</ li >
588
585
< li >
589
- < b > ExtendScript</ b > < tt > #include "underscore.js"</ tt >
586
+ < b > ExtendScript</ b > < tt > #include "underscore-umd .js"</ tt >
590
587
</ li >
591
588
</ ul >
592
589
@@ -2715,6 +2712,31 @@ <h2 id="notes">Notes</h2>
2715
2712
2716
2713
< h2 id ="changelog "> Change Log</ h2 >
2717
2714
2715
+ < p id ="1.13.0-3 ">
2716
+ < b class ="header "> 1.13.0-3</ b > — < small > < i > March 31, 2021</ i > </ small > — < a href ="https://github.com/jashkenas/underscore/compare/1.13.0-2...1.13.0-3 "> Diff</ a > — < a href ="https://cdn.rawgit.com/jashkenas/underscore/1.13.0-3/index.html "> Docs</ a > < br />
2717
+ < ul >
2718
+ < li >
2719
+ Adds a < tt > "module"</ tt > exports condition to the
2720
+ < tt > package.json</ tt > , which should theoretically help to avoid
2721
+ duplicate code bundling with < tt > exports</ tt > -aware build tools.
2722
+ </ li >
2723
+ < li >
2724
+ Re-synchronizes some comments and documentation text with the
2725
+ 1.12.x branch.
2726
+ </ li >
2727
+ </ ul >
2728
+ </ p >
2729
+
2730
+ < p id ="1.13.0-2 ">
2731
+ < b class ="header "> 1.13.0-2</ b > — < small > < i > March 15, 2021</ i > </ small > — < a href ="https://github.com/jashkenas/underscore/compare/1.13.0-1...1.13.0-2 "> Diff</ a > — < a href ="https://cdn.rawgit.com/jashkenas/underscore/1.13.0-2/index.html "> Docs</ a > < br />
2732
+ < ul >
2733
+ < li >
2734
+ Fixes the same security issue in < tt > _.template</ tt > as the
2735
+ parallel 1.12.1 release.
2736
+ </ li >
2737
+ </ ul >
2738
+ </ p >
2739
+
2718
2740
< p id ="1.12.1 ">
2719
2741
< b class ="header "> 1.12.1</ b > — < small > < i > March 15, 2021</ i > </ small > — < a href ="https://github.com/jashkenas/underscore/compare/1.12.0...1.12.1 "> Diff</ a > — < a href ="https://cdn.statically.io/gh/jashkenas/underscore/1.12.1/index.html "> Docs</ a > < br />
2720
2742
< ul >
@@ -2728,6 +2750,46 @@ <h2 id="changelog">Change Log</h2>
2728
2750
href ="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23358 "
2729
2751
> CVE-2021-23358</ a >
2730
2752
</ li >
2753
+ < li >
2754
+ Restores an optimization in < tt > _.debounce</ tt > that was
2755
+ unintentionally lost in version 1.9.0 (same as in parallel preview
2756
+ release 1.13.0-0).
2757
+ </ li >
2758
+ < li >
2759
+ Various test and documentation enhancements (same as in parallel
2760
+ preview releases 1.13.0-0 and 1.13.0-1).
2761
+ </ li >
2762
+ </ ul >
2763
+ </ p >
2764
+
2765
+ < p id ="1.13.0-1 ">
2766
+ < b class ="header "> 1.13.0-1</ b > — < small > < i > March 11, 2021</ i > </ small > — < a href ="https://github.com/jashkenas/underscore/compare/1.13.0-0...1.13.0-1 "> Diff</ a > — < a href ="https://cdn.rawgit.com/jashkenas/underscore/1.13.0-1/index.html "> Docs</ a > < br />
2767
+ < ul >
2768
+ < li >
2769
+ Fixes an issue that caused aliases to be absent among the named
2770
+ exports in the new native ESM entry point for Node.js 12+.
2771
+ </ li >
2772
+ < li >
2773
+ More test and documentation fixes and enhancements.
2774
+ </ li >
2775
+ </ ul >
2776
+ </ p >
2777
+
2778
+ < p id ="1.13.0-0 ">
2779
+ < b class ="header "> 1.13.0-0</ b > — < small > < i > March 9, 2021</ i > </ small > — < a href ="https://github.com/jashkenas/underscore/compare/1.12.0...1.13.0-0 "> Diff</ a > — < a href ="https://cdn.rawgit.com/jashkenas/underscore/1.13.0-0/index.html "> Docs</ a > < br />
2780
+ < ul >
2781
+ < li >
2782
+ Adds experimental support for native ESM imports in Node.js. You
2783
+ can now also do named imports or even deep module imports directly
2784
+ from a Node.js process in Node.js version 12 and later. Monolithic
2785
+ imports are recommended for use in production. State (such as
2786
+ mixed-in functions) is shared between CommonJS and ESM consumers.
2787
+ </ li >
2788
+ < li >
2789
+ Renames the UMD bundle to < tt > underscore-umd.js</ tt > for
2790
+ consistency with the other bundle names. An alias named
2791
+ < tt > underscore.js</ tt > is retained for backwards compatibility.
2792
+ </ li >
2731
2793
< li >
2732
2794
Restores an optimization in < tt > _.debounce</ tt > that was
2733
2795
unintentionally lost in version 1.9.0.
@@ -3938,7 +4000,7 @@ <h2 id="changelog">Change Log</h2>
3938
4000
</ div >
3939
4001
3940
4002
<!-- Include Underscore, so you can play with it in the console. -->
3941
- < script type ="text/javascript " src ="underscore.js "> </ script >
4003
+ < script type ="text/javascript " src ="underscore-umd .js "> </ script >
3942
4004
< script type ="text/javascript " src ="docs/main.js "> </ script >
3943
4005
3944
4006
</ body >
0 commit comments