Chen Yangjian

Results 13 issues of Chen Yangjian

currently if the upper scope of the nested rule is compound selector like below: ```css .foo, .bar { & .baz { padding: 0; } } ``` It will use `:is()`...

Currently `Spell` is a duck typed promise implementation by providing promise methods such as `.then()`, `.catch()`, and `.finally()`. It is convenient to customize the constructor and async logic in this...

Model needs someway to declare table indexes in class, here's a proposal: ```js class User extends Bone { static indexes = [ { fields: [ 'organization_id', 'type' ] }, {...

...to prevent connection squatting. The default max connections in mysql is 100-151: ```bash mysql> show variables like 'max_connections'; +-----------------+-------+ | Variable_name | Value | +-----------------+-------+ | max_connections | 151 |...

The design of dup is mostly to solve confusing usages like below: ```js const query = Post.where({ published: true }); // SELECT * FROM posts WHERE published = 1 LIMIT...

```ts class User extends Bone { @Column({ defaultValue: 'Anonymous' }) name!: string; } ``` possibly could be rewritten as ```ts class User extends Bone { @Column() name: string = 'Anonymous';...

What should the typeof `post.comments` in following query be? ```ts await Post.findAll().join(Comment, 'comments.postId = posts.id') ``` currently it's Array, although I thought the joined comments should be Array as well,...

```ts class Template extends Bone { @Column() id: number; @Column() createdAt: Date; } ``` the model above might be instantiated like an empty object when compiled with tsconfig that has...