@symbo.ls/button 0.5.8 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/index.js +99 -0
  2. package/dist/index.js.map +1 -0
  3. package/package.json +7 -7
  4. package/packages/react/dist/index.js +17 -0
  5. package/packages/react/dist/index.js.map +1 -0
  6. package/packages/react/package.json +5 -5
  7. package/packages/react/{index.js → src/index.js} +0 -0
  8. package/packages/react/node_modules/.yarn-integrity +0 -91
  9. package/packages/react/node_modules/@domql/cache/LICENSE +0 -21
  10. package/packages/react/node_modules/@domql/cache/index.js +0 -0
  11. package/packages/react/node_modules/@domql/cache/package.json +0 -10
  12. package/packages/react/node_modules/@domql/cookie/LICENSE +0 -21
  13. package/packages/react/node_modules/@domql/cookie/index.js +0 -22
  14. package/packages/react/node_modules/@domql/cookie/package.json +0 -10
  15. package/packages/react/node_modules/@domql/define/LICENSE +0 -21
  16. package/packages/react/node_modules/@domql/define/index.js +0 -13
  17. package/packages/react/node_modules/@domql/define/package.json +0 -11
  18. package/packages/react/node_modules/@domql/domql/LICENSE +0 -21
  19. package/packages/react/node_modules/@domql/domql/package.json +0 -33
  20. package/packages/react/node_modules/@domql/domql/src/all_exports.js +0 -17
  21. package/packages/react/node_modules/@domql/domql/src/index.js +0 -15
  22. package/packages/react/node_modules/@domql/element/LICENSE +0 -21
  23. package/packages/react/node_modules/@domql/element/package.json +0 -20
  24. package/packages/react/node_modules/@domql/element/src/assign.js +0 -22
  25. package/packages/react/node_modules/@domql/element/src/create.js +0 -125
  26. package/packages/react/node_modules/@domql/element/src/index.js +0 -8
  27. package/packages/react/node_modules/@domql/element/src/iterate.js +0 -80
  28. package/packages/react/node_modules/@domql/element/src/methods.js +0 -96
  29. package/packages/react/node_modules/@domql/element/src/set.js +0 -44
  30. package/packages/react/node_modules/@domql/element/src/update.js +0 -98
  31. package/packages/react/node_modules/@domql/event/LICENSE +0 -21
  32. package/packages/react/node_modules/@domql/event/package.json +0 -14
  33. package/packages/react/node_modules/@domql/event/src/can.js +0 -10
  34. package/packages/react/node_modules/@domql/event/src/index.js +0 -11
  35. package/packages/react/node_modules/@domql/event/src/is.js +0 -13
  36. package/packages/react/node_modules/@domql/event/src/on.js +0 -33
  37. package/packages/react/node_modules/@domql/event/src/store.js +0 -6
  38. package/packages/react/node_modules/@domql/event/src/wrappers.js +0 -14
  39. package/packages/react/node_modules/@domql/event/yarn-error.log +0 -44
  40. package/packages/react/node_modules/@domql/id/LICENSE +0 -21
  41. package/packages/react/node_modules/@domql/id/index.js +0 -12
  42. package/packages/react/node_modules/@domql/id/package.json +0 -10
  43. package/packages/react/node_modules/@domql/mixins/LICENSE +0 -21
  44. package/packages/react/node_modules/@domql/mixins/package.json +0 -12
  45. package/packages/react/node_modules/@domql/mixins/src/attr.js +0 -19
  46. package/packages/react/node_modules/@domql/mixins/src/classList.js +0 -37
  47. package/packages/react/node_modules/@domql/mixins/src/content.js +0 -17
  48. package/packages/react/node_modules/@domql/mixins/src/data.js +0 -21
  49. package/packages/react/node_modules/@domql/mixins/src/html.js +0 -17
  50. package/packages/react/node_modules/@domql/mixins/src/index.js +0 -11
  51. package/packages/react/node_modules/@domql/mixins/src/registry.js +0 -55
  52. package/packages/react/node_modules/@domql/mixins/src/state.js +0 -16
  53. package/packages/react/node_modules/@domql/mixins/src/style.js +0 -14
  54. package/packages/react/node_modules/@domql/mixins/src/text.js +0 -19
  55. package/packages/react/node_modules/@domql/node/LICENSE +0 -21
  56. package/packages/react/node_modules/@domql/node/package.json +0 -17
  57. package/packages/react/node_modules/@domql/node/src/cache.js +0 -52
  58. package/packages/react/node_modules/@domql/node/src/create.js +0 -86
  59. package/packages/react/node_modules/@domql/node/src/index.js +0 -5
  60. package/packages/react/node_modules/@domql/node/src/registry.js +0 -139
  61. package/packages/react/node_modules/@domql/parse/LICENSE +0 -21
  62. package/packages/react/node_modules/@domql/parse/index.js +0 -16
  63. package/packages/react/node_modules/@domql/parse/package.json +0 -10
  64. package/packages/react/node_modules/@domql/props/LICENSE +0 -21
  65. package/packages/react/node_modules/@domql/props/package.json +0 -10
  66. package/packages/react/node_modules/@domql/props/src/index.js +0 -62
  67. package/packages/react/node_modules/@domql/proto/LICENSE +0 -21
  68. package/packages/react/node_modules/@domql/proto/index.js +0 -66
  69. package/packages/react/node_modules/@domql/proto/package.json +0 -10
  70. package/packages/react/node_modules/@domql/react-transformer/LICENSE +0 -21
  71. package/packages/react/node_modules/@domql/react-transformer/index.js +0 -25
  72. package/packages/react/node_modules/@domql/react-transformer/package.json +0 -12
  73. package/packages/react/node_modules/@domql/react-transformer/yarn-error.log +0 -41
  74. package/packages/react/node_modules/@domql/report/LICENSE +0 -21
  75. package/packages/react/node_modules/@domql/report/index.js +0 -62
  76. package/packages/react/node_modules/@domql/report/package.json +0 -7
  77. package/packages/react/node_modules/@domql/state/LICENSE +0 -21
  78. package/packages/react/node_modules/@domql/state/package.json +0 -11
  79. package/packages/react/node_modules/@domql/state/src/index.js +0 -51
  80. package/packages/react/node_modules/@domql/tree/LICENSE +0 -21
  81. package/packages/react/node_modules/@domql/tree/index.js +0 -6
  82. package/packages/react/node_modules/@domql/tree/package.json +0 -10
  83. package/packages/react/node_modules/@domql/tree/root.js +0 -8
  84. package/packages/react/node_modules/@domql/utils/LICENSE +0 -21
  85. package/packages/react/node_modules/@domql/utils/package.json +0 -13
  86. package/packages/react/node_modules/@domql/utils/src/index.js +0 -5
  87. package/packages/react/node_modules/@domql/utils/src/node.js +0 -10
  88. package/packages/react/node_modules/@domql/utils/src/object.js +0 -193
  89. package/packages/react/node_modules/@domql/utils/src/protoUtils.js +0 -119
  90. package/packages/react/node_modules/js-tokens/CHANGELOG.md +0 -151
  91. package/packages/react/node_modules/js-tokens/LICENSE +0 -21
  92. package/packages/react/node_modules/js-tokens/README.md +0 -240
  93. package/packages/react/node_modules/js-tokens/index.js +0 -23
  94. package/packages/react/node_modules/js-tokens/package.json +0 -30
  95. package/packages/react/node_modules/loose-envify/LICENSE +0 -21
  96. package/packages/react/node_modules/loose-envify/README.md +0 -45
  97. package/packages/react/node_modules/loose-envify/cli.js +0 -16
  98. package/packages/react/node_modules/loose-envify/custom.js +0 -4
  99. package/packages/react/node_modules/loose-envify/index.js +0 -3
  100. package/packages/react/node_modules/loose-envify/loose-envify.js +0 -36
  101. package/packages/react/node_modules/loose-envify/package.json +0 -36
  102. package/packages/react/node_modules/loose-envify/replace.js +0 -65
  103. package/packages/react/node_modules/object-assign/index.js +0 -90
  104. package/packages/react/node_modules/object-assign/license +0 -21
  105. package/packages/react/node_modules/object-assign/package.json +0 -42
  106. package/packages/react/node_modules/object-assign/readme.md +0 -61
  107. package/packages/react/node_modules/react/LICENSE +0 -21
  108. package/packages/react/node_modules/react/README.md +0 -13
  109. package/packages/react/node_modules/react/build-info.json +0 -8
  110. package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -1203
  111. package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +0 -9
  112. package/packages/react/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +0 -9
  113. package/packages/react/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1221
  114. package/packages/react/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
  115. package/packages/react/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +0 -10
  116. package/packages/react/node_modules/react/cjs/react.development.js +0 -2333
  117. package/packages/react/node_modules/react/cjs/react.production.min.js +0 -23
  118. package/packages/react/node_modules/react/index.js +0 -7
  119. package/packages/react/node_modules/react/jsx-dev-runtime.js +0 -7
  120. package/packages/react/node_modules/react/jsx-runtime.js +0 -7
  121. package/packages/react/node_modules/react/package.json +0 -39
  122. package/packages/react/node_modules/react/umd/react.development.js +0 -3357
  123. package/packages/react/node_modules/react/umd/react.production.min.js +0 -31
  124. package/packages/react/node_modules/react/umd/react.profiling.min.js +0 -36
  125. package/packages/react/node_modules/regenerator-runtime/LICENSE +0 -21
  126. package/packages/react/node_modules/regenerator-runtime/README.md +0 -31
  127. package/packages/react/node_modules/regenerator-runtime/package.json +0 -19
  128. package/packages/react/node_modules/regenerator-runtime/path.js +0 -11
  129. package/packages/react/node_modules/regenerator-runtime/runtime.js +0 -754
  130. package/packages/react/yarn.lock +0 -183
@@ -1,193 +0,0 @@
1
- 'use strict'
2
-
3
- import { NODE_REGISTRY } from '@domql/node'
4
-
5
- export const isValidHtmlTag = arg => NODE_REGISTRY.body.indexOf(arg)
6
-
7
- export const isObject = arg => {
8
- if (arg === null) return false
9
- return (typeof arg === 'object') && (arg.constructor === Object)
10
- }
11
-
12
- export const isString = arg => typeof arg === 'string'
13
-
14
- export const isNumber = arg => typeof arg === 'number'
15
-
16
- export const isFunction = arg => typeof arg === 'function'
17
-
18
- export const isArray = arg => Array.isArray(arg)
19
-
20
- export const isObjectLike = arg => {
21
- if (arg === null) return false
22
- // if (isArray(arg)) return false
23
- return (typeof arg === 'object')
24
- }
25
-
26
- export const isNode = obj => {
27
- return (
28
- typeof window.Node === 'object'
29
- ? obj instanceof window.Node
30
- : obj && typeof obj === 'object' && typeof obj.nodeType === 'number' && typeof obj.nodeName === 'string'
31
- )
32
- }
33
-
34
- export const isHtmlElement = obj => {
35
- return (
36
- typeof window.HTMLElement === 'object'
37
- ? obj instanceof window.HTMLElement // DOM2
38
- : obj && typeof obj === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string'
39
- )
40
- }
41
-
42
- export const isDefined = arg => {
43
- return isObject(arg) ||
44
- isObjectLike(arg) ||
45
- isString(arg) ||
46
- isNumber(arg) ||
47
- isFunction(arg) ||
48
- isArray(arg) ||
49
- isObjectLike(arg)
50
- }
51
-
52
- export const exec = (param, element, state) => {
53
- if (isFunction(param)) return param(element, state || element.state)
54
- return param
55
- }
56
-
57
- export const map = (obj, extention, element) => {
58
- for (const e in extention) {
59
- obj[e] = exec(extention[e], element)
60
- }
61
- }
62
-
63
- export const merge = (element, obj) => {
64
- for (const e in obj) {
65
- const elementProp = element[e]
66
- const objProp = obj[e]
67
- if (elementProp === undefined) {
68
- element[e] = objProp
69
- }
70
- }
71
- return element
72
- }
73
-
74
- export const deepMerge = (element, proto) => {
75
- // console.groupCollapsed('deepMerge:')
76
- for (const e in proto) {
77
- const elementProp = element[e]
78
- const protoProp = proto[e]
79
- // const cachedProps = cache.props
80
- if (e === 'parent' || e === 'props') continue
81
- if (elementProp === undefined) {
82
- element[e] = protoProp
83
- } else if (isObjectLike(elementProp) && isObject(protoProp)) {
84
- deepMerge(elementProp, protoProp)
85
- }
86
- }
87
- // console.groupEnd('deepMerge:')
88
- return element
89
- }
90
-
91
- export const clone = obj => {
92
- const o = {}
93
- for (const prop in obj) {
94
- if (prop === 'node') continue
95
- o[prop] = obj[prop]
96
- }
97
- return o
98
- }
99
-
100
- /**
101
- * Deep cloning of object
102
- */
103
- export const deepClone = (obj, excluding = ['parent', 'node', '__element', '__root']) => {
104
- const o = {}
105
- for (const prop in obj) {
106
- if (excluding.indexOf(prop) > -1) continue
107
- let objProp = obj[prop]
108
- if (prop === 'proto' && isArray(objProp)) {
109
- objProp = mergeArray(objProp)
110
- }
111
- if (isObjectLike(objProp)) {
112
- o[prop] = deepClone(objProp)
113
- } else o[prop] = objProp
114
- }
115
- return o
116
- }
117
-
118
- /**
119
- * Overwrites object properties with another
120
- */
121
- export const overwrite = (element, params, options) => {
122
- const changes = {}
123
-
124
- for (const e in params) {
125
- if (e === 'props') continue
126
-
127
- const elementProp = element[e]
128
- const paramsProp = params[e]
129
-
130
- if (paramsProp) {
131
- element.__cached[e] = changes[e] = elementProp
132
- element[e] = paramsProp
133
- }
134
-
135
- if (options.cleanExec) delete element.__exec[e]
136
- }
137
-
138
- return changes
139
- }
140
-
141
- /**
142
- * Overwrites DEEPly object properties with another
143
- */
144
- export const overwriteDeep = (obj, params, excluding = ['node', '__root']) => {
145
- for (const e in params) {
146
- if (excluding.indexOf(e) > -1) continue
147
- const objProp = obj[e]
148
- const paramsProp = params[e]
149
- if (isObjectLike(objProp) && isObjectLike(paramsProp)) {
150
- overwriteDeep(objProp, paramsProp)
151
- } else if (paramsProp !== undefined) {
152
- obj[e] = paramsProp
153
- }
154
- }
155
- return obj
156
- }
157
-
158
- /**
159
- * Overwrites object properties with another
160
- */
161
- export const mergeIfExisted = (a, b) => {
162
- if (isObjectLike(a) && isObjectLike(b)) return deepMerge(a, b)
163
- return a || b
164
- }
165
-
166
- /**
167
- * Merges array prototypes
168
- */
169
- export const mergeArray = (arr) => {
170
- return arr.reduce((a, c) => deepMerge(a, deepClone(c)), {})
171
- }
172
-
173
- /**
174
- * Merges array prototypes
175
- */
176
- export const mergeAndCloneIfArray = obj => {
177
- return isArray(obj) ? mergeArray(obj) : deepClone(obj)
178
- }
179
-
180
- /**
181
- * Overwrites object properties with another
182
- */
183
- export const flattenRecursive = (param, prop, stack = []) => {
184
- const objectized = mergeAndCloneIfArray(param)
185
- stack.push(objectized)
186
-
187
- const protoOfProto = objectized[prop]
188
- if (protoOfProto) flattenRecursive(protoOfProto, prop, stack)
189
-
190
- delete objectized[prop]
191
-
192
- return stack
193
- }
@@ -1,119 +0,0 @@
1
- 'use strict'
2
-
3
- import { isArray, isFunction, isObject } from './object'
4
-
5
- export const generateHash = () => Math.random().toString(36).substring(2)
6
-
7
- // hashing
8
- export const protoStackRegistry = {}
9
- export const protoCachedRegistry = {}
10
-
11
- window.protoStackRegistry = protoStackRegistry
12
- window.protoCachedRegistry = protoCachedRegistry
13
-
14
- export const getHashedProto = proto => {
15
- return protoStackRegistry[proto.__hash]
16
- }
17
-
18
- export const setHashedProto = (proto, stack) => {
19
- const hash = generateHash()
20
- proto.__hash = hash
21
- protoStackRegistry[hash] = stack
22
- return protoStackRegistry[hash]
23
- }
24
-
25
- export const getProtoStackRegistry = (proto, stack) => {
26
- if (proto.__hash) {
27
- return stack.concat(getHashedProto(proto))
28
- } else {
29
- setHashedProto(proto, stack)
30
- }
31
- return stack // .concat(hashedProto)
32
- }
33
-
34
- // stacking
35
- export const extractArrayProto = (proto, stack) => {
36
- proto.forEach(each => flattenProto(each, stack))
37
- return stack
38
- }
39
-
40
- export const deepProto = (proto, stack) => {
41
- const protoOflattenProto = proto.proto
42
- if (protoOflattenProto) {
43
- flattenProto(protoOflattenProto, stack)
44
- }
45
- return stack
46
- }
47
-
48
- export const flattenProto = (proto, stack) => {
49
- if (!proto) return stack
50
- if (isArray(proto)) return extractArrayProto(proto, stack)
51
- stack.push(proto)
52
- if (proto.proto) deepProto(proto, stack)
53
- return stack
54
- }
55
-
56
- // merging
57
- export const deepCloneProto = obj => {
58
- const o = {}
59
- for (const prop in obj) {
60
- if (['parent', 'node', '__element', '__root', '__key'].indexOf(prop) > -1) continue
61
- const objProp = obj[prop]
62
- if (isObject(objProp)) {
63
- o[prop] = deepCloneProto(objProp)
64
- } else if (isArray(objProp)) {
65
- o[prop] = objProp.map(x => x)
66
- } else o[prop] = objProp
67
- }
68
- return o
69
- }
70
-
71
- export const deepMergeProto = (element, proto) => {
72
- for (const e in proto) {
73
- if (['parent', 'node', '__element', '__root'].indexOf(e) > -1) continue
74
- const elementProp = element[e]
75
- const protoProp = proto[e]
76
- if (elementProp === undefined) {
77
- element[e] = protoProp
78
- } else if (isObject(elementProp) && isObject(protoProp)) {
79
- deepMergeProto(elementProp, protoProp)
80
- } else if (isArray(elementProp) && isArray(protoProp)) {
81
- element[e] = elementProp.concat(protoProp)
82
- } else if (isArray(elementProp) && isObject(protoProp)) {
83
- const obj = deepMergeProto({}, elementProp)
84
- element[e] = deepMergeProto(obj, protoProp)
85
- } else if (elementProp === undefined && isFunction(protoProp)) {
86
- element[e] = protoProp
87
- }
88
- }
89
- return element
90
- }
91
-
92
- export const cloneAndMergeArrayProto = stack => {
93
- return stack.reduce((a, c) => {
94
- return deepMergeProto(a, deepCloneProto(c))
95
- }, {})
96
- }
97
-
98
- // joint stacks
99
- export const jointStacks = (protoStack, childProtoStack) => {
100
- return []
101
- .concat(protoStack.slice(0, 1))
102
- .concat(childProtoStack.slice(0, 1))
103
- .concat(protoStack.slice(1))
104
- .concat(childProtoStack.slice(1))
105
- }
106
-
107
- // init
108
- export const getProtoStack = proto => {
109
- if (!proto) return []
110
- if (proto.__hash) return getHashedProto(proto)
111
- const stack = flattenProto(proto, [])
112
- // console.log(stack)
113
- return getProtoStackRegistry(proto, stack)
114
- }
115
-
116
- export const getProtoMerged = proto => {
117
- const stack = getProtoStack(proto)
118
- return cloneAndMergeArrayProto(stack)
119
- }
@@ -1,151 +0,0 @@
1
- ### Version 4.0.0 (2018-01-28) ###
2
-
3
- - Added: Support for ES2018. The only change needed was recognizing the `s`
4
- regex flag.
5
- - Changed: _All_ tokens returned by the `matchToToken` function now have a
6
- `closed` property. It is set to `undefined` for the tokens where “closed”
7
- doesn’t make sense. This means that all tokens objects have the same shape,
8
- which might improve performance.
9
-
10
- These are the breaking changes:
11
-
12
- - `'/a/s'.match(jsTokens)` no longer returns `['/', 'a', '/', 's']`, but
13
- `['/a/s']`. (There are of course other variations of this.)
14
- - Code that rely on some token objects not having the `closed` property could
15
- now behave differently.
16
-
17
-
18
- ### Version 3.0.2 (2017-06-28) ###
19
-
20
- - No code changes. Just updates to the readme.
21
-
22
-
23
- ### Version 3.0.1 (2017-01-30) ###
24
-
25
- - Fixed: ES2015 unicode escapes with more than 6 hex digits are now matched
26
- correctly.
27
-
28
-
29
- ### Version 3.0.0 (2017-01-11) ###
30
-
31
- This release contains one breaking change, that should [improve performance in
32
- V8][v8-perf]:
33
-
34
- > So how can you, as a JavaScript developer, ensure that your RegExps are fast?
35
- > If you are not interested in hooking into RegExp internals, make sure that
36
- > neither the RegExp instance, nor its prototype is modified in order to get the
37
- > best performance:
38
- >
39
- > ```js
40
- > var re = /./g;
41
- > re.exec(''); // Fast path.
42
- > re.new_property = 'slow';
43
- > ```
44
-
45
- This module used to export a single regex, with `.matchToToken` bolted
46
- on, just like in the above example. This release changes the exports of
47
- the module to avoid this issue.
48
-
49
- Before:
50
-
51
- ```js
52
- import jsTokens from "js-tokens"
53
- // or:
54
- var jsTokens = require("js-tokens")
55
- var matchToToken = jsTokens.matchToToken
56
- ```
57
-
58
- After:
59
-
60
- ```js
61
- import jsTokens, {matchToToken} from "js-tokens"
62
- // or:
63
- var jsTokens = require("js-tokens").default
64
- var matchToToken = require("js-tokens").matchToToken
65
- ```
66
-
67
- [v8-perf]: http://v8project.blogspot.se/2017/01/speeding-up-v8-regular-expressions.html
68
-
69
-
70
- ### Version 2.0.0 (2016-06-19) ###
71
-
72
- - Added: Support for ES2016. In other words, support for the `**` exponentiation
73
- operator.
74
-
75
- These are the breaking changes:
76
-
77
- - `'**'.match(jsTokens)` no longer returns `['*', '*']`, but `['**']`.
78
- - `'**='.match(jsTokens)` no longer returns `['*', '*=']`, but `['**=']`.
79
-
80
-
81
- ### Version 1.0.3 (2016-03-27) ###
82
-
83
- - Improved: Made the regex ever so slightly smaller.
84
- - Updated: The readme.
85
-
86
-
87
- ### Version 1.0.2 (2015-10-18) ###
88
-
89
- - Improved: Limited npm package contents for a smaller download. Thanks to
90
- @zertosh!
91
-
92
-
93
- ### Version 1.0.1 (2015-06-20) ###
94
-
95
- - Fixed: Declared an undeclared variable.
96
-
97
-
98
- ### Version 1.0.0 (2015-02-26) ###
99
-
100
- - Changed: Merged the 'operator' and 'punctuation' types into 'punctuator'. That
101
- type is now equivalent to the Punctuator token in the ECMAScript
102
- specification. (Backwards-incompatible change.)
103
- - Fixed: A `-` followed by a number is now correctly matched as a punctuator
104
- followed by a number. It used to be matched as just a number, but there is no
105
- such thing as negative number literals. (Possibly backwards-incompatible
106
- change.)
107
-
108
-
109
- ### Version 0.4.1 (2015-02-21) ###
110
-
111
- - Added: Support for the regex `u` flag.
112
-
113
-
114
- ### Version 0.4.0 (2015-02-21) ###
115
-
116
- - Improved: `jsTokens.matchToToken` performance.
117
- - Added: Support for octal and binary number literals.
118
- - Added: Support for template strings.
119
-
120
-
121
- ### Version 0.3.1 (2015-01-06) ###
122
-
123
- - Fixed: Support for unicode spaces. They used to be allowed in names (which is
124
- very confusing), and some unicode newlines were wrongly allowed in strings and
125
- regexes.
126
-
127
-
128
- ### Version 0.3.0 (2014-12-19) ###
129
-
130
- - Changed: The `jsTokens.names` array has been replaced with the
131
- `jsTokens.matchToToken` function. The capturing groups of `jsTokens` are no
132
- longer part of the public API; instead use said function. See this [gist] for
133
- an example. (Backwards-incompatible change.)
134
- - Changed: The empty string is now considered an “invalid” token, instead an
135
- “empty” token (its own group). (Backwards-incompatible change.)
136
- - Removed: component support. (Backwards-incompatible change.)
137
-
138
- [gist]: https://gist.github.com/lydell/be49dbf80c382c473004
139
-
140
-
141
- ### Version 0.2.0 (2014-06-19) ###
142
-
143
- - Changed: Match ES6 function arrows (`=>`) as an operator, instead of its own
144
- category (“functionArrow”), for simplicity. (Backwards-incompatible change.)
145
- - Added: ES6 splats (`...`) are now matched as an operator (instead of three
146
- punctuations). (Backwards-incompatible change.)
147
-
148
-
149
- ### Version 0.1.0 (2014-03-08) ###
150
-
151
- - Initial release.
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.