profile
viewpoint
Weijia Wang starkwang Tencent Shenzhen, China https://twitter.com/_WeijiaWang_ Software Engineer at Tencent Cloud, Node.js Core Collaborator

starkwang/DOM-Drawer 69

A small toy to help you draw the DOM structure on Canvas

starkwang/alphabetJS 55

A small tool to help you output big English character in console/shell or anyother platform.

starkwang/FDSHM 51

复旦二手交易平台

starkwang/bluebird 15

Bluebird is a full featured promise library with unmatched performance.

starkwang/create-sw 5

A tool to generate robust Service Worker for your application

starkwang/BubbleBreak 2

A simple HTML5 game

starkwang/cofree 2

A Node.js Server Framework for Cloud and Serverless

starkwang/FDU-MailHelper 1

复旦扫邮助手

pull request commentstarkwang/vue-virtual-collection

safe sectionSize

The sectionSize is an optional property, which is only used to improve performance. It might not be appropriate to change it and make a fallback for it. BTW, thanks for your contribution! 👍

foolzhang

comment created time in 8 days

startedarve0/markdown-it-attrs

started time in 8 days

startedbcoe/c8

started time in 9 days

startedyewstack/yew

started time in 10 days

issue closedstarkwang/vue-virtual-collection

Vue warn]: Error in mounted hook: "TypeError: Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function."

mounted() { if (ResizeObserver) { this.resizeObserver = new ResizeObserver(this.handleResize) this.resizeObserver.observe(this.$refs.outer) } else { this.$refs.outer.addEventListener('resize', this.handleResize) } },

closed time in 16 days

jinglongji

push eventstarkwang/vue-virtual-collection

vivianlii

commit sha d0a5bf6640ba5629c8973ab1a776e97ea786b7e3

fix: Fix invalid handler name (#25)

view details

push time in 21 days

pull request commentstarkwang/vue-virtual-collection

Fix invalid handler name

LGTM. Could you rebase the master branch and clean up the commits list? : )

vivianlii

comment created time in 24 days

pull request commentstarkwang/vue-virtual-collection

Trigger reset collection on container resized

Landed in 1.4.0

vivianlii

comment created time in a month

push eventstarkwang/vue-virtual-collection

Weijia Wang

commit sha c972f70f39d45f169a468bd1dbfed8df8e81e87f

add dist to gitignore

view details

Weijia Wang

commit sha 96983c86d5764d369d6345d3f3c5724718d9f912

add npmignore

view details

push time in a month

push eventstarkwang/vue-virtual-collection

Weijia Wang

commit sha 5afd9c11a54760e916a69e5c357c53f567f926ff

revert parcel to 1.6.2

view details

Weijia Wang

commit sha c291479dc10a33a5fbc0af02d8b30f7456ac3c80

add dist to gitignore

view details

Weijia Wang

commit sha c6ca1987e37b8e769bf86d1b0007b34513a0a035

1.4.0

view details

push time in a month

push eventstarkwang/vue-virtual-collection

vivianlii

commit sha 312e2c584452c99e421c2e6cf087077fda8b663a

Trigger reset collection on container resized (#21) * feat: Reset collection on window resize * chore: Revert package.json * fix: Fix unit test * refactor: Refactor fake resize observer * feat: Add fallback for ResizeObserver * fix: Fix unit test * test: fix collection test * feat: Reset collection on window resize * chore: Revert package.json * chore: Rebase from master Co-authored-by: Weijia Wang <starkwang@126.com>

view details

push time in a month

PR merged starkwang/vue-virtual-collection

Trigger reset collection on container resized

Problem

In responsive design, when the width changes, the layout will not update according to the new width. Related to #16

Example that demonstrates the problem

<template>
    <div ref="container">
        <VirtualCollection
            v-if="containerContentRect"
            :cellSizeAndPositionGetter="cellSizeAndPositionGetter"
            :collection="items"
            :height="containerContentRect.height"
            :width="containerContentRect.width"
        >
            <div slot="cell" slot-scope="props">{{props.data}}</div>
        </VirtualCollection>
    </div>
</template>

<script>
    export default {
        data () {
            return {
                /**
                 * This will create 1000 items like:
                 * [
                 *   { data: '#0' },
                 *   { data: '#1' },
                 *   ...
                 *   { data: '#999' }
                 * ]
                 */
                items: new Array(1000).fill(0).map((_, index) => ({ data: '#' + index })),
                containerContentRect: null
            }
        },
        computed: {
            cellSize() {
                return {
                    width: 100,
                    height: 150
                }
            },
            padding() {
                return 10
            },
            cellPerRow() {
                if (this.containerContentRect === null) {
                    return 0
                }

                return Math.floor(
                  (this.containerContentRect.width - this.padding * 2) /
                    (this.cellSize.width)
                )
            }
        },
        methods: {
            cellSizeAndPositionGetter(item, index) {
                // compute size and position
                if (this.containerContentRect === null) {
                    return {
                        width: 0,
                        height: 0,
                        x: 0,
                        y: 0
                    }
                }

                return {
                    width: this.cellSize.width,
                    height: this.cellSize.height,
                    x: this.padding + (index % this.cellPerRow) * this.cellSize.width,
                    y: Math.floor(index / this.cellPerRow) * (this.cellSize.height)
                }
            },
            handleResize(e) {
                var entry = e[0]
                if (entry && entry.target === this.$refs.container) {
                    this.containerContentRect = entry.contentRect
                }
            }
        },
        mounted() {
            this.resizeObserver = new ResizeObserver(this.handleResize)
            this.resizeObserver.observe(this.$refs.container)
        },
        destroyed() {
            this.resizeObserver.disconnect()
        }
    }
</script>

Solutions

Add a resize listener to the container to trigger the layout update in VirtualCollection.vue

+98 -19

6 comments

5 changed files

vivianlii

pr closed time in a month

pull request commentstarkwang/vue-virtual-collection

Trigger reset collection on container resized

Thanks for your contribution!

vivianlii

comment created time in a month

pull request commentstarkwang/vue-virtual-collection

Trigger reset collection on container resized

@vivianlii The crashed unit test has been fixed. Could you rebase the master branch? the new CI would be restarted after rebase.

vivianlii

comment created time in a month

push eventstarkwang/vue-virtual-collection

Weijia Wang

commit sha 73f3ef8f21fb663e8704d3969a497117aa0b2d6f

test: fix collection test

view details

push time in a month

pull request commentstarkwang/vue-virtual-collection

Trigger reset collection on container resized

I can run the test successfully on my local env and have no ideas about the failure. Can you help to trigger the travis build?

It failed again. I'm trying to reproduce the failure on my local.

vivianlii

comment created time in a month

IssuesEvent

issue closedstarkwang/vue-virtual-collection

Is there any possibility for pagemode rendering?

Didn't find option to render in pagemode, does it exist?

closed time in a month

iskendev

issue commentstarkwang/vue-virtual-collection

Is there any possibility for pagemode rendering?

You can use css to hide the scrollbar.

iskendev

comment created time in a month

issue closedstarkwang/vue-virtual-collection

Should relayout when width, height and the cellSizeAndPositionGetter changes

Right now, width changes don't trigger relayout. So this library can't be used in responsive design.

closed time in a month

mortyccp

issue closedstarkwang/vue-virtual-collection

Export the VirtualCollection

I don't think this library need to be use via vue plugin. I think exporting the VirtualCollection is enough

closed time in a month

mortyccp

Pull request review commentstarkwang/vue-virtual-collection

Trigger reset collection on container resized

 export default {             }         }     },+    mounted() {+        this.resizeObserver = new ResizeObserver(this.onContainerResized)

ResizeObserver is an experimental feature in browser, which is not fully supported yet. It would be better to make a fallback for it.

vivianlii

comment created time in a month

pull request commentstarkwang/vue-virtual-collection

Trigger reset collection on container resized

So sorry for my late.

vivianlii

comment created time in a month

issue closedstarkwang/vue-virtual-collection

Nuxt SSR Support

I love this library. Are there any plans to support Nuxt.js? This is very necessary so that pages using vue-virtual-collection can have good SEO.

closed time in a month

joshua-s

PR opened pskordilakis/vuepress-plugin-tabs

Add `tabsAttributes` to plugin options

This change is to add tabsAttributes to global plugin option. It would be useful when we want to config the default tabs attributes globally.

For example:

// .vuepress/config.js
module.exports = {
    plugins: [
        [
            'vuepress-plugin-tabs',
            {
                tabsAttributes: {
                    options: {
                        useUrlFragment: false
                    }
                }
            }
        ]
    ]
}

Then all the <tabs> components will have :options="{useUrlFragment: false}" attribute by default.

+69 -11

0 comment

6 changed files

pr created time in a month

create barnchstarkwang/vuepress-plugin-tabs

branch : global-options

created branch time in a month

fork starkwang/vuepress-plugin-tabs

Vuepress plugin - markdown custom container to display content in tabs

fork in a month

startedpskordilakis/vuepress-plugin-tabs

started time in a month

push eventTencentCloudBase/blog

Weijia Wang

commit sha 31520cc262d20a278c57c072a99444a1c6e279ca

加入云接入文档

view details

push time in 2 months

PR opened denoland/deno

Get `file` and `fileInfo` concurrently

Now we get the file and fileInfo sequentially. This change is to make it concurrently, which reduces time cost from open() + stat() to max(open(), stat())

+1 -2

0 comment

1 changed file

pr created time in 2 months

push eventstarkwang/deno

Weijia Wang

commit sha 8eab5f46393b71c1a045b33e1f70bf9bf9bcce5e

Get `file` and `fileInfo` concurrently

view details

push time in 2 months

create barnchstarkwang/deno

branch : std-file

created branch time in 2 months

push eventstarkwang/deno

Ryan Dahl

commit sha 0d048b8704c0709506d3d14a26d540a4b8eb470e

Init Original: https://github.com/denoland/deno_std/commit/60735e18043b54f51cf794ebe152459d5e066e6d

view details

Ryan Dahl

commit sha abe47d10c97f5cff671d3565a5a985c2ef203d4d

Fix test Original: https://github.com/denoland/deno_std/commit/52ff748cfbc5f23b267dc5901c96508aee02d199

view details

Ryan Dahl

commit sha 8610e3578c923be2b7d758e75ea370801abf8574

First pass at bufio. Original: https://github.com/denoland/deno_std/commit/c5cc6959705c310f4f7a864d77aae54171707c04

view details

Ryan Dahl

commit sha 280856f8d81c4b2e53fa8022aafae5a7c008747f

First pass at bufio.read tests. Original: https://github.com/denoland/deno_std/commit/1eb57aa3948caf88e9064defc15e076b8a46fbd2

view details

Ryan Dahl

commit sha 77b1b40bd108c41938a2c639f80c7de83a8cf80f

Add travis script Original: https://github.com/denoland/deno_std/commit/7117998ab8f8695c8983c1961c038e59473268e3

view details

Ryan Dahl

commit sha 9e3cde22d798e4834ff8480d9a4debd7cc056585

Add Readme Original: https://github.com/denoland/deno_std/commit/be1eb62bdc04c7af4f1f63b4b01b26c23d62f3c9

view details

Ryan Dahl

commit sha 9b014313dbec50da61213b5797d54ba1a5b4a530

Add bufio tests. Original: https://github.com/denoland/deno_std/commit/aa9e3df0d21e927ec86209c8cc81d5f1a27a0736

view details

Ryan Dahl

commit sha 8396619721bed2eaa78cab17754b63b567accfef

Rename bufio.Reader to BufReader Original: https://github.com/denoland/deno_std/commit/6b886836c03ad0641aa0522ce1a765935884952e

view details

Ryan Dahl

commit sha 423424f1daa3ca35f2ac63d2c0e40b99e938ec46

Add BufReader.readSlice() Original: https://github.com/denoland/deno_std/commit/e37b949e2c4523911e071086c1cf4ea4f33dc6af

view details

Ryan Dahl

commit sha 5f74f7eebe8fb657624374d8a8510fe1caa9ffa0

Use https instead of http. Original: https://github.com/denoland/deno_std/commit/2d8d8247da4f71fe7e796fc1d3da1f797a2c4195

view details

Ryan Dahl

commit sha d35e13e6beb6825a85a2518adebcc8afd91360af

Add test bufioReadLine Original: https://github.com/denoland/deno_std/commit/01f576af87de38628bf65eccc855a3503e76d03e

view details

Ryan Dahl

commit sha e97fdcac47a7ff53143b15e6686a773bd6202e10

Add BufReader.peek() Original: https://github.com/denoland/deno_std/commit/90cbca40beb7f5523f7ac99b5f317b727d4df3a4

view details

Ryan Dahl

commit sha a628a499fa7794ef421e814ae487635890af1cb3

Simplify travis. Original: https://github.com/denoland/deno_std/commit/22151e4f7bddfa14aed096d7ad7d021b026b562b

view details

Ryan Dahl

commit sha 0c324a442ef4a296bd925972dfbe3fc94c60b256

First pass at TextProtoReader. Original: https://github.com/denoland/deno_std/commit/31ab43b9193a9107d965c991f17992fcee791b33

view details

Ryan Dahl

commit sha fb0b99408b1ce0c8061d654e9dae3fd8221efa6f

Add tests for TextProtoReader.readMIMEHeader() Original: https://github.com/denoland/deno_std/commit/36edda18ab75ea8287088478d46e89e5e8d6be0f

view details

Ryan Dahl

commit sha 80b2067030abdf9f51b1d0eb9ceaaf76c2d09bfb

Use async iterators for http server. Original: https://github.com/denoland/deno_std/commit/9377d154c5079a732d76a36a6ec5892d8da43087

view details

Ryan Dahl

commit sha 9b78509ceb975df3dc9d795c7310dcc4c73436a3

wip Original: https://github.com/denoland/deno_std/commit/ad578ab6fe75dd41585be741e378b92645258b28

view details

Ryan Dahl

commit sha 5880827f33ab90d4d5f5ac2f9166fddc76614cfa

First pass at BufWriter Original: https://github.com/denoland/deno_std/commit/9329cd76bd67b96fbeab6ef0b02703bd77a9b482

view details

Ryan Dahl

commit sha 92455a0b67982bd28f23a09acb9e27dcb6f75e1d

Basic http demo working. Original: https://github.com/denoland/deno_std/commit/805efdb7508f4b916645df49038b4c143c0de0a1

view details

Ryan Dahl

commit sha e931c53a234a55f29169415cac016e4d792f7f97

Use Uint8Array instead of ArrayBufferView Original: https://github.com/denoland/deno_std/commit/0c8ad6eb1af05b259cc7c622e87e27b402886c96

view details

push time in 2 months

issue openeddenoland/deno

Deno bundle file doesn't support top level await

This is the example code in std/http:

// index.ts
import { serve } from "https://deno.land/std/http/server.ts";
const body = new TextEncoder().encode("Hello World\n");
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of s) {
  req.respond({ body });
}

I bundled and tried to run it.

deno bundle index.ts > bundle.ts
deno run bundle.ts

Then got an error:

error: Uncaught SyntaxError: Unexpected reserved word
► file:///Users/starkwang/Desktop/try-deno/bundle.ts:4445:9

4445     for await (const req of s) {
             ~~~~~

created time in 2 months

startedTencentCloudBase/cloudbase-cli

started time in 2 months

startedunbug/codelf

started time in 3 months

PublicEvent

push eventstarkwang/cloudbase-vue

Weijia Wang

commit sha de6b83cb7d3ac44796e0f16c0337ffa91d88bfe6

Update README.md

view details

push time in 3 months

push eventstarkwang/cloudbase-realtime-demo

Weijia Wang

commit sha 859199235a7970fc56bdf265d989afcbc11f89c6

add cloudbase host

view details

Weijia Wang

commit sha d3a84d950e645014bb33002b1b79c79e6241d119

拆分组件,优化渲染性能

view details

push time in 3 months

push eventstarkwang/cloudbase-realtime-demo

Weijia Wang

commit sha 5f358b6c8ac44eb4a12b9b3a89ea9fd24404e2a7

add nuxt cloud function

view details

push time in 3 months

issue closedstarkwang/vue-virtual-collection

pc 端键盘控制滚动问题

点击滚动内容,按 PageDown 只第一次有效

closed time in 3 months

dengrc

issue closedstarkwang/vue-virtual-collection

子集高度未知的时候应该怎么做

滑动效果很好,在子集高度未知的情况下还能否达到预期的效果吗

closed time in 3 months

aLIEzsss4

issue openednodejs/admin

Where should I submit the Expensify report to?

In our travel fund documentation, it mentions that the member should submit the Expensify report with operations@openjsf.org ON CC:

Once you have uploaded your receipts, please add them to a report and submit it with operations@openjsf.org on cc, and the Memo field set to "YOURNAME - TRIPNAME".

But where should I submit the report TO? 🤔

created time in 3 months

startedmenzi11/BullshitGenerator

started time in 3 months

PublicEvent

push eventstarkwang/cloudbase-realtime-demo

Weijia Wang

commit sha 609e8353bb60639c506471059afc1b417691c34f

code

view details

push time in 3 months

create barnchstarkwang/node

branch : http-parser-lowercase

created branch time in 4 months

push eventTencentCloudBase/cloudbase-react-hooks

Weijia Wang

commit sha e915d7d8c1218ca72b7cb13fb5e17a1d8923b78d

Update README.md

view details

push time in 4 months

MemberEvent

push eventTencentCloudBase/pai-instance-document

yinjingping

commit sha 7a58e743413d25588aa69d2b73b4ac6d882ede68

Update 常见问题.md

view details

yinjingping

commit sha 78c5474706e56ff5ef3e3ff3a0494074934aa5be

Update 常见问题.md

view details

yinjingping

commit sha f4ce45b98c0fee08b3c153c9506e1be36517bb75

Update 常见问题.md

view details

yinjingping

commit sha 43bde8d1f05f1729de4fda28339f05ffb82fb109

Update 常见问题.md

view details

yinjingping

commit sha a942f599940f9f83f31e064ce134f0b53948d6b8

Update 常见问题.md

view details

yinjingping

commit sha cd0e58c4d2ca026a4cd83ce8abaf3bf7d2f8c636

Update 常见问题.md

view details

yinjingping

commit sha 501854bd1d0eb0ff0b834fd698e6a55e03db1f9e

Update 常见问题.md

view details

yinjingping

commit sha 0ffe9f9e5ff99dd0077990272a07aec1489fbc71

Merge branch 'master' into master

view details

Weijia Wang

commit sha e5949d1e9951706b5f64aeeae12d99e29120ab47

Merge pull request #3 from buyouran1/master Update 常见问题

view details

push time in 4 months

Pull request review commentTencentCloudBase/pai-instance-document

Update 常见问题.md

 systemctl daemon-reload systemctl start certbot-renew.service ``` +说明:该问题已修复,2019年10月18日后购买的用户不会再有此问题+ ## 2. 访问显示502  ![image](http://pai-mate-1251783334.cosgz.myqcloud.com/FAQ/502.png)  解决方式:-将“http”替换为“https“,后面加端口号“5523”,示例如下:+将【http】替换为【https】,后面加端口号【5523】,示例如下:

这里用反引号是不是更好?

将 `http` 替换为 `https`,后面加端口号 `5523`,示例如下:
buyouran1

comment created time in 4 months

Pull request review commentTencentCloudBase/pai-instance-document

Update 常见问题.md

 systemctl daemon-reload systemctl start certbot-renew.service ``` +说明:该问题已修复,2019年10月18日后购买的用户不会再有此问题+ ## 2. 访问显示502  ![image](http://pai-mate-1251783334.cosgz.myqcloud.com/FAQ/502.png)  解决方式:-将“http”替换为“https“,后面加端口号“5523”,示例如下:+将【http】替换为【https】,后面加端口号【5523】,示例如下: https://apple.pai.com:5523 -说明:“https://域名”是留给用户的+说明:【https://域名】是留给用户的

同上

buyouran1

comment created time in 4 months

push eventTencentCloudBase/pai-instance-document

yinjingping

commit sha 6741846876e0ec793a0b85a833e90dcb942cb78e

Update 常见问题.md

view details

Weijia Wang

commit sha 419d644a4bb9285283b2ece46858635fa3041a59

Merge pull request #1 from buyouran1/pai-instance-document Update 常见问题.md

view details

push time in 4 months

PR opened nodejs/admin

travel request for Weijia Wang COSCon 2019

Travel Request for Weijia Wang for COSCon 2019 (as C+L mentor)

Airfare: $300 (estimated) Hotel: $200 (2 nights, estimated 100$/night) Other travel: $50 (taxi/bus/subway)

Total: $550 (estimated)

@nodejs/tsc @nodejs/community-committee

+1 -0

0 comment

1 changed file

pr created time in 4 months

push eventstarkwang/admin

Weijia Wang

commit sha cf65ce5c2defbb3f752de753984b3c7a6ac8ce02

travel request for Weijia Wang COSCon 2019

view details

push time in 4 months

push eventstarkwang/admin

Weijia Wang

commit sha e8588f183dd5e8f5f9d062dc09e50199e6abcb66

travel request for Weijia Wang COSCon 2019

view details

push time in 4 months

fork starkwang/admin

Facilitating joint collaboration amongst the TSC and CommComm

fork in 4 months

push eventTencentCloudBase/qcloud-documents

xinxinyi

commit sha 2623a339b036cb5b19351bf867fc750905bb9fd5

CLB更新会话保持文档

view details

vcanhe

commit sha 14abfea4a4e69609ddea5957ed7ced94ad1dace7

Update 价格说明.md

view details

vyixzheng

commit sha 77b4e16d3ea3cad9840233eb9be6d9143cb685f4

Update 前置准备.md 优化

view details

vyixzheng

commit sha c957ae375ceca78280b8fc217cff2a93cf2d28e3

Update 执行远程代码包.md 优化

view details

vyixzheng

commit sha 3a91b55646c8f93cc0b034d66c0de463c320981c

Update 远程存储映射.md 优化

view details

vyixzheng

commit sha 395c4c56f12c2cc8de2f0fa4cc228725aa3ebb14

Update 使用计算环境搭建集群.md 优化

view details

vyixzheng

commit sha d33a0894911a68686c0825959965eeb17e081213

Update Tencent TrustSQL.md 优化

view details

vyfeiyang

commit sha 0171fd8cef5b25c2f8446ff5f710a0c6bcd3c225

Update PyCaffe 组件.md

view details

vyfeiyang

commit sha f41e059263a16fa622b070946b92a06f49a83165

Update PyCaffe 组件.md

view details

vgyyuangao

commit sha 033fad81444c965b3d0ae5a6bad9dcd5aed06bd2

Update 数据订阅SDK.md

view details

vxifu

commit sha 0d01a5405376ff32fdda7d0cd5c4237a86a5e776

Update 接口文档.md

view details

vyixzheng

commit sha 7481705fe123fe0fe91ea0a90866adc341426b0c

Update 执行远程代码包.md 更新

view details

vyixzheng

commit sha cf3f2e258b779241702d1d38536d8873c28e270a

Update 远程存储映射.md 更新

view details

lyyvli

commit sha c7a3b1c3164c8e5291825aa8b7d75e05c1d055ce

Merge pull request #3114 from xinxinyixx/master CLB更新会话保持相关文档

view details

vyixzheng

commit sha 3a5d315f04a4ed6dbfc1df8dc20d1d2bbf6f270b

Update 命令行快速开始.md 更新

view details

vxifu

commit sha 9852e18d1ef2d1143fbed4811a384659010c3686

Update 接口文档.md

view details

vkxianli

commit sha 5e63d9d7587e306c2ba481e0a032348f82dddc3a

Update 产品概述.md

view details

vkxianli

commit sha 62b098d92418999793446d6877f80f89907eb166

Update 站点质量监控.md

view details

vkxianli

commit sha c96fa7d1a83c75f0000abcc833814c60d8e41f71

Update 服务等级协议.md

view details

vkxianli

commit sha f88ce6e9cf062b1075acc387b508206a37853cbe

Update 获取索引信息.md

view details

push time in 4 months

push eventTencentCloudBase/tcb-admin-node

lukejyhuang

commit sha d68731fcd898aa590f9a20913d1054c6f6a869d8

add space to slow query warn

view details

Weijia Wang

commit sha d2fa883af4591bdfd5e6571477bef59166b31c73

add test for query date

view details

Weijia Wang

commit sha 59b4b4205c391843ee259a11131a7215317703cc

skip flaky test

view details

Weijia Wang

commit sha a9c43f68b7b1fe9a9e1b3fc5dc4eff1efd70287f

升级database模块

view details

Weijia Wang

commit sha 2097293ddf2b236aa526c4c57991c6bfe7393cdb

1.13.1

view details

push time in 4 months

push eventTencentCloudBase/tcb-admin-node

lukejyhuang

commit sha ef85d5ad6782da1e8b82d234d92e31e7de8b4ad7

add slowquerywarning detail

view details

Weijia Wang

commit sha 452f953f64ac641542b0c63d13144f7455aedd63

add change log

view details

push time in 4 months

PR opened node-modules/agentkeepalive

Add `reusedSocket` property on client request

Node.js core has landed the implementation of request.reusedSocket on master. This change is to add the same property on agentkeepalive, which makes this feature can be used through agentkeepalive in older version of Node.js.

Refs: https://github.com/nodejs/node/pull/29715

+63 -0

0 comment

3 changed files

pr created time in 4 months

push eventstarkwang/agentkeepalive

Weijia Wang

commit sha 2313eb8befac8612ff105bdc1ec5dcb91fda23b4

Add `reusedSocket` property on client request

view details

push time in 4 months

create barnchstarkwang/agentkeepalive

branch : add-reused-socket

created branch time in 4 months

push eventTencentCloudBase/tcb-admin-node

lukejyhuang

commit sha 245e32530d4008582e481dbe970ce02b0bd99d32

change timeout 15000 => 5000

view details

lukejyhuang

commit sha 7ec7f2e2916876979cecf8c5b84de4c2f24b08b0

fix doc

view details

lukejyhuang

commit sha c101bbdc7b1f592ca0a534031878460694dc837d

Merge branch 'sdk_db_error_show' into 'master' change default timeout to 5s See merge request !27

view details

lukejyhuang

commit sha 0e53eb851a2dbc3231689a74872db4aaf2cae2cd

Revert "change timeout 15000 => 5000" This reverts commit 245e32530d4008582e481dbe970ce02b0bd99d32.

view details

Weijia Wang

commit sha b8c8de8d9964396e5a0ce322ea00fc71fee9d952

加入更多operator的测试用例

view details

Weijia Wang

commit sha 185ec412d6e4b8dbfe6ecee8fa328f1fe65c43db

1.13.0-beta.0

view details

Weijia Wang

commit sha aa9f11a43da02e2192554230aa28ce898c61c3cd

add doc for more operators

view details

Weijia Wang

commit sha 8c360ee09d00c0f1ce8e307ae6918662676a6ffb

add test

view details

Weijia Wang

commit sha 128b533d240366c28398339913b607f72ca29b6b

update database

view details

Weijia Wang

commit sha 2aa35cb09054bf8754522ede0e407e0b819d4933

1.13.0-beta.1

view details

Weijia Wang

commit sha 6583f5ad5da9f10ef3fcbc93927603507193a137

fix test

view details

Weijia Wang

commit sha bb83050f24c3dec9146015c3965e79c8b10a8066

add change log

view details

Weijia Wang

commit sha 35438a562f488559b4be4f839a62da8947a3fb1a

1.13.0

view details

push time in 4 months

PR closed nodejs/node

http: add reusedSocket property on client request author ready http semver-minor

Currently It's hard to handle keep-alive connection closes at unfortunate time. This PR set ClientRequest.reusedSocket property when reusing socket for request, so user can handle retry base on wether the request is reusing a socket. Similar to what chromium did

Refs:

  • Request fail to retry: https://github.com/request/request/issues/3131
  • Discussion in golang for the same issue: https://github.com/golang/go/issues/22158
Checklist
  • [x] make -j4 test (UNIX), or vcbuild test (Windows) passes
  • [x] tests and/or benchmarks are included
  • [x] documentation is changed or added
  • [x] commit message follows commit guidelines
+64 -3

26 comments

4 changed files

themez

pr closed time in 4 months

pull request commentnodejs/node

http: add reusedSocket property on client request

Landed in https://github.com/nodejs/node/commit/8915b15f8c367ef3ebb1299a57f482146825545b

themez

comment created time in 4 months

push eventnodejs/node

themez

commit sha 8915b15f8c367ef3ebb1299a57f482146825545b

http: add reusedSocket property on client request Set ClientRequest.reusedSocket property when reusing socket for request, so user can handle retry base on wether the request is reusing a socket. Refs: https://github.com/request/request/issues/3131 PR-URL: https://github.com/nodejs/node/pull/29715 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com>

view details

push time in 4 months

pull request commentnodejs/node

http: add reusedSocket property on client request

@themez That's fine.

themez

comment created time in 4 months

pull request commentnodejs/node

http: add reusedSocket property on client request

@themez This PR is about to land. User name and email address in these commits seems not be linked to your Github account. Would you like to change the name/email in commits, or add the email to your Github email list ?

You can take a look at: https://github.com/nodejs/node/blob/99b1ada/doc/guides/contributing/pull-requests.md#step-1-fork

themez

comment created time in 4 months

fork starkwang/agentkeepalive

Support keepalive http agent.

fork in 4 months

push eventTencentCloudBase/tcb-js-sdk

Weijia Wang

commit sha 910c6083c141321975b0501d94f6ed1c32e6b771

shouldRefreshAccessToken支持异步函数

view details

Weijia Wang

commit sha c67ba1897f35ffed90c0f9856d45f51fec3c8823

1.2.2

view details

Weijia Wang

commit sha a9871f7e813fc05f3144c491fb1b0e422d4e3542

fix build script

view details

Weijia Wang

commit sha 1817ecd5c737daa418855706333123395fca627e

build 1.2.2

view details

Weijia Wang

commit sha a292ea91d4eb0067108079bc16e1c8dc7a30578c

remove console.log

view details

Weijia Wang

commit sha ad437fc02ee14100f5b4a93f52b4a55e64c359ef

1.2.3

view details

Weijia Wang

commit sha f4cb523032b4283b252c32a3fa6b87833d9aeca0

build 1.2.3

view details

Weijia Wang

commit sha e417f5e21a372a85adeae502401013859fa36650

加入支持es module的@cloudbase/database,减少打包体积

view details

Weijia Wang

commit sha cb1f7a1fdecac0016d180235803a44ca2b1b7f9b

1.2.4

view details

Weijia Wang

commit sha 44a2b7da0dce20aeda781267666bfb0e02e8aefe

build 1.2.4

view details

lukejyhuang

commit sha a1c75ad4a409158cf242a8a5a844d5460a72bdb5

tcb-js 1.2.4

view details

Weijia Wang

commit sha 15ec92860c2a87461f9aefbb673eef6250279142

重构index.ts

view details

Weijia Wang

commit sha 1fdb1c5f3bf61dadcc13b1a2160312c944ad2071

add test

view details

Weijia Wang

commit sha ebbe5901b215f6ce69203e11239011b229bc92d9

加入getLoginState

view details

Weijia Wang

commit sha 127a971f4111c0a46a31c028fb88e4a71ff5478e

add auth type definition

view details

starkewang

commit sha a143a28e1a224cb6f3bf00714688820584783fc0

Merge branch 'refactor-index' into 'master (merge request !7) refactor-index

view details

Weijia Wang

commit sha 0a42bc1b07274f9d170d4cce1322006dba0cddee

加入自动e2e测试

view details

Weijia Wang

commit sha b088f76d2008552eddd847eb044ed43b13b12eb7

移除无用的测试文件

view details

Weijia Wang

commit sha f37349784ac170f7deeda5c2c43c83eca0d8f9a4

加入getLoginState()接口

view details

Weijia Wang

commit sha fc99502b9e1b03a0cc2bac3270df19e55e5961dc

1.3.0

view details

push time in 4 months

startedbrianc/node-sql

started time in 4 months

push eventTencentCloudBase/blog

Weijia Wang

commit sha 1aa0747dbfa6bcfc9e80fb6b7af25748c7d06b3e

fix title

view details

push time in 5 months

push eventTencentCloudBase/blog

Weijia Wang

commit sha 4ec7d74ba20f5533a4ad31202fcce3f144063a38

修复SDK跳转链接

view details

push time in 5 months

startedrootsongjc/kubernetes-handbook

started time in 5 months

created tagTencentCloudBase/tcb-admin-node

tagv1.12.1

Tencent Cloud Base on Node.js

created time in 5 months

push eventTencentCloudBase/tcb-admin-node

Weijia Wang

commit sha b35c66ccd1817a423edd3cc92f2977ea8f4f6718

update @cloudbase/database

view details

Weijia Wang

commit sha 65950e9930ec852acb46efbea876610358d50602

1.12.1

view details

push time in 5 months

created tagTencentCloudBase/tcb-admin-node

tagv1.12.0

Tencent Cloud Base on Node.js

created time in 5 months

push eventTencentCloudBase/tcb-admin-node

Weijia Wang

commit sha 3ca13c591c483d9449033450d96ef1147809b0f3

升级database,加入$slice和$nor

view details

Weijia Wang

commit sha ee2e806b7cc2af43f814585ec54388d1da39c2ec

fix test

view details

starkewang

commit sha a759f8d2c242e31030f22cf962c2d9d58c9daaee

Merge branch 'add-more-operators' into 'master' add-more-operators See merge request !26

view details

Weijia Wang

commit sha 222a48c15a4143a9c732e5444eefb25fb74a0c1d

1.12.0

view details

Weijia Wang

commit sha 1d57030ddfa2c7bf384a69d2e6a92260e779ce91

changelog for 1.12.0

view details

push time in 5 months

startedggez/ggez

started time in 5 months

fork starkwang/ggez

Rust library to create a Good Game Easily

http://ggez.rs

fork in 5 months

startedjakubroztocil/httpie

started time in 5 months

more