Skip to content

Releases: kurapica/PLoop

Fix inner request, also simple it's param style

02 Apr 15:19
Compare
Choose a tag to compare
  • Fix the inner request, it won't use the http method from the raw quest if the params is specific.
  • The default template system in the web, can use tables as params for inner request or embed pages like @[~/test { id = 1}], no need use the parentheses

Fix the web system

01 Apr 15:40
Compare
Choose a tag to compare
  • The System.Web.HttpSession have a new property "Context" used to get the context where it's generated.
  • Fix the spell error for method "TrySetItems" of System.Web.ICacheSessionStorageProvider.
  • Struct.GetErrorMessage will only have one return value now, others are discarded.
  • Fix the System.Web.__Form__ can't validate single value for array types.
  • Send the Json data in an inner request will just return the json data to where the context:ProcessInnerRequest(...) is called, the system won't try to serialize and output it.
  • The inner request will use the raw request's http method if not specific, also will use the raw request's querystring or form if not specific.
  • The System.Web.ParseString will also convert the Lua table(object) values to json format string, so we can use the lua table in the template directly.
  • Fix the System.Web.JsonFormatProvider fail to parse 1-byte json data.

Cache system improve

26 Mar 01:35
Compare
Choose a tag to compare

System.Data.Cache has a new abstract method: TrySet, used to set the key value pair only if the key doesn't existed, it's used to replace the Exist-Set operation, so the operation could be thread-safe.

Changed:

  • System.Data.Cache
  • System.Web.ISessionStorageProvider
  • System.Web.ICacheSessionStorageProvider

Dictionary Struct Type Added

19 Mar 16:26
Compare
Choose a tag to compare

Added

  • dictionary struct type can be created like struct { [String] = Number }, used to specific the type of the keys and values
  • Struct.GetDictionaryKey & Struct.GetDictionaryValue added to fetch the types of the dict struct types
  • IDictionary.ToDict method added, used to save the key-value pairs to a new dictionary

Changed

  • System.Serialization added support to the dict struct type, the key must be serializable custom struct type and the value type must be serializable, but nothing stop you convert them to Dictionary for serialization.
  • System.Web.__Form__ will refuse to use dict struct type.
  • System.Web.JsonFormatProvider added check on member or dict struct type, so it won't check all elements to find out the value is an array.

First release

17 Mar 14:08
Compare
Choose a tag to compare
1.0.0

Fix read me