blog icon indicating copy to clipboard operation
blog copied to clipboard

source code of my blog

Results 31 blog issues
Sort by recently updated
recently updated
newest added

Bumps [moment](https://github.com/moment/moment) from 2.22.2 to 2.29.4. Changelog Sourced from moment's changelog. 2.29.4 Release Jul 6, 2022 #6015 [bugfix] Fix ReDoS in preprocessRFC2822 regex 2.29.3 Full changelog Release Apr 17, 2022...

dependencies

## 背景知识 v8 是一个 JIT(Just in time) 编译器。与传统的解释器一行一行执行不同的是,JIT 会在执行脚本前,对源码先解析(parsing)、再编译(compiling),速度相比前者提升了不少。但解析和编译仍然消耗时间。能否将中间结果缓存起来呢? 所以 v8 在 4.2(node > 5.7.0) 时,就支持了 code caching 的功能。减少二次执行的构建时间,加快脚本的整体执行速度。 ### 缓存中间结果,持久化到硬盘 要使用中间文件,需要先生成中间文件。v8 提供了以下几个方法: * `v8::ScriptCompiler::kProduceCodeCache` 是否生成 code cache * `v8::ScriptCompiler::Source::GetCachedData`...

node
源码分析

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.5.10 to 1.14.8. Commits 3d81dc3 Release version 1.14.8 of the npm package. 62e546a Drop confidential headers across schemes. 2ede36d Release version 1.14.7 of the npm package. 8b347cb...

dependencies

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.6&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Bumps [striptags](https://github.com/ericnorris/striptags) from 3.1.1 to 3.2.0. Release notes Sourced from striptags's releases. v3.2.0 This release fixes a potential type confusion vulnerability when passing in a non-string argument to the function....

dependencies

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 2.8.8 (2020-02-29) Bug Fixes #61 & #65...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

```bash npm set registry https://r.npm.taobao.org # 注册模块镜像 npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 #以下选择添加 npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass # node-sass 二进制包镜像 npm set electron_mirror https://npm.taobao.org/mirrors/electron/ # electron...

环境配置

由深入浅出 Vue 响应式 [(一)](https://github.com/flyyang/blog/issues/18) 和 [(二)](https://github.com/flyyang/blog/issues/19) 的介绍,我们可以画一个大的代码结构图: ![image](https://user-images.githubusercontent.com/3912408/55734577-5e742980-5a52-11e9-971a-634a771d7d81.png) 我们已经分析了 initState 中的 initData(图右上部分) ,它会将我们的 data 属性转换为 getter / setter。也分析了 mount 的流程,它会编译你的模板到 render 函数,并且创建一个渲染 watcher 来做响应更新。 computed 属性初始化(绿框部分)处于 initState 的流程,晚于 initData ,但早于...

源码分析
vue

数据驱动开发是 Vue 的一大特征。 那么什么是数据驱动呢?在 Vue 的概念下,我们可以通过 data 来初始化页面;后续可以通过操作data 的值,来改变页面。整个过程都是围绕 data 来变化,所以称之为数据驱动,其中操作数据更新页面又常被称为响应式。 在 [深入浅出 Vue 数据驱动 (一)](https://github.com/flyyang/blog/issues/18) 中,我们已经介绍了初始化的部分,本节主要介绍响应式是如何实现的。 ![image](https://user-images.githubusercontent.com/3912408/54339498-f9562f80-466f-11e9-9d15-29365b00bca5.png) ## 写在前面 由上图可知,我们改变了 message 的值,对应的 ui 就会发生变化。 ``` App.message = 'Some one...

源码分析
vue