API-CHANGES.txt 11 KB

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