14 小时前

quicklink 发布版本: Quicklink 1.0.0

> Quicklink attempts to make navigations to subsequent pages load faster by prefetching in-viewport links during idle time A huge thanks to everyone that has been trying out `quicklink`, sending over feature requests and deploying it to [production](https://mobile.twitter.com/mxbck/status/1073325179072364544). We're glad you found our micro-library helpful. We've just published a new version to address early feedback 🗣 ## New features 🎉 ### Control what domains can be prefetched 🏘 We now support `origins`: a new static array of URL hostname strings that are allowed to be prefetched. Defaults to the same domain origin, which prevents any cross-origin requests. This was a requested change in behavior from earlier versions of `quicklink` which would fetch all origins by default. You can use `origins` as follows: **Specify a custom list of allowed origins** Provide a list of hostnames that should be prefetch-able. Only the same origin is allowed by default. > **Important:** You must also include your own hostname! ```js quicklink({ origins: [ // add mine 'my-website.com', 'api.my-website.com', // add third-parties 'other-website.com', 'example.com', // ... ] }); ``` **Allow all origins** Enables all cross-origin requests to be made. > **Note:** You may run into [CORB](https://chromium.googlesource.com/chromium/src/+/master/services/network/cross_origin_read_blocking_explainer.md) and [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues! ```js quicklink({ origins: true }); ``` ### Control what URLs are ignored by RegExp, Function or Array ✋ We also now support `ignores` which adds support for filtering. This can be a RegExp, Function, or Array that further determines if a URL should be prefetched. These filters run _after_ the `origins` matching has run. Ignores can be useful for avoiding large file downloads or for responding to DOM attributes dynamically. ```js // Same-origin restraint is enabled by default. // // This example will ignore all requests to: // - all "/api/*" pathnames // - all ".zip" extensions // - all <a> tags with "noprefetch" attribute // quicklink({ ignores: [ /\/api\/?/, uri => uri.includes('.zip'), (uri, elem) => elem.hasAttribute('noprefetch') ] }); ``` If you tried out the first release of `quicklink` and noticed it prefetching `/logout` pages, download links or any other resources you'd rather it not, this new feature should help. ## Bug fixes This release also includes a few bug-fixes. These include URLs being prefetched are now also normalized by default (https://www.google.com vs. https://www.google.com/). Thanks to @mathiasbynens for bringing this to our attention. See [API docs](https://github.com/GoogleChromeLabs/quicklink#api) and [recipes](https://github.com/GoogleChromeLabs/quicklink#recipes) for details on how to use these new features. You can also find a new [FAQ](https://github.com/GoogleChromeLabs/quicklink/wiki/FAQ) for answers to common questions we've had users ask about the project. ## Size check 📦 Bundle size: [782 bytes](https://camo.githubusercontent.com/8c1fd3b149f14b86019dd522294fb2696e7640c4/68747470733a2f2f696d672e626164676573697a652e696f2f68747470733a2f2f756e706b672e636f6d2f717569636b6c696e6b2f646973742f717569636b6c696e6b2e6a733f636f6d7072657373696f6e3d677a6970) minified & gzipped. We were able to introduce new features while keeping our size down in large part thanks to clever code-golfing by @lukeed ⛳️ ## Thanks 😍 With huge thanks to @lukeed and our lovely [contributors](https://github.com/GoogleChromeLabs/quicklink/graphs/contributors) for all of their help with this release ❤️We couldn't have done it without you!. [Full release notes](https://github.com/GoogleChromeLabs/quicklink/blob/master/CHANGELOG.md)

2 天前

allennlp 发布版本: v0.7.2

# Major New Features * You can now run `allennlp configure` to launch a GUI tool that helps you build a model configuration. * You can now use a BERT embedder within you model. # List of Commits ca7e3cf3 release config explorer (#2118) 27830443 pin msgpack (#2125) 3eecd1aa more informative message for BasicTextFieldEmbedder mismatched keys (#2124) 3a7e0659 fix epoch tracking (#2121) db0096f1 Fix more BasicTextFieldEmbedder warnings (#2114) f757f7a0 Fix epoch tracking bucket iterator warnings. (#2108) 44269a1d Rename DATASET_CACHE to CACHE_DIRECTORY. (#2000) 3842820c Fix span pruner warning. (#2113) 92c71a17 Upgrade flask to remove werkzeug warning. (#2107) 240974fc Pack batches more tightly with maximum_samples_per_batch. (#2111) 42d076ee modify BERT embedder to deal with higher order inputs (#2104) dcd1d25e Resolve some of the token_embedders warnings. (#2100) 2648d952 Add BLEU metric to simple_seq2seq (#2063) 582d0e4f add BERT token embedder (#2067) d78daa44 Fix EVALB compilation by cd to directory path instead of binary path (#2090) 6b16222b calypso transformer (#2049) 5890111b Separate calculation of num_tokens per TokenIndexer (#2080) 193bb04d Specify path at which to compile evalb. (#2027) af902a3f Add support of tokenized input for coref and srl predictors (#2076) e3e8e1cb Fix typo in IntraSentenceAttentionEncoder docstring (#2072) d5040896 Add wikitables predicator to the default predicators (#2071) 2a2d9c94 Improve server_simple by adding predict_batch and adding GPU option (#2064) 19c784fa Add BLEU metric (#2001) 6ecd1932 Fix logging statement so it has the proper scope. (#2059) 888c11a3 add flaky decorator + increase tolerance (#2060) 86da8809 add sampled softmax loss (#2042) 07b57491 Enable multi-gpu training in find_learning_rate.py (#2045) 43243acf Update issue templates de7c013e Sentence splitter (#2036) 0701dbdc Dynamic stopwords (#2037) aa1b774e Test sql decoding (#2030) a5c2d9eb Catch nan loss in training loop (#2029) 82bbee7d (warnings) Add link to EMNLP tutorial from tutorial README. 68cbfb80 modify training_configs related issue #1954 (#1997) 481c1817 Fix ArrayField.to_tensor not working with a scalar (#2008) be36374e change stopping factor default (#2021) b919f5ae Add logging statement when EVALB is compiled. (#2018) 3ca69420 Support stdin for prediction jsonl. (#2003) bae77581 Change log level to clean up allennlp command. (#2004) 1406a856 Added default predictor for bimpm model (#2014) 77517992 Ignore hidden files in vocabulary/ (#2002) 6af83e7c Prevent inspect_cache from swallowing exception. (#1999) e4f9131c Untyped grammar (#1986) a4b885cd Add scalar_mix_parameters to Elmo.from_params (#1992) 1f782d33 Add --force option to find-lr command (#1991) 021f8bb1 use wordsplit with taggers (#1981) c262ef5a Match vocab generation in currently online Event2Mind model. (#1978) bc97ce87 combine_tensors_and_multiply_with_batch_size_one_and_seq_len_one (#1980) 5aa1c8f0 Fix for import_submodules (#1976) 02317e12 add min_padding_length to TokenCharactersIndexer (#1954) (#1967) 39e16c41 delete swp file (#1975) ad729e37 Link tutorial site from tutorials/README.md. (#1972) 2a8bd638 Extend GPU fixes from vidurj and MaxMotovilov (#1944)

2 天前

amethyst 发布版本: Release 0.10.0

### Added * Derive PrefabData for CameraOrtho component ([#1188]) * Partially migrate the project to Rust 2018. Full migration will be completed at some point after 2019-01-31 ([#1098]) * `SystemExt::pausable` for better ergonomics when pausing systems for specific states ([#1146]). * `amethyst_test` test framework for ergonomic testing of Amethyst applications ([#1000]) * combinations of buttons triggering actions ([#1043]) * `UiPrefab` field `hidden: bool` to hide entities ([#1051]) * `PrefabData` can now be derived for many situations, see the book for more information ([#1035]) * Support for DirectionalLight and SpotLight in PBM pass. ([#1074], [#1081]) * `UiWidget` variant `Custom` for custom composited widgets ([#1112]) * `AssetLoaderSystemData` abstracts resources needed from `World` to do asset loading ([#1090]) * `amethyst_ui::get_default_font` supports loading system font from Path. ([#1108]) * Added `Callback` and `CallbackQueue` for use in asynchronous contexts. ([#1125]) * Added Trans event queue. Used to trigger state transitions from systems. Also used to trigger multiple state transitions at once. (For example, to `Trans::Pop` two states.) ([#1069]) * `sprite_camera_follow` example showing how to use a Camera that has a sprite Parent ([#1099]) * Added capabilities for the `DrawFlat2D` pass to draw `TextureHandle`s by themselves. Also added a simple example for this. ([#1153]) * Added a `Flipped` component which allows flipping sprites or images horizontally and vertically. ([#1153]) * Added transform constructor function `Transform::new()`. ([#1187]) ### Changed * Minimum Rust version is now `1.31.0` &ndash; Rust 2018. ([#1224]) * `Transform::look_at` renamed to `Transform::face_towards` and behavior fixed. ([#1142]) * `Material` animations now directly use `Handle<Texture>` instead of using indirection. ([#1089]) * `SpriteRenderPrimitive::SpriteSheet` now takes `Handle<SpriteSheet>` instead of a `u64` ID. ([#1089]) * `nalgebra` is now the math library used by the engine. ([#1066]) * The `amethyst::renderer::Projection::orthographic` function has had its parameter order changed to match that of `nalgebra` ([#1066]) * `SpriteSheet` now use `TextureHandle` directly instead of a `u64` ID coupled with `MaterialTextureSet`. ([#1117]) * Updated `specs` to `0.14` and `specs-hierarchy` to `0.3`. ([#1122]) * Updated `winit` to `0.18` (see [Winit's changelog][winit_018]). ([#1131]) * Updated `glutin` to `0.19` (see [Glutin's changelog][glutin_019]). ([#1131]) * Renamed the `DrawSprite` pass to `DrawFlat2D` as it now handles both sprites and images without spritesheets. ([#1153]) * `BasicScenePrefab` deserialization now returns an error on invalid fields. ([#1164]) * Reordered arguments for `Transform::set_rotation_euler` to match nalgebra's Euler angles. ([#1052]) * Remove lifetimes from `SimpleState` ([#1198]) ### Removed * `SpriteSheetSet` is removed as it is no longer needed. ([#1089]) * `MaterialTextureSet` is removed as it is no longer needed. ([#1117]) * `amethyst::core::Orientation` has been removed because of limited use. ([#1066]) * `TimedDestroySystem` has been split into `DestroyAtTimeSystem` and `DestroyInTimeSystem`. ([#1129]) * Reverted [MacOS OpenGL workaround][#972] in favor of the upstream fix in `glutin`. ([#1184]) ### Fixed * `SpriteSheetFormat` converts pixel coordinates to texture coordinates on load. ([#1181]) [#1146]: https://github.com/amethyst/amethyst/pull/1146 [#1144]: https://github.com/amethyst/amethyst/pull/1144 [#1000]: https://github.com/amethyst/amethyst/pull/1000 [#1043]: https://github.com/amethyst/amethyst/pull/1043 [#1051]: https://github.com/amethyst/amethyst/pull/1051 [#1035]: https://github.com/amethyst/amethyst/pull/1035 [#1069]: https://github.com/amethyst/amethyst/pull/1069 [#1074]: https://github.com/amethyst/amethyst/pull/1074 [#1081]: https://github.com/amethyst/amethyst/pull/1081 [#1090]: https://github.com/amethyst/amethyst/pull/1090 [#1112]: https://github.com/amethyst/amethyst/pull/1112 [#1089]: https://github.com/amethyst/amethyst/pull/1089 [#1098]: https://github.com/amethyst/amethyst/pull/1098 [#1099]: https://github.com/amethyst/amethyst/pull/1099 [#1108]: https://github.com/amethyst/amethyst/pull/1108 [#1125]: https://github.com/amethyst/amethyst/pull/1125 [#1066]: https://github.com/amethyst/amethyst/pull/1066 [#1117]: https://github.com/amethyst/amethyst/pull/1117 [#1122]: https://github.com/amethyst/amethyst/pull/1122 [#1129]: https://github.com/amethyst/amethyst/pull/1129 [#1131]: https://github.com/amethyst/amethyst/pull/1131 [#1153]: https://github.com/amethyst/amethyst/pull/1153 [#1164]: https://github.com/amethyst/amethyst/pull/1164 [#1142]: https://github.com/amethyst/amethyst/pull/1142 [#1052]: https://github.com/amethyst/amethyst/pull/1052 [#1181]: https://github.com/amethyst/amethyst/pull/1181 [#1184]: https://github.com/amethyst/amethyst/pull/1184 [#1187]: https://github.com/amethyst/amethyst/pull/1187 [#1188]: https://github.com/amethyst/amethyst/pull/1188 [#1198]: https://github.com/amethyst/amethyst/pull/1198 [#1224]: https://github.com/amethyst/amethyst/pull/1224 [winit_018]: https://github.com/tomaka/winit/blob/v0.18.0/CHANGELOG.md#version-0180-2018-11-07 [glutin_019]: https://github.com/tomaka/glutin/blob/master/CHANGELOG.md#version-0190-2018-11-09

2 天前

dbal 发布版本: Release v2.9.1

# Release v2.9.1 [![Build Status](https://travis-ci.org/doctrine/dbal.svg?branch=v2.9.1)](https://travis-ci.org/doctrine/dbal) This release fixes regressions introduced in v2.9.0 and issues specific to the SQL Anywhere platform. - Total issues resolved: **11** **MySQL, Schema Introspection:** - [3393: Fixed parsing MySQL create table flags (options without a value)](https://github.com/doctrine/dbal/pull/3393) thanks to @morozov and @AdrianSherwood - [3398: BC Break in 2.9.0 for MySQL Tables containing partitions](https://github.com/doctrine/dbal/issues/3398) thanks to @bcremer **SQL Anywhere:** - [3375: &#91;SQL Anywhere&#93; Fix bound parameter references in PHP 7](https://github.com/doctrine/dbal/pull/3375) thanks to @deeky666 - [3378: &#91;SQL Anywhere&#93; Fix query limit values &quot;0&quot; and &quot;null&quot;](https://github.com/doctrine/dbal/pull/3378) thanks to @deeky666 - [3385: &#91;SQL Anywhere&#93; Fix fetching empty values via fetchAll()](https://github.com/doctrine/dbal/pull/3385) thanks to @deeky666 - [3386: &#91;SQL Anywhere&#93; Fix view schema introspection test](https://github.com/doctrine/dbal/pull/3386) thanks to @deeky666 **Schema Comparison:** - [3382: Reverted strict comparison back to loose because of a new regression](https://github.com/doctrine/dbal/pull/3382) thanks to @morozov and @Majkl578 **Connections:** - [3305: Fix Fetch mode query in MasterSlaveConnection](https://github.com/doctrine/dbal/pull/3305) thanks to @BradCrumb **Cache:** - [3381: ResultCacheStatement lost its cache capability on fetchAll method](https://github.com/doctrine/dbal/pull/3381) thanks to @roger-codina **Documentation:** - [3392: fixed annotations of parameter $columns in Table](https://github.com/doctrine/dbal/pull/3392) thanks to @LukasVitek and @ricardofiorani