API-CHANGES.txt 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. 0.18.0:
  2. * Remove class RethrowErrorHandler (hack for cli before 0.12.3).
  3. * Add Kernel-Dag package with abstract DAG-node and DAG-node visitor.
  4. * Some internal API changes in Compiler-* (including the move to DAG-node).
  5. - Object >>
  6. - throw:
  7. 0.17.0:
  8. * Remove classes InterfacingObject, PlatformInterface.
  9. * Deprecate $boot.nil (use $boot.nilAsReceiver).
  10. + amber/boot api >>
  11. + nilAsReceiver
  12. - NativeFunction class >>
  13. - constructor:
  14. - constructor:value:
  15. - constructor:value:value:
  16. - constructor:value:value:value:
  17. 0.16.1:
  18. * Deprecate $boot.dnu (use $boot.nilAsClass).
  19. + amber/boot api >>
  20. + nilAsClass
  21. 0.16.0:
  22. * Deprecate ClassBuilder >> setupClass:
  23. * $core.initialize now returns a Promise
  24. * $core.addClass now returns the class
  25. + amber/boot api >>
  26. + send2
  27. + traverseClassTree
  28. + Promise class >>
  29. + new
  30. - amber/boot api >>
  31. - wrapClassName
  32. - send
  33. - allSubclasses
  34. - AbstractCodeGenerator
  35. - classNameFor:
  36. 0.15.1:
  37. * Thenable class added
  38. * Promise class added, wraps JS Promise, subclass of Thenable
  39. + Thenable >>
  40. + catch:
  41. + on:do:
  42. + on:do:catch:
  43. + then:
  44. + then:catch:
  45. + then:on:do:
  46. + then:on:do:catch:
  47. + JSObjectProxy >>
  48. + catch:
  49. + on:do:
  50. + on:do:catch:
  51. + then:
  52. + then:catch:
  53. + then:on:do:
  54. + then:on:do:catch:
  55. + amber/boot api
  56. + seamless
  57. + Promise class >>
  58. + new:
  59. + forBlock:
  60. + value:
  61. + signal:
  62. + all:
  63. + any:
  64. 0.14.18:
  65. * Some internal API changes in Compiler-*.
  66. 0.14.14:
  67. * InterfacingObject >> ajax: deprecated
  68. * PlatformInterface class deprecated
  69. * Class BrowserInterface removed
  70. * Class Terminal, BrowserTerminal added
  71. * Class Platform, BrowserPlatform added
  72. + Environment >>
  73. + renamePackage:to:
  74. + Platform class >>
  75. + globals
  76. + newXhr
  77. + Terminal class >>
  78. + alert:
  79. + confirm:
  80. + prompt:
  81. + prompt:default:
  82. SmalltalkImage >>
  83. + existsJsGlobal:
  84. - PlatformInterface class >>
  85. - initialize
  86. - setWorker:
  87. 0.14.12:
  88. + JSObjectProxy >>
  89. + putOn:
  90. + ProtoStream >>
  91. + nextPutJSObject:
  92. 0.14.11:
  93. * Basic streaming protocol extracted from Stream to ProtoStream
  94. + Object >>
  95. + in:
  96. + JSObjectProxy >>
  97. + in:
  98. 0.14.10:
  99. + JSObjectProxy class >>
  100. + addObjectVariablesTo:ofProxy:
  101. + compareJSObjectOfProxy:withProxy:
  102. + forwardMessage:withArguments:ofProxy:
  103. + jsObject:ofProxy:
  104. + lookupProperty:ofProxy:
  105. - JSObjectProxy >>
  106. - jsObject:
  107. - lookupProperty:
  108. - compareJSObjectWith:
  109. - addObjectVariablesTo:
  110. - forwardMessage:withArguments:
  111. 0.14.4:
  112. + AmdExporter >>
  113. + importsForOutput:
  114. + AbstractCodeGenerator >>
  115. + currentPackage
  116. + currentPackage:
  117. + Compiler >>
  118. + currentPackage
  119. + currentPackage:
  120. + compile:forClass:protocol:
  121. + compileNode:forClass:package:
  122. + SemanticAnalyzer >>
  123. + thePackage
  124. + thePackage:
  125. + isVariableUndefined:inPackage:
  126. - Compiler >>
  127. - compile:
  128. - compile:forClass:
  129. - compileExpression:
  130. - SemanticAnalyzer >>
  131. - isVariableGloabllyUndefined:
  132. - Behavior >>
  133. - compile:
  134. 0.14.3:
  135. * #heliosClass is now #classTag
  136. + Compiler >>
  137. + eval:forPackage:
  138. + Behavior >>
  139. + packageOfProtocol:
  140. + Exporter >>
  141. + exportPackageContextOf:on:
  142. + exportPackageImportsOf:on:
  143. + Package >>
  144. + basicImports
  145. + imports
  146. + imports:
  147. + importsDefinition
  148. + importsFromJson:
  149. + importsAsJson
  150. + sortedImportsAsArray
  151. + validateImports:
  152. + Package class >>
  153. + named:imports:transport:
  154. + Association >>
  155. + importsString
  156. + String >>
  157. + importsString
  158. + ProtoObject >>
  159. + ifNil:
  160. + ifNil:ifNotNil:
  161. + ifNotNil:
  162. + ifNotNil:ifNil:
  163. + isNil
  164. + notNil
  165. - Object >>
  166. - ifNil:
  167. - ifNil:ifNotNil:
  168. - ifNotNil:
  169. - ifNotNil:ifNil:
  170. - isNil
  171. - notNil
  172. 0.14.1:
  173. * NativeFunction class >> constructor:[value:...] deprecated
  174. + NativeFunction class >>
  175. + constructorNamed:
  176. + constructorNamed:value:
  177. + constructorNamed:value:value:
  178. + constructorNamed:value:value:value:
  179. + constructorOf:
  180. + constructorOf:value:
  181. + constructorOf:value:value:
  182. + constructorOf:value:value:value:
  183. + functionNamed:
  184. + functionNamed:value:
  185. + functionNamed:value:value:
  186. + functionNamed:value:value:value:
  187. + functionNamed:valueWithArgs:
  188. + functionOf:
  189. + functionOf:value:
  190. + functionOf:value:value:
  191. + functionOf:value:value:value:
  192. + functionOf:valueWithArgs:
  193. + methodOf:this:
  194. + methodOf:this:value:
  195. + methodOf:this:value:value:
  196. + methodOf:this:value:value:value:
  197. + methodOf:this:valueWithArgs:
  198. + SmalltalkImage >>
  199. + optOut:
  200. + cancelOptOut:
  201. 0.14.0:
  202. + Object >>
  203. + asJQuery
  204. + asJQueryInContext:
  205. + BlockClosure >>
  206. + asJQuery
  207. + asJQueryInContext:
  208. - AnnouncementSubscription >>
  209. - block
  210. - block:
  211. - Collection >>
  212. - contains:
  213. - String >>
  214. - asSelector
  215. - asJavaScriptSelector
  216. - SmalltalkImage >>
  217. - at:
  218. - at:ifAbsent:
  219. - at:put:
  220. - current
  221. - vm
  222. - createPackage:properties:
  223. - MethodContext >>
  224. - temps
  225. - Object >>
  226. - try:catch:
  227. 0.13.2:
  228. + SourceArea class >>
  229. + codeMirror
  230. 0.13.1:
  231. * String >> asSelector is now String >> asJavaScriptMethodName
  232. * String >> asJavaScriptSelector is now String >> asJavaScriptPropertyName
  233. * smalltalk.selector is now smalltalk.st2js
  234. * smalltalk.convertSelector is now smalltalk.js2st
  235. * Collection >> ifEmpty:ifNotEmpty: family passes self to ifNotEmpty: block
  236. * Smalltalk vm is now Smalltalk core
  237. * boot.js's .vm is now .api
  238. * amber load sets' .vm is now .api
  239. * Internal variables smalltalk/globals/_st are now $core/$globals/$recv
  240. + smalltalk.
  241. + accessJavaScript
  242. + Object >>
  243. + postMessageTo:
  244. + postMessageTo:origin:
  245. + Class >>
  246. + heliosClass
  247. + SmalltalkImage >>
  248. + core
  249. + amber/boot exports
  250. + api
  251. + amber/{devel,deploy,lang} exports
  252. + api
  253. - ProtoObject class >>
  254. - heliosClass
  255. - Object class >>
  256. - heliosClass
  257. 0.12.6:
  258. + String >>
  259. + value:
  260. + ProtocolAnnouncement >>
  261. + package
  262. + Behavior >>
  263. + isTestClass
  264. + Package >>
  265. + isTestPackage
  266. + amber/{devel,deploy,lang} exports
  267. + nil
  268. + amber/helpers exports
  269. + nil
  270. 0.12.4:
  271. * Package Canvas renamed to Web
  272. * Object >> try:catch: deprecated in favour of BlockClosure >> tryCatch:
  273. + Announcer >>
  274. + on:do:for:
  275. + Node >>
  276. + navigationNodeAt:ifAbsent:
  277. + BlockClosure >>
  278. + tryCatch:
  279. + Environment >>
  280. + evaluate:for:
  281. + AmberCli >>
  282. + version:
  283. + Object >>
  284. + deprecatedAPI:
  285. - Environment >>
  286. - eval:on:
  287. - evaluateString:on:
  288. 0.12.3:
  289. * Package Import-Export renamed to Kernel-ImportExport
  290. * A dozen of methods moved from Object to ProtoObject
  291. * HashedCollection >> at:ifAbsentPut: pushed up to SequenceableCollection
  292. * HashedCollection >> , is now allowed (removed shouldNotImplement)
  293. * HashedCollection and Dictionary both subclasses of AssociativeCollection
  294. * Smalltalk class moved to SmalltalkImage class, Smalltalk is now global var
  295. * Smalltalk current deprecated in favour of Smalltalk
  296. * Smalltalk at:[put:] deprecated in favour of Smalltalk globals at:[put:]
  297. * <smalltalk.ClassName> deprecated in favour of <globals.ClassName>
  298. + CompiledMethod >>
  299. + defaultProtocol
  300. + Behavior >>
  301. + compile:protocol:
  302. + removeProtocolIfEmpty:
  303. + Package >>
  304. + load
  305. + loadFromNamespace:
  306. + Package class >>
  307. + load:
  308. + load:fromNamespace:
  309. + PackageTransport >> load
  310. + PackageHandler >> load:
  311. + AmdPackageHandler >> load:
  312. + Set >> removeAll
  313. + AssociativeCollection class
  314. + BucketStore class
  315. + SmalltalkImage >>
  316. + globals
  317. + vm
  318. + settings
  319. + Setting class
  320. + String >>
  321. + asSetting
  322. + asSettingIfAbsent:
  323. + settingValue
  324. + settingValueIfAbsent:
  325. + settingValue:
  326. + Smalltalk global variable
  327. - CompiledMethod >>
  328. - category: (use #protocol:)
  329. - defaultCategory
  330. - Behavior >> compile:category:
  331. - HTMLCanvas class >>
  332. - browserVersion
  333. - isMSIE
  334. - isMozilla
  335. - isOpera
  336. - isWebkit
  337. 0.12.2:
  338. * Collection >> contains: is deprecated in favor of anySatisfy:
  339. + Announcer >> on:doOnce:
  340. + String >>
  341. + uriEncoded
  342. + uriDecoded
  343. + uriComponentEncoded
  344. + uriComponentDecoded
  345. + Collection >>
  346. + removeAll
  347. + ifEmpty:ifNotEmpty:
  348. + ifNotEmpty:ifEmpty:
  349. + anyOne
  350. + noneSatisfy:
  351. + anySatisfy:
  352. + allSatisfy:
  353. 0.12.0:
  354. * SmalltalkMethodContext.prototype.fillBlock() takes a third 'index' parameter
  355. * Existing classes moved to new KernelInfrastructure package
  356. * ImporterExporter
  357. * are now StreamExporters
  358. * aware of AMD namespaces
  359. * support transport types and commit channels
  360. + Node >>
  361. + nextChild
  362. + method
  363. + postCopy
  364. + isCascadeNode
  365. + isLastChild
  366. + BlockNode >>
  367. + nextNode:
  368. + nextChild
  369. + SendNode >>
  370. + isCascadeSendNode
  371. + shouldBeAliased
  372. + CompiledMethod >> sendTo:arguments:
  373. + Array >>
  374. + addFirst:
  375. + removeLast
  376. + Number >>
  377. + ceiling
  378. + floor
  379. + asNumber
  380. + //
  381. + cos
  382. + sin
  383. + tan
  384. + arcCos
  385. + arcSin
  386. + arcTan
  387. + log
  388. + log:
  389. + raisedTo:
  390. + sign
  391. + **
  392. + ln
  393. + e
  394. + String class >> esc
  395. + String >>
  396. + asMutator
  397. + capitalized
  398. + isCapitalized
  399. + JSProxy >> printString
  400. + Behavior >>
  401. + ownProtocols
  402. + ownMethods
  403. + JSStream >> nextPutSendIndexFor:
  404. + InterfacingObject class
  405. + Interpreter class
  406. + DocumentFragmentTag class
  407. + AbstractExporter class
  408. + PlatformInterface class
  409. - Node >> extent
  410. - JSStream >> nextPutStatement:with:
  411. - Smalltalk.installSuperclass()
  412. - ClassReferenceNode class (now handled via VariableNode)
  413. 0.11.0:
  414. * AnnouncementSubscription use #valuable: instead of #block: (deprecated)
  415. * AbstractCodeGenerator inherits from Object, not NodeVisitor
  416. * Object>>printString
  417. * replace >>printString with >>printOn:
  418. * replace >>storeString with >>printString
  419. * PackageLoader is now PackageHandler (>>commit: >>setupPackagenamed:prefix: >>ajaxPutAt:data:
  420. * Package>>fetch: is now Package>>load:
  421. * Package>>fetch:prefix: is now Package>>load:prefix:
  422. * Queue>>front replaced by Queue>>next
  423. * Queue>>frontIfAbsent: replaced by Queue>>nextIfAbsent:
  424. * Queue>>back: replaced by Queue>>nextPut:
  425. * smalltalk.addMethod() does not use explicit JS selector
  426. * JSObjectProxy>>canForwardMessage: replaced by use of JSObjectProxy>>lookupProperty: with asJavaScriptSelector
  427. * JSObjectProxy>>forwardMessage: replaced by explicit JSObjectProxy>>forwardMessage:withArguments:
  428. * String>>asJavaScriptSelector moved to Kernel-Objects package
  429. + Object>>asString
  430. + Object>>putOn:
  431. + String>>isVowel
  432. + Collection>>putOn:
  433. + CharacterArray>>putOn:
  434. + Stream>><<
  435. + Stream>>write
  436. + SequenceableCollection>>newStream
  437. + SequenceableCollection>>readStream
  438. + SequenceableCollection>>stream
  439. + SequenceableCollection>>streamClass
  440. + SequenceableCollection>>writeStream
  441. + Collection>>isImmutable
  442. + Stream>>nextPutString:
  443. + StringStream>>nextPutString:
  444. + JSStream>>nextPutClassRefFunction:
  445. + String>>crlfSanitized
  446. + inlined Block now also responds to >>value:
  447. + Parser: split literal into runtimeLiteral and parseTimeLiteral
  448. + Parser: write #(4 #(5 6 #()) 7) as #(4 (5 6 ()) 7)
  449. + Parser: write #(#on:do: #Object) as #(on:do: Object)
  450. + Parser: Symbols for binarie selectores
  451. + Package>>commit
  452. + AIContext>>initializeLocals
  453. + ASTInterpreter>>withBlockContext:
  454. + smalltalk.allSelectors()
  455. + Object>>isCompiledMethod
  456. + Object>>isPackage
  457. + Object>>isBehavior
  458. + ClassMoved Announcemen class
  459. + Behavior>>includesBehavior:
  460. + Environment>>classes
  461. + Environment>>allSelectors
  462. + Environment>>removeProtocol:
  463. + Environment>>renameProtocol:to:in:
  464. + CompiledMethod>>protocol:
  465. + Smalltalk>>globalJsVariables
  466. + Smalltalk>>addGlobalJsVariable:
  467. + Smalltalk>>deleteGlobalJsVariable:
  468. - Object>>storeOn:
  469. - Object>>log:block:
  470. - Object>>printNl
  471. - Compiler-IR.st >>javascriptSelector
  472. - Compiler-IR.st >>nextPutVar:
  473. - Kernel-Collections.st >>asSuperSelector
  474. - Collection>>readStream
  475. - Collection>>stream
  476. - Collection>>streamClass
  477. - Collection>>writeStream
  478. - Symbol class (replaced with String)
  479. - IRInlinedNonLocalReturn class
  480. - IRInlinedSend>>nonLocalReturnInliner
  481. - IRNonLocalReturnInliner class
  482. - Package>>dependencies
  483. - Package>>dependencies:
  484. - Package>>properties
  485. - Package>>jsProperties
  486. - Package>>jsProperties:
  487. - Package>>propertiesAsJSON
  488. - Package>>propertyAt:
  489. - Package>>propertyAt:ifAbsent:
  490. - Package>>propertyAt:put:
  491. - Browser>>ajaxPutAt:data: