File size: 2,148 Bytes
cc651f6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# @rollup/plugin-replace ChangeLog

## v2.4.2

_2021-03-26_

### Updates

- docs: document the `values` option (#814)

## v2.4.1

_2021-02-22_

### Bugfixes

- fix: add missing types for new `preventAssignment` option (#813)

## v2.4.0

_2021-02-22_

### Features

- feat: prevent accidental replacement within assignment (#798)

### Updates

- docs: clarify replacement. fixes #737 (#785)

## v2.3.4

_2020-10-27_

### Updates

- docs: describe process.env.NODE_ENV case (#589)
- chore: update dependencies (53e2b73)
- docs: linting update in readme (aef7dbc)

## v2.3.3

_2020-06-05_

### Updates

- docs: clarify options for allowed replacement values (#422)

## v2.3.2

_2020-04-19_

### Updates

- chore: add rollup 2 to peer range (3e0d775)

## v2.3.1

_2020-02-01_

### Updates

- chore: update dependencies (aca4a94)

## 2.3.0

_2019-12-21_

- feat(replace): allow plugin to operate as an output plugin (#55)

## 2.2.1

_2019-11-06_

- Move `typescript` to `devDependencies`

## 2.2.0

_2019-04-10_

- Add index.d.ts typings file ([#31](https://github.com/rollup/rollup-plugin-replace/pull/31))

## 2.1.1

_2019-03-18_

- Update rollup-pluginutils ([#29](https://github.com/rollup/rollup-plugin-replace/pull/29))
- Update dependencies ([#30](https://github.com/rollup/rollup-plugin-replace/pull/30))

## 2.1.0

_2018-10-07_

- Do not mutate values passed as option ([#22](https://github.com/rollup/rollup-plugin-replace/pull/22))
- Update dependencies and improve tests ([#26](https://github.com/rollup/rollup-plugin-replace/pull/26))

## 2.0.0

- Only match on word boundaries, unless delimiters are empty strings ([#10](https://github.com/rollup/rollup-plugin-replace/pull/10))

## 1.2.1

- Match longest keys first ([#8](https://github.com/rollup/rollup-plugin-replace/pull/8))
- Escape keys ([#9](https://github.com/rollup/rollup-plugin-replace/pull/9))

## 1.2.0

- Allow replacement to be a function that takes a module ID ([#1](https://github.com/rollup/rollup-plugin-replace/issues/1))

## 1.1.1

- Return a `name`

## 1.1.0

- Generate sourcemaps by default

## 1.0.1

- Include correct files in package

## 1.0.0

- First release