Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deep extend() turns Date objects into empty objects since v2.6.0 #12831

Closed
tiltec opened this issue Mar 17, 2022 · 1 comment
Closed

deep extend() turns Date objects into empty objects since v2.6.0 #12831

tiltec opened this issue Mar 17, 2022 · 1 comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-webpack kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@tiltec
Copy link

tiltec commented Mar 17, 2022

What happened?

import { extend } from 'quasar'
const result = extend(true, {}, { d: new Date() })
console.log(result.d) // is '{}'!

What did you expect to happen?

Until v2.6.0, deep clone worked fine with Date objects.

I think this commit broke it: 75ffaa2

Non-deep clone is not affected by this.

Reproduction URL

https://codepen.io/tiltec/pen/OJzMLKe

How to reproduce?

HTML result is { "d": {} }, should be similar to { "d": "2022-03-17T08:57:26.935Z" }.

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

Components (quasar)

Platforms/Browsers

Firefox, Chrome

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@rstoenescu
Copy link
Member

Fix will be available in Quasar v2.6.2.

rstoenescu added a commit that referenced this issue Mar 17, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 19, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 19, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 25, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 25, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 27, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 27, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 28, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 29, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 30, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 30, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 30, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 31, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 31, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Mar 31, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Apr 1, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Apr 1, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Apr 4, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Aug 1, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Aug 18, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 12, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 13, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 14, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 14, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 14, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 15, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 16, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 20, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 21, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 21, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 21, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 21, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 22, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 22, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 24, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 25, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 25, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 27, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 27, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 27, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 29, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 29, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 29, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 29, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 29, 2022
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 29, 2022
rstoenescu added a commit that referenced this issue Sep 30, 2022
* fix(extend): small tweaks for extend #12831

* Update extend.js

Co-authored-by: Razvan Stoenescu <razvan.stoenescu@gmail.com>
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-webpack kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants