pulumi/changelog/pending
Fraser Waters 765a67effb
Flow PropertyValues through NewPropertyMapFromMap (#16894)
Fixes https://github.com/pulumi/pulumi/issues/16889

Currently `resource.NewPropertyMapFromMap` will drop any
`resource.PropertyValue`s from the input map. This is demonstrated
succinctly by Ian in the linked ticket:

```go
package main

import (
	"fmt"

	"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
)

func main() {
	fmt.Println(resource.NewObjectProperty(resource.NewPropertyMapFromMap(map[string]any{
		"foo": resource.NewObjectProperty(resource.NewPropertyMapFromMap(map[string]any{
			"bar": resource.NewNumberProperty(0),
		})),
	})))
	fmt.Println(resource.NewObjectProperty(resource.NewPropertyMapFromMap(map[string]any{
		"foo": map[string]any{"bar": 0},
	})))
}
```

```
{map[foo:{map[]}]}
{map[foo:{map[bar:{0}]}]}
```

This PR updates `NewPropertyMapFromMap` to instead flow these values
through directly resulting in an output of:
```
{map[foo:{map[bar:{0}]}]}
{map[foo:{map[bar:{0}]}]}
```
2024-08-07 06:50:58 +00:00
..
20240805--pkg--upgrade-pulumi-java-to-v0-13-0.yaml Update java language dependency (#16882) 2024-08-05 22:40:45 +00:00
20240806--sdk-go--newpropertymapfrommap-will-flow-propertyvalues-through-it-rather-than-dropping-them.yaml Flow PropertyValues through NewPropertyMapFromMap (#16894) 2024-08-07 06:50:58 +00:00