首页 文章 精选 留言 我的

精选列表

搜索[javascript框架],共10000篇文章
优秀的个人博客,低调大师

Angular 10.0.0-next.6 发布,Web 前端框架

Angular 10.0.0-next.6已发布,具体更新内容如下: Bug Fixes bazel:ng_package 规则应更新 ts_library 目标的“package.json”(#36944)(d5293d2) compiler:删除未解决的 DI 参数的过时和无效警告(#36985)(d0280a0) editor-cli:正确规范模拟 Windows 文件路径(#36859)(b682bd1) core:处理需要多个数字的复数函数(#36901)(2ff4b35),closes#36888 forms:在验证器中正确处理数值(#36157)(88a235d),closes#35591 localize:确保getLocation()works(#36853)(70b25a3) ngcc:支持 delegate的 ModuleWithProviders 函数(#36948)(fafa50d),closes#36892 ...... Features bazel:通过删除 esm5 和 fesm5 简化 ng_package(#36944)(9dbb30f) compiler cli:如果发现具有 Angular 功能的未修饰类,则报告错误(#36921)(4c92cf4) core:带有修饰字段的未修饰类迁移应使用生命周期钩子处理类(#36921)(c6ecdc9) ngcc:支持新的 APF,其中module指向 esm2015 输出(#36944)(c98a4d6) language-service:[ivy]解析 Angular 编译器选项(#36922)(dbd0f8e) 删除 TypeScript 3.6 和 3.7 支持(#36329)(fbd281c) Performance Improvements compiler cli:逐步执行模板类型检查(#36211)(ecffc35) compiler cli:将 Ivy 模板类型检查分为多个文件(#36211)(b861e9c) BREAKING CHANGES TypeScript 3.6 和 3.7 版本不再受支持,请更新至 TypeScript 3.8 forms:数字输入不再监听change事件。 更多详细内容请查看更新说明:https://github.com/angular/angular/blob/master/CHANGELOG.md

优秀的个人博客,低调大师

Java JUnit框架里@Category注解的工作原理

Suppose you have a large number of unit test cases and you don’t want them to be executed all at the same time during Maven build. You can simply achieve it via annotation @Category. (1) Create empty class FastTests and SlowTests.(2) In your test case class, categorize your test method using @Category annotation: (3) Append the following code to your pom.xml: <profiles> <profile> <id>SlowTests</id> <properties> <testcase.groups>com.sap.SlowTests</testcase.groups> </properties> </profile> <profile> <id>FastTests</id> <properties> <testcase.groups>com.sap.FastTests</testcase.groups> </properties> </profile> </profiles> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.13</version> <dependencies> <dependency> <groupId>org.apache.maven.surefire</groupId> <artifactId>surefire-junit47</artifactId> <version>2.13</version> </dependency> </dependencies> <configuration> <groups>${testcase.groups}</groups> </configuration> </plugin> </plugins> </build> (4) In my project, by default all 7 test methods will be executed during Maven build: Suppose you only want to execute unit test belonging to category “SlowTests”, use the following command line: Since now I only marked one method with annotation SlowTests, only one test method is executed: If you would like to execute all unit tests EXCEPT @SlowTests, simply add another profile in pom.xml: <profile> <id>NonSlowTests</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludedGroups>com.sap.SlowTests</excludedGroups> </configuration> </plugin> </plugins> </build> </profile> Before test, in order to prove that Slow method is NOT really executed, I add a system.out.println in each method: Use command line: mvn test -P NonSlowTestsFrom console output, I can ensure that the method with @Category(SlowTests.class) is NOT executed at all. 本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。

优秀的个人博客,低调大师

Apache ZooKeeper 3.6.1 发布,分布式服务框架

Apache ZooKeeper 3.6.1 已发布,这是 3.6 分支的第二个版本,也是一个 bugfix 版本,修复了针对 ZooKeeper 3.5 构建的应用程序有关的一些兼容性问题。从 3.5.7 升级到 3.6.1 像往常一样执行即可,无需特别的附加升级程序。只要不使用 3.5 中不存在的新 API,ZooKeeper 3.6.1 客户端与 3.5 服务器兼容。 新特性 ZOOKEEPER-3689- zkCli/ZooKeeperMain 依赖系统属性来进行 TLS 配置 ZOOKEEPER-3712- 为 NIOServerCnxn 添加 setKeepAlive 支持 改进 ZOOKEEPER-3685- 将JDK Arrays Equals 用于 Jute 编译器 ZOOKEEPER-3686- 将JDK Arrays hashCode 用于 Jute 编译器 ZOOKEEPER-3708- 在 Learner 中,将日志代码移动至 Logging Guard ZOOKEEPER-3741- 修复在 Fedora8 上构建 ZooKeeper 3.5 C 客户端出现的问题 ZOOKEEPER-3755- 使用maven 来创建 fatjar ZOOKEEPER-3756- 修复成员不能成功 rejoin quorum 的问题 ZOOKEEPER-3785- 支持使用 JDK14 进行构建源码 详情查看https://zookeeper.apache.org/doc/r3.6.1/releasenotes.html 下载地址https://zookeeper.apache.org/releases.html#download

优秀的个人博客,低调大师

Angular 10.0.0-next.2 发布,Web 前端框架

Angular 10.0.0-next.2已发布,具体更新内容如下: Bug Fixes common:locales/global/*.js不符合 ES5(#36342)(078b0be),closesangular / angular-cli#16394 compiler:正确处理对命名空间符号的类型引用(#36106)(4aa4e6f),closes#36006 core:如果 base class 没有 value 声明,则具有修饰字段的未修饰类迁移应避免 error(#36543)(ca67748),closes#36522 ngcc:从嵌套node_modules/中正确检测外部文件(#36559)(6ab43d7),closes#36526 ngcc:在 Windows 上显示解锁程序的输出(#36569)(e041ac6) ngcc:不要在 cluster workers上生成解锁程序(#36569)(66effde),closes#35861 ngcc:如果paths映射不存在(#36525)(717df13),则不发出警告,closes#36518 ngcc:强制 ngcc 错误退出(#36622)(663b768),closes#36616 router:使用两个或多个同级路由器出口时,将正确的组件传递给 canDeactivate 检查(#36302)(80e6c07),closes#34614 upgrade:更新$locationShim 以在初始化之前处理位置更改(#36498)(0cc53fb),closes#36492 Performance Improvements ngcc:仅在需要时加载(#36486)(3bedfda) ngcc:从 entry-point manifest 中读取依赖项(#36486)(a185efb),closes#issuecomment-608401834 ngcc:减少 entry-point manifest 文件的大小(#36486)(ec0ce60) 更新说明:https://github.com/angular/angular/blob/master/CHANGELOG.md

优秀的个人博客,低调大师

Fastify 2.12.1 发布,高性能 Node.js 框架

Fastify 2.12.1 发布了。 添加了 fastify-esso 插件(#2084) 将逗号添加到 queryStringJsonSchema(#2085) 如果发送了无效的状态代码,则会引发错误(#2082) Greenkeeper 忽略 semver(#2095) 修复setErrorHandler(#2092)的错误类型 修复了typo res.res to Reply.res(#2099) docs:将属性分配给请求时使用计算键(#2100) 类型:将类型添加this到未找到的处理程序中(#2102) docs:修复标头和正文泛型类型(#2103) 修复:多个路由相同的架构(#2108) http2:未设置修复req.hostname(#2113) 添加了fastify-axios插件(#2118) docs:澄清 reply.redirect 状态代码文件(#2121)

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册
修改密码
忘记密码