@react-native-ohos/react-native-mmkv 3.3.1-rc.1

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 (1114) hide show
  1. package/MMKV/Core/CMakeLists.txt +172 -0
  2. package/MMKV/Core/CodedInputData.cpp +252 -0
  3. package/MMKV/Core/CodedInputData.h +87 -0
  4. package/MMKV/Core/CodedInputDataCrypt.cpp +280 -0
  5. package/MMKV/Core/CodedInputDataCrypt.h +87 -0
  6. package/MMKV/Core/CodedInputDataCrypt_OSX.cpp +62 -0
  7. package/MMKV/Core/CodedInputData_OSX.cpp +92 -0
  8. package/MMKV/Core/CodedOutputData.cpp +186 -0
  9. package/MMKV/Core/CodedOutputData.h +88 -0
  10. package/MMKV/Core/Core.xcodeproj/project.pbxproj +707 -0
  11. package/MMKV/Core/Core.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  12. package/MMKV/Core/Core.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  13. package/MMKV/Core/Core.xcodeproj/xcshareddata/xcschemes/Core.xcscheme +67 -0
  14. package/MMKV/Core/Core.xcodeproj/xcshareddata/xcschemes/MMKVWatchCore.xcscheme +67 -0
  15. package/MMKV/Core/InterProcessLock.cpp +186 -0
  16. package/MMKV/Core/InterProcessLock.h +119 -0
  17. package/MMKV/Core/InterProcessLock_Android.cpp +103 -0
  18. package/MMKV/Core/InterProcessLock_Win32.cpp +108 -0
  19. package/MMKV/Core/KeyValueHolder.cpp +236 -0
  20. package/MMKV/Core/KeyValueHolder.h +122 -0
  21. package/MMKV/Core/MMBuffer.cpp +210 -0
  22. package/MMKV/Core/MMBuffer.h +111 -0
  23. package/MMKV/Core/MMKV.cpp +1702 -0
  24. package/MMKV/Core/MMKV.h +595 -0
  25. package/MMKV/Core/MMKVLog.cpp +127 -0
  26. package/MMKV/Core/MMKVLog.h +86 -0
  27. package/MMKV/Core/MMKVLog_Android.cpp +134 -0
  28. package/MMKV/Core/MMKVMetaInfo.hpp +99 -0
  29. package/MMKV/Core/MMKVPredef.h +293 -0
  30. package/MMKV/Core/MMKV_Android.cpp +261 -0
  31. package/MMKV/Core/MMKV_IO.cpp +1905 -0
  32. package/MMKV/Core/MMKV_IO.h +57 -0
  33. package/MMKV/Core/MMKV_OSX.cpp +423 -0
  34. package/MMKV/Core/MMKV_OSX.h +57 -0
  35. package/MMKV/Core/MemoryFile.cpp +603 -0
  36. package/MMKV/Core/MemoryFile.h +194 -0
  37. package/MMKV/Core/MemoryFile_Android.cpp +236 -0
  38. package/MMKV/Core/MemoryFile_Linux.cpp +125 -0
  39. package/MMKV/Core/MemoryFile_OSX.cpp +142 -0
  40. package/MMKV/Core/MemoryFile_Win32.cpp +554 -0
  41. package/MMKV/Core/MiniPBCoder.cpp +672 -0
  42. package/MMKV/Core/MiniPBCoder.h +151 -0
  43. package/MMKV/Core/MiniPBCoder_OSX.cpp +237 -0
  44. package/MMKV/Core/PBEncodeItem.hpp +104 -0
  45. package/MMKV/Core/PBUtility.cpp +61 -0
  46. package/MMKV/Core/PBUtility.h +148 -0
  47. package/MMKV/Core/ScopedLock.hpp +69 -0
  48. package/MMKV/Core/ThreadLock.cpp +75 -0
  49. package/MMKV/Core/ThreadLock.h +81 -0
  50. package/MMKV/Core/ThreadLock_Win32.cpp +89 -0
  51. package/MMKV/Core/aes/AESCrypt.cpp +273 -0
  52. package/MMKV/Core/aes/AESCrypt.h +112 -0
  53. package/MMKV/Core/aes/openssl/openssl_aes-armv4.S +1243 -0
  54. package/MMKV/Core/aes/openssl/openssl_aes.h +130 -0
  55. package/MMKV/Core/aes/openssl/openssl_aes_core.cpp +1044 -0
  56. package/MMKV/Core/aes/openssl/openssl_aes_locl.h +38 -0
  57. package/MMKV/Core/aes/openssl/openssl_aesv8-armx.S +308 -0
  58. package/MMKV/Core/aes/openssl/openssl_arm_arch.h +84 -0
  59. package/MMKV/Core/aes/openssl/openssl_cfb128.cpp +97 -0
  60. package/MMKV/Core/aes/openssl/openssl_md32_common.h +254 -0
  61. package/MMKV/Core/aes/openssl/openssl_md5.h +49 -0
  62. package/MMKV/Core/aes/openssl/openssl_md5_dgst.cpp +166 -0
  63. package/MMKV/Core/aes/openssl/openssl_md5_locl.h +75 -0
  64. package/MMKV/Core/aes/openssl/openssl_md5_one.cpp +30 -0
  65. package/MMKV/Core/aes/openssl/openssl_opensslconf.h +271 -0
  66. package/MMKV/Core/core.vcxproj +288 -0
  67. package/MMKV/Core/core.vcxproj.filters +150 -0
  68. package/MMKV/Core/crc32/Checksum.h +75 -0
  69. package/MMKV/Core/crc32/crc32_armv8.cpp +134 -0
  70. package/MMKV/Core/crc32/zlib/CMakeLists.txt +60 -0
  71. package/MMKV/Core/crc32/zlib/crc32.cpp +55 -0
  72. package/MMKV/Core/crc32/zlib/crc32.h +48 -0
  73. package/MMKV/Core/crc32/zlib/zconf.h +380 -0
  74. package/MMKV/Core/crc32/zlib/zutil.h +25 -0
  75. package/MMKV/README.md +354 -0
  76. package/README.md +5 -0
  77. package/cpp/MMKVManagedBuffer.h +32 -0
  78. package/cpp/MmkvHostObject.cpp +355 -0
  79. package/cpp/MmkvHostObject.h +32 -0
  80. package/cpp/MmkvLogger.h +35 -0
  81. package/cpp/NativeMmkvModule.cpp +43 -0
  82. package/cpp/NativeMmkvModule.h +38 -0
  83. package/harmony/reactNativeMMKV/BuildProfile.ets +17 -0
  84. package/harmony/reactNativeMMKV/LICENSE +20 -0
  85. package/harmony/reactNativeMMKV/NOTICE +34 -0
  86. package/harmony/reactNativeMMKV/README.OpenSource +11 -0
  87. package/harmony/reactNativeMMKV/build-profile.json5 +9 -0
  88. package/harmony/reactNativeMMKV/hvigorfile.ts +6 -0
  89. package/harmony/reactNativeMMKV/index.ets +24 -0
  90. package/harmony/reactNativeMMKV/oh-package.json5 +15 -0
  91. package/harmony/reactNativeMMKV/src/main/cpp/CMakeLists.txt +15 -0
  92. package/harmony/reactNativeMMKV/src/main/cpp/ComponentDescriptors.h +39 -0
  93. package/harmony/reactNativeMMKV/src/main/cpp/EventEmitters.cpp +41 -0
  94. package/harmony/reactNativeMMKV/src/main/cpp/EventEmitters.h +182 -0
  95. package/harmony/reactNativeMMKV/src/main/cpp/HarmonyLogger.cpp +32 -0
  96. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/.clang-format +36 -0
  97. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/.dockerignore +2 -0
  98. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/.github/FUNDING.yml +14 -0
  99. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/.github/ISSUE_TEMPLATE/bug_report.md +45 -0
  100. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/.gitmodules +3 -0
  101. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/build.gradle +54 -0
  102. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/checkstyle.xml +156 -0
  103. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/debug.keystore +0 -0
  104. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradle/android-publish-private.gradle +207 -0
  105. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradle/android-publish.gradle +276 -0
  106. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradle/build_library.gradle +62 -0
  107. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradle/check.gradle +76 -0
  108. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradle/wrapper/gradle-wrapper.jar +0 -0
  109. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradle/wrapper/gradle-wrapper.properties +6 -0
  110. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradle.properties +25 -0
  111. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradlew +172 -0
  112. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/gradlew.bat +84 -0
  113. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/CMakeLists.txt +56 -0
  114. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/build.gradle +238 -0
  115. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/gradle.properties +2 -0
  116. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/proguard-rules.pro +9 -0
  117. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/androidTest/AndroidManifest.xml +11 -0
  118. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/androidTest/java/com/tencent/mmkv/MMKVTest.java +270 -0
  119. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/androidTest/java/com/tencent/mmkv/MMKVTestService.java +79 -0
  120. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/AndroidManifest.xml +3 -0
  121. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/aidl/com/tencent/mmkv/ParcelableMMKV.aidl +4 -0
  122. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/cpp/flutter-bridge.cpp +706 -0
  123. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/cpp/native-bridge.cpp +1244 -0
  124. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKV.java +2024 -0
  125. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKVContentChangeNotification.java +34 -0
  126. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKVContentProvider.java +174 -0
  127. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKVHandler.java +63 -0
  128. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKVLogLevel.java +52 -0
  129. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKVProcessUtil.java +100 -0
  130. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKVRecoverStrategic.java +36 -0
  131. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/NameSpace.java +214 -0
  132. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/NativeBuffer.java +36 -0
  133. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/ParcelableMMKV.java +108 -0
  134. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/UnsupportedArchitectureException.java +27 -0
  135. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvannotation/build.gradle +34 -0
  136. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvannotation/src/main/AndroidManifest.xml +3 -0
  137. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvannotation/src/main/java/dalvik/annotation/optimization/FastNative.java +104 -0
  138. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/build.gradle +116 -0
  139. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/proguard-rules.pro +24 -0
  140. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/AndroidManifest.xml +54 -0
  141. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/aidl/com/tencent/mmkvdemo/IAshmemMMKV.aidl +8 -0
  142. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/cpp/CMakeLists.txt +50 -0
  143. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/cpp/mmkvdemo.cpp +245 -0
  144. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/Baseline.java +297 -0
  145. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/BenchMarkBaseService.java +363 -0
  146. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/FakeInfo.java +67 -0
  147. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/Info.java +69 -0
  148. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/MainActivity.java +1029 -0
  149. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/MultiProcessSharedPreferences.java +710 -0
  150. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/MyApplication.java +130 -0
  151. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/MyService.java +105 -0
  152. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/MyService_1.java +92 -0
  153. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/SQLiteKV.java +143 -0
  154. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/java/com/tencent/mmkvdemo/TestParcelable.java +70 -0
  155. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/kotlin/KotlinUsecase.kt +67 -0
  156. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/drawable/ic_launcher_background.xml +170 -0
  157. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
  158. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/layout/activity_main.xml +76 -0
  159. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
  160. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
  161. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  162. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  163. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  164. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  165. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  166. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  167. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  168. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  169. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  170. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  171. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/values/colors.xml +6 -0
  172. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/values/strings.xml +3 -0
  173. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/mmkvdemo/src/main/res/values/styles.xml +11 -0
  174. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/pmd-ruleset.xml +44 -0
  175. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/proguard-rules/proguard-rules-android-lib.pro +54 -0
  176. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/proguard-rules/proguard-rules-test.pro +6 -0
  177. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Android/MMKV/settings.gradle +3 -0
  178. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/CHANGELOG.md +979 -0
  179. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/CODE_OF_CONDUCT.md +76 -0
  180. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/CONTRIBUTING.md +61 -0
  181. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CMakeLists.txt +207 -0
  182. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CodedInputData.cpp +248 -0
  183. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CodedInputData.h +86 -0
  184. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CodedInputDataCrypt.cpp +276 -0
  185. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CodedInputDataCrypt.h +86 -0
  186. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CodedInputDataCrypt_OSX.cpp +62 -0
  187. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CodedInputData_OSX.cpp +92 -0
  188. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CodedOutputData.cpp +182 -0
  189. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/CodedOutputData.h +86 -0
  190. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/Core.xcodeproj/project.pbxproj +703 -0
  191. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/Core.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  192. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/Core.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  193. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/Core.xcodeproj/xcshareddata/xcschemes/Core.xcscheme +67 -0
  194. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/Core.xcodeproj/xcshareddata/xcschemes/MMKVWatchCore.xcscheme +67 -0
  195. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/InterProcessLock.cpp +211 -0
  196. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/InterProcessLock.h +124 -0
  197. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/InterProcessLock_Android.cpp +104 -0
  198. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/InterProcessLock_Win32.cpp +108 -0
  199. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/KeyValueHolder.cpp +237 -0
  200. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/KeyValueHolder.h +122 -0
  201. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMBuffer.cpp +207 -0
  202. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMBuffer.h +119 -0
  203. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKV.cpp +1791 -0
  204. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKV.h +781 -0
  205. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKVLog.cpp +127 -0
  206. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKVLog.h +86 -0
  207. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKVLog_Android.cpp +134 -0
  208. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKVMetaInfo.hpp +99 -0
  209. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKVPredef.h +310 -0
  210. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKV_Android.cpp +365 -0
  211. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKV_IO.cpp +2049 -0
  212. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKV_IO.h +85 -0
  213. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKV_OSX.cpp +589 -0
  214. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MMKV_OSX.h +30 -0
  215. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MemoryFile.cpp +716 -0
  216. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MemoryFile.h +212 -0
  217. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MemoryFile_Android.cpp +247 -0
  218. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MemoryFile_Linux.cpp +126 -0
  219. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MemoryFile_OSX.cpp +173 -0
  220. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MemoryFile_Win32.cpp +655 -0
  221. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MiniPBCoder.cpp +668 -0
  222. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MiniPBCoder.h +150 -0
  223. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/MiniPBCoder_OSX.cpp +237 -0
  224. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/PBEncodeItem.hpp +102 -0
  225. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/PBUtility.cpp +61 -0
  226. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/PBUtility.h +148 -0
  227. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/ScopedLock.hpp +69 -0
  228. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/ThreadLock.cpp +75 -0
  229. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/ThreadLock.h +81 -0
  230. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/ThreadLock_Win32.cpp +89 -0
  231. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/AESCrypt.cpp +293 -0
  232. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/AESCrypt.h +117 -0
  233. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_aes.h +98 -0
  234. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_aes_core.cpp +1044 -0
  235. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_aes_locl.h +38 -0
  236. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_aesv8-armx.S +308 -0
  237. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_arm_arch.h +84 -0
  238. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_cfb128.cpp +97 -0
  239. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_md32_common.h +254 -0
  240. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_md5.h +49 -0
  241. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_md5_dgst.cpp +166 -0
  242. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_md5_locl.h +75 -0
  243. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_md5_one.cpp +30 -0
  244. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/aes/openssl/openssl_opensslconf.h +271 -0
  245. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/core.vcxproj +288 -0
  246. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/core.vcxproj.filters +150 -0
  247. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/crc32/CMakeLists.txt +60 -0
  248. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/crc32/Checksum.h +76 -0
  249. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/crc32/crc32_armv8.cpp +134 -0
  250. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/crc32/zlib/crc32.cpp +55 -0
  251. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/crc32/zlib/crc32.h +48 -0
  252. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/crc32/zlib/zconf.h +380 -0
  253. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Core/crc32/zlib/zutil.h +25 -0
  254. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Dockerfile +25 -0
  255. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/LICENSE.TXT +193 -0
  256. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/MMKV.podspec +40 -0
  257. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/MMKV.xcworkspace/contents.xcworkspacedata +10 -0
  258. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/MMKV.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  259. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/MMKVAppExtension.podspec +37 -0
  260. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/MMKVCore.podspec +47 -0
  261. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/MMKVWatchExtension.podspec +38 -0
  262. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Makefile +10 -0
  263. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/AppScope/app.json5 +10 -0
  264. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/AppScope/resources/base/element/string.json +8 -0
  265. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/AppScope/resources/base/media/app_icon.png +0 -0
  266. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/BuildProfile.ets +17 -0
  267. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/CHANGELOG.md +75 -0
  268. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/Index.ets +4 -0
  269. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/LICENSE +193 -0
  270. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/README.md +208 -0
  271. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/build-profile.json5 +40 -0
  272. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/consumer-rules.txt +61 -0
  273. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/example/Index.ets +686 -0
  274. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/example/Util.ets +31 -0
  275. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/hvigorfile.ts +6 -0
  276. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/obfuscation-rules.txt +18 -0
  277. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/oh-package.json5 +22 -0
  278. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/cpp/CMakeLists.txt +43 -0
  279. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/cpp/flutter-bridge.cpp +703 -0
  280. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/cpp/native_bridge.cpp +1840 -0
  281. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/cpp/types/libmmkv/index.d.ts +80 -0
  282. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/cpp/types/libmmkv/oh-package.json5 +6 -0
  283. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/ets/utils/MMKV.ets +1073 -0
  284. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/ets/utils/MMKVHandler.ets +111 -0
  285. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/ets/utils/MMKVLogLevel.ets +50 -0
  286. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/ets/utils/NativeBuffer.ets +34 -0
  287. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/ets/utils/Util.ts +24 -0
  288. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/MMKV/src/main/module.json5 +12 -0
  289. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/build-profile.json5 +62 -0
  290. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/dependencies/hvigor-4.3.0.tgz +0 -0
  291. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/dependencies/hvigor-ohos-plugin-4.3.0.tgz +0 -0
  292. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/build-profile.json5 +39 -0
  293. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/hvigorfile.ts +6 -0
  294. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/obfuscation-rules.txt +25 -0
  295. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/oh-package.json5 +13 -0
  296. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/cpp/CMakeLists.txt +54 -0
  297. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/cpp/napi_init.cpp +233 -0
  298. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/cpp/types/libentry/index.d.ts +1 -0
  299. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/cpp/types/libentry/oh-package.json5 +6 -0
  300. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/ets/Util/Baseline.ets +188 -0
  301. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/ets/Util/MyMMKVHandler.ets +76 -0
  302. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/ets/Util/Util.ets +220 -0
  303. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/ets/entryability/EntryAbility.ets +107 -0
  304. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/ets/pages/Index.ets +766 -0
  305. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/ets/process/DemoProcess.ets +31 -0
  306. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/module.json5 +38 -0
  307. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/base/element/color.json +8 -0
  308. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/base/element/string.json +16 -0
  309. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/base/media/background.png +0 -0
  310. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/base/media/foreground.png +0 -0
  311. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/base/media/layered_image.json +7 -0
  312. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/base/media/startIcon.png +0 -0
  313. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/base/profile/main_pages.json +5 -0
  314. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/en_US/element/string.json +16 -0
  315. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/main/resources/zh_CN/element/string.json +16 -0
  316. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/mock/mock-config.json5 +2 -0
  317. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/ets/test/Ability.test.ets +55 -0
  318. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/ets/test/List.test.ets +25 -0
  319. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/ets/testability/TestAbility.ets +67 -0
  320. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/ets/testability/pages/Index.ets +37 -0
  321. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ets +110 -0
  322. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/module.json5 +38 -0
  323. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/resources/base/element/color.json +8 -0
  324. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/resources/base/element/string.json +16 -0
  325. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/resources/base/media/icon.png +0 -0
  326. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/ohosTest/resources/base/profile/test_pages.json +5 -0
  327. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/test/List.test.ets +25 -0
  328. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/entry/src/test/LocalUnit.test.ets +53 -0
  329. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/hvigor/hvigor-config.json5 +21 -0
  330. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/hvigorfile.ts +6 -0
  331. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/OpenHarmony/oh-package.json5 +15 -0
  332. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/CMakeLists.txt +27 -0
  333. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/demo/CMakeLists.txt +65 -0
  334. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/demo/TestInterProcessLock.cpp +130 -0
  335. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/demo/UnitTest.cpp +272 -0
  336. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/demo/demo.cpp +1431 -0
  337. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/demo/process.cpp +78 -0
  338. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/CMakeLists.txt +87 -0
  339. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/callback.go +121 -0
  340. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/go.mod +3 -0
  341. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/golang-bridge.cpp +731 -0
  342. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/golang-bridge.h +131 -0
  343. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/mmkv.go +817 -0
  344. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/mmkv_test.go +33 -0
  345. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/test/go.mod +7 -0
  346. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/golang/test/main.go +455 -0
  347. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/src/CMakeLists.txt +83 -0
  348. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/POSIX/src/libmmkv.cpp +21 -0
  349. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/CMakeLists.txt +62 -0
  350. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/README.md +6 -0
  351. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/demo.py +368 -0
  352. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/libmmkv_python.cpp +454 -0
  353. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.appveyor.yml +35 -0
  354. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.clang-format +38 -0
  355. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.clang-tidy +77 -0
  356. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.cmake-format.yaml +73 -0
  357. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.codespell-ignore-lines +24 -0
  358. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.gitattributes +1 -0
  359. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/CODEOWNERS +9 -0
  360. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/CONTRIBUTING.md +388 -0
  361. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/ISSUE_TEMPLATE/bug-report.yml +61 -0
  362. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/ISSUE_TEMPLATE/config.yml +8 -0
  363. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/dependabot.yml +15 -0
  364. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/labeler.yml +13 -0
  365. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/labeler_merged.yml +8 -0
  366. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/matchers/pylint.json +32 -0
  367. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/pull_request_template.md +19 -0
  368. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/workflows/ci.yml +1233 -0
  369. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/workflows/configure.yml +92 -0
  370. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/workflows/format.yml +60 -0
  371. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/workflows/labeler.yml +25 -0
  372. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/workflows/pip.yml +117 -0
  373. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.github/workflows/upstream.yml +116 -0
  374. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.pre-commit-config.yaml +156 -0
  375. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/.readthedocs.yml +20 -0
  376. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/CMakeLists.txt +375 -0
  377. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/LICENSE +29 -0
  378. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/MANIFEST.in +6 -0
  379. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/README.rst +181 -0
  380. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/SECURITY.md +13 -0
  381. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/Doxyfile +21 -0
  382. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/_static/css/custom.css +3 -0
  383. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/cast/chrono.rst +81 -0
  384. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/cast/custom.rst +93 -0
  385. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/cast/eigen.rst +310 -0
  386. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/cast/functional.rst +109 -0
  387. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/cast/index.rst +43 -0
  388. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/cast/overview.rst +170 -0
  389. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/cast/stl.rst +249 -0
  390. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/cast/strings.rst +296 -0
  391. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/classes.rst +1335 -0
  392. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/embedding.rst +262 -0
  393. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/exceptions.rst +401 -0
  394. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/functions.rst +614 -0
  395. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/misc.rst +429 -0
  396. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/pycpp/index.rst +13 -0
  397. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/pycpp/numpy.rst +453 -0
  398. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/pycpp/object.rst +286 -0
  399. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/pycpp/utilities.rst +155 -0
  400. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/advanced/smart_ptrs.rst +174 -0
  401. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/basics.rst +307 -0
  402. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/benchmark.py +89 -0
  403. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/benchmark.rst +95 -0
  404. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/changelog.rst +3121 -0
  405. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/classes.rst +555 -0
  406. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/cmake/index.rst +8 -0
  407. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/compiling.rst +726 -0
  408. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/conf.py +369 -0
  409. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/faq.rst +308 -0
  410. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/index.rst +48 -0
  411. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/installing.rst +105 -0
  412. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/limitations.rst +72 -0
  413. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/pybind11-logo.png +0 -0
  414. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/pybind11_vs_boost_python1.png +0 -0
  415. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/pybind11_vs_boost_python1.svg +427 -0
  416. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/pybind11_vs_boost_python2.png +0 -0
  417. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/pybind11_vs_boost_python2.svg +427 -0
  418. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/reference.rst +130 -0
  419. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/release.rst +143 -0
  420. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/requirements.in +6 -0
  421. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/requirements.txt +275 -0
  422. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/docs/upgrade.rst +594 -0
  423. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/attr.h +690 -0
  424. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/buffer_info.h +208 -0
  425. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/cast.h +1848 -0
  426. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/chrono.h +225 -0
  427. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/common.h +2 -0
  428. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/complex.h +74 -0
  429. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/detail/class.h +754 -0
  430. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/detail/common.h +1268 -0
  431. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/detail/descr.h +172 -0
  432. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/detail/init.h +434 -0
  433. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/detail/internals.h +749 -0
  434. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/detail/type_caster_base.h +1214 -0
  435. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/detail/typeid.h +65 -0
  436. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/eigen/common.h +9 -0
  437. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/eigen/matrix.h +714 -0
  438. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/eigen/tensor.h +517 -0
  439. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/eigen.h +12 -0
  440. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/embed.h +313 -0
  441. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/eval.h +156 -0
  442. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/functional.h +138 -0
  443. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/gil.h +219 -0
  444. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/gil_safe_call_once.h +91 -0
  445. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/iostream.h +265 -0
  446. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/numpy.h +2135 -0
  447. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/operators.h +202 -0
  448. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/options.h +92 -0
  449. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/pybind11.h +3026 -0
  450. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/pytypes.h +2604 -0
  451. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/stl/filesystem.h +115 -0
  452. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/stl.h +448 -0
  453. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/stl_bind.h +822 -0
  454. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/type_caster_pyobject_ptr.h +61 -0
  455. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/include/pybind11/typing.h +239 -0
  456. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/noxfile.py +107 -0
  457. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/pybind11/__init__.py +19 -0
  458. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/pybind11/__main__.py +63 -0
  459. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/pybind11/_version.py +12 -0
  460. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/pybind11/commands.py +39 -0
  461. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/pybind11/py.typed +0 -0
  462. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/pybind11/setup_helpers.py +500 -0
  463. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/pyproject.toml +87 -0
  464. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/setup.cfg +43 -0
  465. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/setup.py +149 -0
  466. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/CMakeLists.txt +589 -0
  467. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/conftest.py +224 -0
  468. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/constructor_stats.h +322 -0
  469. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/cross_module_gil_utils.cpp +111 -0
  470. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/cross_module_interleaved_error_already_set.cpp +54 -0
  471. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/eigen_tensor_avoid_stl_array.cpp +16 -0
  472. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/env.py +31 -0
  473. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/extra_python_package/pytest.ini +0 -0
  474. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/extra_python_package/test_files.py +296 -0
  475. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/extra_setuptools/pytest.ini +0 -0
  476. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/extra_setuptools/test_setuphelper.py +153 -0
  477. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/local_bindings.h +92 -0
  478. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/object.h +205 -0
  479. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/pybind11_cross_module_tests.cpp +149 -0
  480. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/pybind11_tests.cpp +131 -0
  481. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/pybind11_tests.h +98 -0
  482. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/pytest.ini +23 -0
  483. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/requirements.txt +13 -0
  484. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_async.cpp +25 -0
  485. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_async.py +26 -0
  486. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_buffers.cpp +259 -0
  487. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_buffers.py +230 -0
  488. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_builtin_casters.cpp +387 -0
  489. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_builtin_casters.py +530 -0
  490. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_call_policies.cpp +113 -0
  491. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_call_policies.py +249 -0
  492. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_callbacks.cpp +280 -0
  493. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_callbacks.py +227 -0
  494. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_chrono.cpp +81 -0
  495. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_chrono.py +207 -0
  496. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_class.cpp +656 -0
  497. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_class.py +503 -0
  498. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/CMakeLists.txt +80 -0
  499. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/embed.cpp +23 -0
  500. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/installed_embed/CMakeLists.txt +28 -0
  501. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/installed_function/CMakeLists.txt +39 -0
  502. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/installed_target/CMakeLists.txt +46 -0
  503. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/main.cpp +6 -0
  504. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt +47 -0
  505. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/subdirectory_function/CMakeLists.txt +41 -0
  506. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/subdirectory_target/CMakeLists.txt +47 -0
  507. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_cmake_build/test.py +10 -0
  508. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_const_name.cpp +55 -0
  509. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_const_name.py +31 -0
  510. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_constants_and_functions.cpp +158 -0
  511. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_constants_and_functions.py +58 -0
  512. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_copy_move.cpp +544 -0
  513. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_copy_move.py +140 -0
  514. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_custom_type_casters.cpp +217 -0
  515. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_custom_type_casters.py +124 -0
  516. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_custom_type_setup.cpp +41 -0
  517. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_custom_type_setup.py +50 -0
  518. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_docstring_options.cpp +129 -0
  519. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_docstring_options.py +66 -0
  520. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_eigen_matrix.cpp +443 -0
  521. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_eigen_matrix.py +816 -0
  522. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_eigen_tensor.cpp +18 -0
  523. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_eigen_tensor.inl +332 -0
  524. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_eigen_tensor.py +290 -0
  525. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_embed/CMakeLists.txt +54 -0
  526. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_embed/catch.cpp +43 -0
  527. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_embed/external_module.cpp +20 -0
  528. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_embed/test_interpreter.cpp +488 -0
  529. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_embed/test_interpreter.py +16 -0
  530. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_embed/test_trampoline.py +18 -0
  531. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_enum.cpp +133 -0
  532. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_enum.py +270 -0
  533. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_eval.cpp +118 -0
  534. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_eval.py +52 -0
  535. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_eval_call.py +5 -0
  536. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_exceptions.cpp +388 -0
  537. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_exceptions.h +13 -0
  538. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_exceptions.py +434 -0
  539. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_factory_constructors.cpp +430 -0
  540. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_factory_constructors.py +518 -0
  541. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_gil_scoped.cpp +144 -0
  542. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_gil_scoped.py +244 -0
  543. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_iostream.cpp +126 -0
  544. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_iostream.py +293 -0
  545. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_kwargs_and_defaults.cpp +325 -0
  546. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_kwargs_and_defaults.py +428 -0
  547. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_local_bindings.cpp +106 -0
  548. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_local_bindings.py +259 -0
  549. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_methods_and_attributes.cpp +492 -0
  550. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_methods_and_attributes.py +539 -0
  551. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_modules.cpp +125 -0
  552. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_modules.py +118 -0
  553. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_multiple_inheritance.cpp +341 -0
  554. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_multiple_inheritance.py +495 -0
  555. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_numpy_array.cpp +547 -0
  556. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_numpy_array.py +672 -0
  557. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_numpy_dtypes.cpp +639 -0
  558. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_numpy_dtypes.py +448 -0
  559. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_numpy_vectorize.cpp +107 -0
  560. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_numpy_vectorize.py +268 -0
  561. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_opaque_types.cpp +77 -0
  562. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_opaque_types.py +60 -0
  563. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_operator_overloading.cpp +281 -0
  564. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_operator_overloading.py +153 -0
  565. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_pickling.cpp +194 -0
  566. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_pickling.py +95 -0
  567. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_python_multiple_inheritance.cpp +45 -0
  568. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_python_multiple_inheritance.py +36 -0
  569. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_pytypes.cpp +926 -0
  570. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_pytypes.py +1050 -0
  571. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_sequences_and_iterators.cpp +600 -0
  572. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_sequences_and_iterators.py +267 -0
  573. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_smart_ptr.cpp +473 -0
  574. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_smart_ptr.py +317 -0
  575. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_stl.cpp +549 -0
  576. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_stl.py +383 -0
  577. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_stl_binders.cpp +275 -0
  578. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_stl_binders.py +395 -0
  579. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_tagbased_polymorphic.cpp +147 -0
  580. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_tagbased_polymorphic.py +30 -0
  581. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_thread.cpp +66 -0
  582. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_thread.py +44 -0
  583. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_type_caster_pyobject_ptr.cpp +167 -0
  584. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_type_caster_pyobject_ptr.py +122 -0
  585. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_union.cpp +22 -0
  586. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_union.py +10 -0
  587. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_unnamed_namespace_a.cpp +38 -0
  588. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_unnamed_namespace_a.py +36 -0
  589. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_unnamed_namespace_b.cpp +13 -0
  590. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_unnamed_namespace_b.py +7 -0
  591. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_vector_unique_ptr_member.cpp +54 -0
  592. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_vector_unique_ptr_member.py +16 -0
  593. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_virtual_functions.cpp +592 -0
  594. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/test_virtual_functions.py +460 -0
  595. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/valgrind-numpy-scipy.supp +140 -0
  596. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tests/valgrind-python.supp +117 -0
  597. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/FindCatch.cmake +76 -0
  598. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/FindEigen3.cmake +86 -0
  599. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/FindPythonLibsNew.cmake +310 -0
  600. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/JoinPaths.cmake +23 -0
  601. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/check-style.sh +44 -0
  602. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/cmake_uninstall.cmake.in +23 -0
  603. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/codespell_ignore_lines_from_errors.py +40 -0
  604. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/libsize.py +38 -0
  605. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/make_changelog.py +92 -0
  606. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/pybind11.pc.in +7 -0
  607. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/pybind11Common.cmake +429 -0
  608. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/pybind11Config.cmake.in +233 -0
  609. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/pybind11GuessPythonExtSuffix.cmake +86 -0
  610. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/pybind11NewTools.cmake +341 -0
  611. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/pybind11Tools.cmake +239 -0
  612. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/pyproject.toml +3 -0
  613. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/setup_global.py.in +63 -0
  614. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/setup_main.py.in +44 -0
  615. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake +161 -0
  616. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/setup.py +76 -0
  617. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Python/unit_test.py +209 -0
  618. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/README.md +357 -0
  619. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/README_CN.md +301 -0
  620. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/SECURITY.md +15 -0
  621. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Script/dumpJavaSignature.py +144 -0
  622. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Script/formatCode.py +17 -0
  623. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/.clang-format +35 -0
  624. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32.sln +58 -0
  625. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32Demo/Win32Demo.cpp +548 -0
  626. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32Demo/Win32Demo.vcxproj +190 -0
  627. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32Demo/Win32Demo.vcxproj.filters +30 -0
  628. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32Demo/pch.cpp +23 -0
  629. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32Demo/pch.h +28 -0
  630. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32DemoProcess/Win32DemoProcess.cpp +88 -0
  631. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32DemoProcess/Win32DemoProcess.vcxproj +188 -0
  632. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32DemoProcess/Win32DemoProcess.vcxproj.filters +30 -0
  633. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32DemoProcess/pch.cpp +21 -0
  634. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/Win32/Win32DemoProcess/pch.h +24 -0
  635. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/.metadata +10 -0
  636. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/.vscode/launch.json +162 -0
  637. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/.vscode/settings.json +12 -0
  638. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/CHANGELOG.md +196 -0
  639. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/LICENSE +193 -0
  640. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/README.md +217 -0
  641. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/analysis_options.yaml +49 -0
  642. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/README.md +16 -0
  643. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/build.gradle +79 -0
  644. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/AndroidManifest.xml +41 -0
  645. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/java/com/tencent/mmkv_example/MainActivity.java +25 -0
  646. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/res/drawable/launch_background.xml +12 -0
  647. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  648. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  649. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  650. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  651. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  652. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/main/res/values/styles.xml +18 -0
  653. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/app/src/profile/AndroidManifest.xml +7 -0
  654. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/build.gradle +29 -0
  655. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/gradle/wrapper/gradle-wrapper.properties +6 -0
  656. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/gradle.properties +4 -0
  657. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/settings.gradle +25 -0
  658. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/android/settings_aar.gradle +1 -0
  659. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Flutter/AppFrameworkInfo.plist +26 -0
  660. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Flutter/Debug.xcconfig +2 -0
  661. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Flutter/Release.xcconfig +2 -0
  662. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Flutter/ephemeral/flutter_lldb_helper.py +32 -0
  663. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Flutter/ephemeral/flutter_lldbinit +5 -0
  664. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Podfile +49 -0
  665. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/AppDelegate.h +26 -0
  666. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/AppDelegate.m +33 -0
  667. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +122 -0
  668. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png +0 -0
  669. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
  670. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
  671. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
  672. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
  673. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
  674. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
  675. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
  676. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
  677. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
  678. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
  679. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
  680. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
  681. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
  682. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
  683. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +23 -0
  684. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
  685. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
  686. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
  687. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +5 -0
  688. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Base.lproj/LaunchScreen.storyboard +37 -0
  689. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Base.lproj/Main.storyboard +29 -0
  690. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Info.plist +49 -0
  691. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/Runner.entitlements +10 -0
  692. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner/main.m +29 -0
  693. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner.xcodeproj/project.pbxproj +612 -0
  694. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  695. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  696. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  697. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +90 -0
  698. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner.xcworkspace/contents.xcworkspacedata +10 -0
  699. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  700. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  701. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/lib/main.dart +565 -0
  702. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/CMakeLists.txt +128 -0
  703. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/flutter/CMakeLists.txt +88 -0
  704. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/flutter/generated_plugin_registrant.cc +15 -0
  705. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/flutter/generated_plugin_registrant.h +15 -0
  706. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/flutter/generated_plugins.cmake +24 -0
  707. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/runner/CMakeLists.txt +26 -0
  708. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/runner/main.cc +6 -0
  709. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/runner/my_application.cc +130 -0
  710. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/linux/runner/my_application.h +18 -0
  711. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Flutter/Flutter-Debug.xcconfig +2 -0
  712. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Flutter/Flutter-Release.xcconfig +2 -0
  713. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Flutter/GeneratedPluginRegistrant.swift +14 -0
  714. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Podfile +47 -0
  715. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/AppDelegate.swift +13 -0
  716. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +68 -0
  717. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png +0 -0
  718. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png +0 -0
  719. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png +0 -0
  720. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png +0 -0
  721. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png +0 -0
  722. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png +0 -0
  723. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png +0 -0
  724. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Base.lproj/MainMenu.xib +343 -0
  725. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Configs/AppInfo.xcconfig +14 -0
  726. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Configs/Debug.xcconfig +2 -0
  727. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Configs/Release.xcconfig +2 -0
  728. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Configs/Warnings.xcconfig +13 -0
  729. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/DebugProfile.entitlements +12 -0
  730. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Info.plist +32 -0
  731. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/MainFlutterWindow.swift +15 -0
  732. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner/Release.entitlements +8 -0
  733. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner.xcodeproj/project.pbxproj +800 -0
  734. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  735. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +99 -0
  736. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner.xcworkspace/contents.xcworkspacedata +10 -0
  737. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  738. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +5 -0
  739. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/macos/RunnerTests/RunnerTests.swift +12 -0
  740. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/AppScope/app.json5 +10 -0
  741. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/AppScope/resources/base/element/string.json +8 -0
  742. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/AppScope/resources/base/media/app_icon.png +0 -0
  743. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/build-profile.json5 +41 -0
  744. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/build-profile.json5 +34 -0
  745. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/hvigorfile.ts +17 -0
  746. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/oh-package.json5 +13 -0
  747. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets +36 -0
  748. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/ets/pages/Index.ets +38 -0
  749. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/ets/plugins/GeneratedPluginRegistrant.ets +28 -0
  750. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/module.json5 +53 -0
  751. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/resources/base/element/color.json +8 -0
  752. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/resources/base/element/string.json +16 -0
  753. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/resources/base/media/icon.png +0 -0
  754. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/resources/base/profile/main_pages.json +5 -0
  755. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/resources/en_US/element/string.json +16 -0
  756. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/main/resources/zh_CN/element/string.json +16 -0
  757. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets +50 -0
  758. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/ets/test/List.test.ets +20 -0
  759. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets +63 -0
  760. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +49 -0
  761. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +64 -0
  762. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/module.json5 +51 -0
  763. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/resources/base/element/color.json +8 -0
  764. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/resources/base/element/string.json +16 -0
  765. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/resources/base/media/icon.png +0 -0
  766. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/entry/src/ohosTest/resources/base/profile/test_pages.json +5 -0
  767. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/hvigor/hvigor-config.json5 +20 -0
  768. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/hvigorfile.ts +21 -0
  769. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/ohos/oh-package.json5 +21 -0
  770. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/pubspec.yaml +75 -0
  771. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/CMakeLists.txt +108 -0
  772. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/flutter/CMakeLists.txt +109 -0
  773. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/flutter/generated_plugin_registrant.cc +14 -0
  774. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/flutter/generated_plugin_registrant.h +15 -0
  775. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/flutter/generated_plugins.cmake +24 -0
  776. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/CMakeLists.txt +40 -0
  777. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/Runner.rc +121 -0
  778. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/flutter_window.cpp +71 -0
  779. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/flutter_window.h +33 -0
  780. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/main.cpp +43 -0
  781. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/resource.h +16 -0
  782. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/resources/app_icon.ico +0 -0
  783. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/runner.exe.manifest +14 -0
  784. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/utils.cpp +65 -0
  785. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/utils.h +19 -0
  786. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/win32_window.cpp +288 -0
  787. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/example/windows/runner/win32_window.h +102 -0
  788. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/lib/mmkv.dart +1052 -0
  789. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/mmkv.iml +17 -0
  790. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/pubspec.yaml +62 -0
  791. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/test/mmkv_test.dart +48 -0
  792. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/tool/fix_mmkv_plugin_name.rb +4 -0
  793. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv/tool/mmkvpodhelper.rb +23 -0
  794. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv.iml +25 -0
  795. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/CHANGELOG.md +48 -0
  796. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/LICENSE +193 -0
  797. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/README.md +17 -0
  798. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/build.gradle +39 -0
  799. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  800. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  801. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/gradle.properties +4 -0
  802. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/gradlew +160 -0
  803. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/gradlew.bat +90 -0
  804. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/settings.gradle +1 -0
  805. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/src/main/AndroidManifest.xml +1 -0
  806. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/android/src/main/java/com/tencent/mmkv/MMKVPlugin.java +82 -0
  807. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/lib/mmkv_android.dart +76 -0
  808. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_android/pubspec.yaml +40 -0
  809. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/.metadata +33 -0
  810. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/CHANGELOG.md +52 -0
  811. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/LICENSE +193 -0
  812. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/README.md +17 -0
  813. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/darwin/Classes/MMKVPlugin.h +28 -0
  814. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/darwin/Classes/MMKVPlugin.mm +39 -0
  815. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/darwin/Classes/flutter-bridge.h +32 -0
  816. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/darwin/Classes/flutter-bridge.mm +693 -0
  817. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/darwin/mmkv_ios.podspec +35 -0
  818. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/lib/mmkv_ios.dart +78 -0
  819. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ios/pubspec.yaml +44 -0
  820. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/.metadata +30 -0
  821. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/CHANGELOG.md +9 -0
  822. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/LICENSE +193 -0
  823. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/README.md +17 -0
  824. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/analysis_options.yaml +4 -0
  825. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/lib/mmkv_linux.dart +69 -0
  826. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/linux/CMakeLists.txt +63 -0
  827. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/linux/flutter-bridge.cpp +694 -0
  828. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/linux/include/mmkv_linux/mmkv_linux_plugin.h +46 -0
  829. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/linux/mmkv_linux_plugin.cc +97 -0
  830. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_linux/pubspec.yaml +47 -0
  831. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/.metadata +30 -0
  832. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/CHANGELOG.md +42 -0
  833. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/LICENSE +193 -0
  834. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/README.md +17 -0
  835. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/analysis_options.yaml +4 -0
  836. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/lib/mmkv_ohos.dart +84 -0
  837. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/ohos/build-profile.json5 +10 -0
  838. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/ohos/hvigorfile.ts +2 -0
  839. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/ohos/index.ets +17 -0
  840. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/ohos/oh-package.json5 +15 -0
  841. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/ohos/src/main/ets/components/plugin/MMKVPlugin.ets +78 -0
  842. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/ohos/src/main/module.json5 +10 -0
  843. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_ohos/pubspec.yaml +50 -0
  844. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_platform_interface/CHANGELOG.md +38 -0
  845. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_platform_interface/LICENSE +193 -0
  846. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_platform_interface/README.md +30 -0
  847. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_platform_interface/lib/mmkv_platform_ffi.dart +363 -0
  848. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_platform_interface/lib/mmkv_platform_interface.dart +363 -0
  849. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_platform_interface/pubspec.yaml +23 -0
  850. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/.metadata +30 -0
  851. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/CHANGELOG.md +9 -0
  852. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/LICENSE +193 -0
  853. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/README.md +17 -0
  854. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/analysis_options.yaml +4 -0
  855. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/lib/mmkv_win32.dart +69 -0
  856. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/pubspec.yaml +47 -0
  857. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/windows/CMakeLists.txt +71 -0
  858. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/windows/flutter-bridge.cpp +721 -0
  859. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/windows/include/mmkv_win32/mmkv_win32_plugin.h +43 -0
  860. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/flutter/mmkv_win32/windows/mmkv_win32_plugin.cpp +88 -0
  861. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV/AutoCleanInfo.hpp +65 -0
  862. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV/MMKV.h +552 -0
  863. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV/MMKVHandler.h +60 -0
  864. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV/Resources/Info.plist +24 -0
  865. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV/libMMKV.mm +1361 -0
  866. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV.xcodeproj/project.pbxproj +967 -0
  867. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  868. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  869. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV.xcodeproj/xcshareddata/xcschemes/MMKV For App Extension.xcscheme +67 -0
  870. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV.xcodeproj/xcshareddata/xcschemes/MMKV Static.xcscheme +76 -0
  871. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV.xcodeproj/xcshareddata/xcschemes/MMKV.xcscheme +76 -0
  872. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKV/MMKV.xcodeproj/xcshareddata/xcschemes/MMKVWatchExtension.xcscheme +67 -0
  873. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/Config.xcconfig +10 -0
  874. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/AppDelegate.h +15 -0
  875. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/AppDelegate.m +43 -0
  876. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
  877. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/Assets.xcassets/AppIcon.appiconset/Contents.json +13 -0
  878. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/Assets.xcassets/Contents.json +6 -0
  879. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/Base.lproj/LaunchScreen.storyboard +25 -0
  880. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/Base.lproj/Main.storyboard +42 -0
  881. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/Info.plist +25 -0
  882. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/MMKVCatalystDemo.entitlements +12 -0
  883. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/SceneDelegate.h +16 -0
  884. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/SceneDelegate.m +58 -0
  885. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/ViewController.h +15 -0
  886. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/ViewController.mm +85 -0
  887. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVCatalystDemo/main.m +19 -0
  888. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/AppDelegate.h +27 -0
  889. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/AppDelegate.m +135 -0
  890. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/DemoSwiftUsage.swift +82 -0
  891. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/MMKVDemo-Bridging-Header.h +22 -0
  892. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
  893. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/Resources/Base.lproj/LaunchScreen.storyboard +25 -0
  894. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/Resources/Base.lproj/Main.storyboard +48 -0
  895. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/Resources/Info.plist +49 -0
  896. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/Resources/MMKVDemo.entitlements +10 -0
  897. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/Resources/testReadOnly +0 -0
  898. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/Resources/testReadOnly.crc +0 -0
  899. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/TestMMKVCpp.cpp +204 -0
  900. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/TestMMKVCpp.hpp +18 -0
  901. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/ViewController+TestCaseBad.h +39 -0
  902. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/ViewController+TestCaseBad.mm +200 -0
  903. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/ViewController.h +32 -0
  904. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/ViewController.mm +1245 -0
  905. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo/main.m +28 -0
  906. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/project.pbxproj +1944 -0
  907. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  908. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  909. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  910. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/MMKVDemo.xcscheme +88 -0
  911. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/MMKVMacDemo.xcscheme +78 -0
  912. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/MMKVTodayExtensionDemo.xcscheme +116 -0
  913. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/WatchApp (Notification).xcscheme +106 -0
  914. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/WatchApp.xcscheme +102 -0
  915. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemo.xcodeproj/xcshareddata/xcschemes/kvdemo.xcscheme +78 -0
  916. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemoTests/Info.plist +22 -0
  917. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemoTests/MMKVDemoTests.mm +554 -0
  918. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVDemoTests/MMKVPerformanceTest.mm +118 -0
  919. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/AppDelegate.h +13 -0
  920. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/AppDelegate.m +27 -0
  921. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
  922. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/Assets.xcassets/Contents.json +6 -0
  923. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/Base.lproj/Main.storyboard +718 -0
  924. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/Info.plist +32 -0
  925. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/MMKVMacDemo.entitlements +10 -0
  926. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/ViewController.h +13 -0
  927. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/ViewController.mm +352 -0
  928. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVMacDemo/main.m +15 -0
  929. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVTodayExtensionDemo/Base.lproj/MainInterface.storyboard +45 -0
  930. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVTodayExtensionDemo/Info.plist +31 -0
  931. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVTodayExtensionDemo/MMKVTodayExtensionDemo.entitlements +10 -0
  932. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVTodayExtensionDemo/TodayViewController.h +25 -0
  933. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVTodayExtensionDemo/TodayViewController.m +106 -0
  934. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +12 -0
  935. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +6 -0
  936. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Assets.xcassets/AppIcon.solidimagestack/Contents.json +17 -0
  937. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +12 -0
  938. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +6 -0
  939. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +12 -0
  940. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +6 -0
  941. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Assets.xcassets/Contents.json +6 -0
  942. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/ContentView.swift +71 -0
  943. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Info.plist +15 -0
  944. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/MMKVVisionDemoApp.swift +22 -0
  945. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/MMKVVisionDemo/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
  946. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp/Assets.xcassets/AppIcon.appiconset/Contents.json +81 -0
  947. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp/Assets.xcassets/Contents.json +6 -0
  948. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp/Base.lproj/Interface.storyboard +47 -0
  949. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp/Info.plist +33 -0
  950. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json +28 -0
  951. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Contents.json +48 -0
  952. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json +28 -0
  953. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json +28 -0
  954. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json +28 -0
  955. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json +28 -0
  956. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json +28 -0
  957. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json +28 -0
  958. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json +28 -0
  959. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Assets.xcassets/Contents.json +6 -0
  960. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/ExtensionDelegate.h +25 -0
  961. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/ExtensionDelegate.mm +135 -0
  962. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/Info.plist +36 -0
  963. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/InterfaceController.h +26 -0
  964. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/InterfaceController.m +50 -0
  965. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/NotificationController.h +26 -0
  966. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/NotificationController.m +60 -0
  967. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/WatchApp Extension/PushNotificationPayload.apns +20 -0
  968. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/AppDelegate.h +15 -0
  969. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/AppDelegate.m +49 -0
  970. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
  971. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/Assets.xcassets/AppIcon.appiconset/Contents.json +13 -0
  972. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/Assets.xcassets/Contents.json +6 -0
  973. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/Base.lproj/LaunchScreen.storyboard +25 -0
  974. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/Base.lproj/Main.storyboard +45 -0
  975. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/Info.plist +25 -0
  976. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/SceneDelegate.h +16 -0
  977. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/SceneDelegate.m +58 -0
  978. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/ViewController.h +15 -0
  979. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/ViewController.m +38 -0
  980. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/kvdemo.entitlements +10 -0
  981. package/harmony/reactNativeMMKV/src/main/cpp/MMKV/iOS/MMKVDemo/kvdemo/main.m +19 -0
  982. package/harmony/reactNativeMMKV/src/main/cpp/MMKVManagedBuffer.h +49 -0
  983. package/harmony/reactNativeMMKV/src/main/cpp/MmkvCxx.cpp +152 -0
  984. package/harmony/reactNativeMMKV/src/main/cpp/MmkvCxx.h +36 -0
  985. package/harmony/reactNativeMMKV/src/main/cpp/MmkvHostObject.cpp +357 -0
  986. package/harmony/reactNativeMMKV/src/main/cpp/MmkvHostObject.h +66 -0
  987. package/harmony/reactNativeMMKV/src/main/cpp/MmkvLogger.h +52 -0
  988. package/harmony/reactNativeMMKV/src/main/cpp/MmkvPlatformContext.cpp +37 -0
  989. package/harmony/reactNativeMMKV/src/main/cpp/MmkvPlatformContext.h +36 -0
  990. package/harmony/reactNativeMMKV/src/main/cpp/NativeMMKVComponentDescriptor.h +65 -0
  991. package/harmony/reactNativeMMKV/src/main/cpp/NativeMMKVJSIBinder.h +55 -0
  992. package/harmony/reactNativeMMKV/src/main/cpp/NativeMMKVPackage.h +67 -0
  993. package/harmony/reactNativeMMKV/src/main/cpp/Props.cpp +37 -0
  994. package/harmony/reactNativeMMKV/src/main/cpp/Props.h +42 -0
  995. package/harmony/reactNativeMMKV/src/main/cpp/ShadowNodes.cpp +39 -0
  996. package/harmony/reactNativeMMKV/src/main/cpp/ShadowNodes.h +41 -0
  997. package/harmony/reactNativeMMKV/src/main/cpp/States.cpp +40 -0
  998. package/harmony/reactNativeMMKV/src/main/cpp/States.h +45 -0
  999. package/harmony/reactNativeMMKV/src/main/ets/Logger.ts +65 -0
  1000. package/harmony/reactNativeMMKV/src/main/ets/MmkvCxxPackage.ts +46 -0
  1001. package/harmony/reactNativeMMKV/src/main/ets/MmkvCxxTurboModule.ts +60 -0
  1002. package/harmony/reactNativeMMKV/src/main/ets/MmkvPlatformContextPackage.ts +46 -0
  1003. package/harmony/reactNativeMMKV/src/main/ets/MmkvPlatformContextTurboModule.ts +48 -0
  1004. package/harmony/reactNativeMMKV/src/main/module.json5 +7 -0
  1005. package/harmony/reactNativeMMKV/src/main/resources/base/element/string.json +8 -0
  1006. package/harmony/reactNativeMMKV/src/main/resources/en_US/element/string.json +8 -0
  1007. package/harmony/reactNativeMMKV/src/main/resources/zh_CN/element/string.json +8 -0
  1008. package/harmony/reactNativeMMKV/ts.ts +27 -0
  1009. package/harmony/reactNativeMMKV.har +0 -0
  1010. package/lib/commonjs/MMKV.js +124 -0
  1011. package/lib/commonjs/MMKV.js.map +1 -0
  1012. package/lib/commonjs/MemoryWarningListener.js +31 -0
  1013. package/lib/commonjs/MemoryWarningListener.js.map +1 -0
  1014. package/lib/commonjs/MemoryWarningListener.web.js +11 -0
  1015. package/lib/commonjs/MemoryWarningListener.web.js.map +1 -0
  1016. package/lib/commonjs/ModuleNotFoundError.js +75 -0
  1017. package/lib/commonjs/ModuleNotFoundError.js.map +1 -0
  1018. package/lib/commonjs/NativeMmkv.js +53 -0
  1019. package/lib/commonjs/NativeMmkv.js.map +1 -0
  1020. package/lib/commonjs/NativeMmkvPlatformContext.js +22 -0
  1021. package/lib/commonjs/NativeMmkvPlatformContext.js.map +1 -0
  1022. package/lib/commonjs/PlatformChecker.js +14 -0
  1023. package/lib/commonjs/PlatformChecker.js.map +1 -0
  1024. package/lib/commonjs/Types.js +32 -0
  1025. package/lib/commonjs/Types.js.map +1 -0
  1026. package/lib/commonjs/createMMKV.js +43 -0
  1027. package/lib/commonjs/createMMKV.js.map +1 -0
  1028. package/lib/commonjs/createMMKV.mock.js +43 -0
  1029. package/lib/commonjs/createMMKV.mock.js.map +1 -0
  1030. package/lib/commonjs/createMMKV.web.js +110 -0
  1031. package/lib/commonjs/createMMKV.web.js.map +1 -0
  1032. package/lib/commonjs/createTextEncoder.js +23 -0
  1033. package/lib/commonjs/createTextEncoder.js.map +1 -0
  1034. package/lib/commonjs/hooks.js +198 -0
  1035. package/lib/commonjs/hooks.js.map +1 -0
  1036. package/lib/commonjs/index.js +40 -0
  1037. package/lib/commonjs/index.js.map +1 -0
  1038. package/lib/commonjs/package.json +1 -0
  1039. package/lib/module/MMKV.js +119 -0
  1040. package/lib/module/MMKV.js.map +1 -0
  1041. package/lib/module/MemoryWarningListener.js +27 -0
  1042. package/lib/module/MemoryWarningListener.js.map +1 -0
  1043. package/lib/module/MemoryWarningListener.web.js +6 -0
  1044. package/lib/module/MemoryWarningListener.web.js.map +1 -0
  1045. package/lib/module/ModuleNotFoundError.js +70 -0
  1046. package/lib/module/ModuleNotFoundError.js.map +1 -0
  1047. package/lib/module/NativeMmkv.js +51 -0
  1048. package/lib/module/NativeMmkv.js.map +1 -0
  1049. package/lib/module/NativeMmkvPlatformContext.js +18 -0
  1050. package/lib/module/NativeMmkvPlatformContext.js.map +1 -0
  1051. package/lib/module/PlatformChecker.js +10 -0
  1052. package/lib/module/PlatformChecker.js.map +1 -0
  1053. package/lib/module/Types.js +31 -0
  1054. package/lib/module/Types.js.map +1 -0
  1055. package/lib/module/createMMKV.js +38 -0
  1056. package/lib/module/createMMKV.js.map +1 -0
  1057. package/lib/module/createMMKV.mock.js +38 -0
  1058. package/lib/module/createMMKV.mock.js.map +1 -0
  1059. package/lib/module/createMMKV.web.js +105 -0
  1060. package/lib/module/createMMKV.web.js.map +1 -0
  1061. package/lib/module/createTextEncoder.js +19 -0
  1062. package/lib/module/createTextEncoder.js.map +1 -0
  1063. package/lib/module/hooks.js +189 -0
  1064. package/lib/module/hooks.js.map +1 -0
  1065. package/lib/module/index.js +6 -0
  1066. package/lib/module/index.js.map +1 -0
  1067. package/lib/typescript/src/MMKV.d.ts +34 -0
  1068. package/lib/typescript/src/MMKV.d.ts.map +1 -0
  1069. package/lib/typescript/src/MemoryWarningListener.d.ts +3 -0
  1070. package/lib/typescript/src/MemoryWarningListener.d.ts.map +1 -0
  1071. package/lib/typescript/src/MemoryWarningListener.web.d.ts +3 -0
  1072. package/lib/typescript/src/MemoryWarningListener.web.d.ts.map +1 -0
  1073. package/lib/typescript/src/ModuleNotFoundError.d.ts +7 -0
  1074. package/lib/typescript/src/ModuleNotFoundError.d.ts.map +1 -0
  1075. package/lib/typescript/src/NativeMmkv.d.ts +91 -0
  1076. package/lib/typescript/src/NativeMmkv.d.ts.map +1 -0
  1077. package/lib/typescript/src/NativeMmkvPlatformContext.d.ts +20 -0
  1078. package/lib/typescript/src/NativeMmkvPlatformContext.d.ts.map +1 -0
  1079. package/lib/typescript/src/PlatformChecker.d.ts +2 -0
  1080. package/lib/typescript/src/PlatformChecker.d.ts.map +1 -0
  1081. package/lib/typescript/src/Types.d.ts +172 -0
  1082. package/lib/typescript/src/Types.d.ts.map +1 -0
  1083. package/lib/typescript/src/__tests__/hooks.test.d.ts +2 -0
  1084. package/lib/typescript/src/__tests__/hooks.test.d.ts.map +1 -0
  1085. package/lib/typescript/src/createMMKV.d.ts +3 -0
  1086. package/lib/typescript/src/createMMKV.d.ts.map +1 -0
  1087. package/lib/typescript/src/createMMKV.mock.d.ts +3 -0
  1088. package/lib/typescript/src/createMMKV.mock.d.ts.map +1 -0
  1089. package/lib/typescript/src/createMMKV.web.d.ts +3 -0
  1090. package/lib/typescript/src/createMMKV.web.d.ts.map +1 -0
  1091. package/lib/typescript/src/createTextEncoder.d.ts +2 -0
  1092. package/lib/typescript/src/createTextEncoder.d.ts.map +1 -0
  1093. package/lib/typescript/src/hooks.d.ts +86 -0
  1094. package/lib/typescript/src/hooks.d.ts.map +1 -0
  1095. package/lib/typescript/src/index.d.ts +4 -0
  1096. package/lib/typescript/src/index.d.ts.map +1 -0
  1097. package/package.json +187 -0
  1098. package/react-native-mmkv.podspec +38 -0
  1099. package/react-native.config.js +20 -0
  1100. package/src/MMKV.ts +142 -0
  1101. package/src/MemoryWarningListener.ts +29 -0
  1102. package/src/MemoryWarningListener.web.ts +5 -0
  1103. package/src/ModuleNotFoundError.ts +95 -0
  1104. package/src/NativeMmkv.ts +118 -0
  1105. package/src/NativeMmkvPlatformContext.ts +38 -0
  1106. package/src/PlatformChecker.ts +9 -0
  1107. package/src/Types.ts +178 -0
  1108. package/src/__tests__/hooks.test.tsx +89 -0
  1109. package/src/createMMKV.mock.ts +38 -0
  1110. package/src/createMMKV.ts +42 -0
  1111. package/src/createMMKV.web.ts +127 -0
  1112. package/src/createTextEncoder.ts +16 -0
  1113. package/src/hooks.ts +247 -0
  1114. package/src/index.ts +4 -0
@@ -0,0 +1,3121 @@
1
+ .. _changelog:
2
+
3
+ Changelog
4
+ #########
5
+
6
+ Starting with version 1.8.0, pybind11 releases use a `semantic versioning
7
+ <http://semver.org>`_ policy.
8
+
9
+ Changes will be added here periodically from the "Suggested changelog entry"
10
+ block in pull request descriptions.
11
+
12
+
13
+ IN DEVELOPMENT
14
+ --------------
15
+
16
+ Changes will be summarized here periodically.
17
+
18
+ Version 2.13.1 (June 26, 2024)
19
+ ------------------------------
20
+
21
+ New Features:
22
+
23
+ * Add support for ``Typing.Callable[..., T]``.
24
+ `#5202 <https://github.com/pybind/pybind11/pull/5202>`_
25
+
26
+ Bug fixes:
27
+
28
+ * Avoid aligned allocation in free-threaded build in order to support macOS
29
+ versions before 10.14.
30
+ `#5200 <https://github.com/pybind/pybind11/pull/5200>`_
31
+
32
+ Version 2.13.0 (June 25, 2024)
33
+ ------------------------------
34
+
35
+ New Features:
36
+
37
+ * Support free-threaded CPython (3.13t). Add ``py::mod_gil_not_used()`` tag to
38
+ indicate if a module supports running with the GIL disabled.
39
+ `#5148 <https://github.com/pybind/pybind11/pull/5148>`_
40
+
41
+ * Support for Python 3.6 was removed. (Official end-of-life: 2021-12-23).
42
+ `#5177 <https://github.com/pybind/pybind11/pull/5177>`_
43
+
44
+ * ``py::list`` gained a ``.clear()`` method.
45
+ `#5153 <https://github.com/pybind/pybind11/pull/5153>`_
46
+
47
+
48
+ .. feat(types)
49
+
50
+ * Support for ``Union``, ``Optional``, ``type[T]``, ``typing.TypeGuard``,
51
+ ``typing.TypeIs``, ``typing.Never``, ``typing.NoReturn`` and
52
+ ``typing.Literal`` was added to ``pybind11/typing.h``.
53
+ `#5166 <https://github.com/pybind/pybind11/pull/5166>`_
54
+ `#5165 <https://github.com/pybind/pybind11/pull/5165>`_
55
+ `#5194 <https://github.com/pybind/pybind11/pull/5194>`_
56
+ `#5193 <https://github.com/pybind/pybind11/pull/5193>`_
57
+ `#5192 <https://github.com/pybind/pybind11/pull/5192>`_
58
+
59
+
60
+ .. feat(cmake)
61
+
62
+ * In CMake, if ``PYBIND11_USE_CROSSCOMPILING`` is enabled, then
63
+ ``CMAKE_CROSSCOMPILING`` will be respected and will keep pybind11 from
64
+ accessing the interpreter during configuration. Several CMake variables will
65
+ be required in this case, but can be deduced from the environment variable
66
+ ``SETUPTOOLS_EXT_SUFFIX``. The default (currently ``OFF``) may be changed in
67
+ the future.
68
+ `#5083 <https://github.com/pybind/pybind11/pull/5083>`_
69
+
70
+
71
+ Bug fixes:
72
+
73
+ * A refcount bug (leading to heap-use-after-free) involving trampoline
74
+ functions with ``PyObject *`` return type was fixed.
75
+ `#5156 <https://github.com/pybind/pybind11/pull/5156>`_
76
+
77
+ * Return ``py::ssize_t`` from ``.ref_count()`` instead of ``int``.
78
+ `#5139 <https://github.com/pybind/pybind11/pull/5139>`_
79
+
80
+ * A subtle bug involving C++ types with unusual ``operator&`` overrides
81
+ was fixed.
82
+ `#5189 <https://github.com/pybind/pybind11/pull/5189>`_
83
+
84
+ * Support Python 3.13 with minor fix, add to CI.
85
+ `#5127 <https://github.com/pybind/pybind11/pull/5127>`_
86
+
87
+
88
+ .. fix(cmake)
89
+
90
+ * Fix mistake affecting old cmake and old boost.
91
+ `#5149 <https://github.com/pybind/pybind11/pull/5149>`_
92
+
93
+
94
+ Documentation:
95
+
96
+ * Build docs updated to feature scikit-build-core and meson-python, and updated
97
+ setuptools instructions.
98
+ `#5168 <https://github.com/pybind/pybind11/pull/5168>`_
99
+
100
+
101
+ Tests:
102
+
103
+ * Avoid immortal objects in tests.
104
+ `#5150 <https://github.com/pybind/pybind11/pull/5150>`_
105
+
106
+
107
+ CI:
108
+
109
+ * Compile against Python 3.13t in CI.
110
+
111
+ * Use ``macos-13`` (Intel) for CI jobs for now (will drop Python 3.7 soon).
112
+ `#5109 <https://github.com/pybind/pybind11/pull/5109>`_
113
+
114
+ * Releases now have artifact attestations, visible at
115
+ https://github.com/pybind/pybind11/attestations.
116
+ `#5196 <https://github.com/pybind/pybind11/pull/5196>`_
117
+
118
+ Other:
119
+
120
+ * Some cleanup in preparation for 3.13 support.
121
+ `#5137 <https://github.com/pybind/pybind11/pull/5137>`_
122
+
123
+ * Avoid a warning by ensuring an iterator end check is included in release mode.
124
+ `#5129 <https://github.com/pybind/pybind11/pull/5129>`_
125
+
126
+ * Bump max cmake to 3.29.
127
+ `#5075 <https://github.com/pybind/pybind11/pull/5075>`_
128
+
129
+ * Update docs and noxfile.
130
+ `#5071 <https://github.com/pybind/pybind11/pull/5071>`_
131
+
132
+
133
+ Version 2.12.0 (March 27, 2024)
134
+ -------------------------------
135
+
136
+ New Features:
137
+
138
+ * ``pybind11`` now supports compiling for
139
+ `NumPy 2 <https://numpy.org/devdocs/numpy_2_0_migration_guide.html>`_. Most
140
+ code shouldn't change (see :ref:`upgrade-guide-2.12` for details). However,
141
+ if you experience issues you can define ``PYBIND11_NUMPY_1_ONLY`` to disable
142
+ the new support for now, but this will be removed in the future.
143
+ `#5050 <https://github.com/pybind/pybind11/pull/5050>`_
144
+
145
+ * ``pybind11/gil_safe_call_once.h`` was added (it needs to be included
146
+ explicitly). The primary use case is GIL-safe initialization of C++
147
+ ``static`` variables.
148
+ `#4877 <https://github.com/pybind/pybind11/pull/4877>`_
149
+
150
+ * Support move-only iterators in ``py::make_iterator``,
151
+ ``py::make_key_iterator``, ``py::make_value_iterator``.
152
+ `#4834 <https://github.com/pybind/pybind11/pull/4834>`_
153
+
154
+ * Two simple ``py::set_error()`` functions were added and the documentation was
155
+ updated accordingly. In particular, ``py::exception<>::operator()`` was
156
+ deprecated (use one of the new functions instead). The documentation for
157
+ ``py::exception<>`` was further updated to not suggest code that may result
158
+ in undefined behavior.
159
+ `#4772 <https://github.com/pybind/pybind11/pull/4772>`_
160
+
161
+ Bug fixes:
162
+
163
+ * Removes potential for Undefined Behavior during process teardown.
164
+ `#4897 <https://github.com/pybind/pybind11/pull/4897>`_
165
+
166
+ * Improve compatibility with the nvcc compiler (especially CUDA 12.1/12.2).
167
+ `#4893 <https://github.com/pybind/pybind11/pull/4893>`_
168
+
169
+ * ``pybind11/numpy.h`` now imports NumPy's ``multiarray`` and ``_internal``
170
+ submodules with paths depending on the installed version of NumPy (for
171
+ compatibility with NumPy 2).
172
+ `#4857 <https://github.com/pybind/pybind11/pull/4857>`_
173
+
174
+ * Builtins collections names in docstrings are now consistently rendered in
175
+ lowercase (list, set, dict, tuple), in accordance with PEP 585.
176
+ `#4833 <https://github.com/pybind/pybind11/pull/4833>`_
177
+
178
+ * Added ``py::typing::Iterator<T>``, ``py::typing::Iterable<T>``.
179
+ `#4832 <https://github.com/pybind/pybind11/pull/4832>`_
180
+
181
+ * Render ``py::function`` as ``Callable`` in docstring.
182
+ `#4829 <https://github.com/pybind/pybind11/pull/4829>`_
183
+
184
+ * Also bump ``PYBIND11_INTERNALS_VERSION`` for MSVC, which unlocks two new
185
+ features without creating additional incompatibilities.
186
+ `#4819 <https://github.com/pybind/pybind11/pull/4819>`_
187
+
188
+ * Guard against crashes/corruptions caused by modules built with different MSVC
189
+ versions.
190
+ `#4779 <https://github.com/pybind/pybind11/pull/4779>`_
191
+
192
+ * A long-standing bug in the handling of Python multiple inheritance was fixed.
193
+ See PR #4762 for the rather complex details.
194
+ `#4762 <https://github.com/pybind/pybind11/pull/4762>`_
195
+
196
+ * Fix ``bind_map`` with ``using`` declarations.
197
+ `#4952 <https://github.com/pybind/pybind11/pull/4952>`_
198
+
199
+ * Qualify ``py::detail::concat`` usage to avoid ADL selecting one from
200
+ somewhere else, such as modernjson's concat.
201
+ `#4955 <https://github.com/pybind/pybind11/pull/4955>`_
202
+
203
+ * Use new PyCode API on Python 3.12+.
204
+ `#4916 <https://github.com/pybind/pybind11/pull/4916>`_
205
+
206
+ * Minor cleanup from warnings reported by Clazy.
207
+ `#4988 <https://github.com/pybind/pybind11/pull/4988>`_
208
+
209
+ * Remove typing and duplicate ``class_`` for ``KeysView``/``ValuesView``/``ItemsView``.
210
+ `#4985 <https://github.com/pybind/pybind11/pull/4985>`_
211
+
212
+ * Use ``PyObject_VisitManagedDict()`` and ``PyObject_ClearManagedDict()`` on Python 3.13 and newer.
213
+ `#4973 <https://github.com/pybind/pybind11/pull/4973>`_
214
+
215
+ * Update ``make_static_property_type()`` to make it compatible with Python 3.13.
216
+ `#4971 <https://github.com/pybind/pybind11/pull/4971>`_
217
+
218
+ .. fix(types)
219
+
220
+ * Render typed iterators for ``make_iterator``, ``make_key_iterator``,
221
+ ``make_value_iterator``.
222
+ `#4876 <https://github.com/pybind/pybind11/pull/4876>`_
223
+
224
+ * Add several missing type name specializations.
225
+ `#5073 <https://github.com/pybind/pybind11/pull/5073>`_
226
+
227
+ * Change docstring render for ``py::buffer``, ``py::sequence`` and
228
+ ``py::handle`` (to ``Buffer``, ``Sequence``, ``Any``).
229
+ `#4831 <https://github.com/pybind/pybind11/pull/4831>`_
230
+
231
+ * Fixed ``base_enum.__str__`` docstring.
232
+ `#4827 <https://github.com/pybind/pybind11/pull/4827>`_
233
+
234
+ * Enforce single line docstring signatures.
235
+ `#4735 <https://github.com/pybind/pybind11/pull/4735>`_
236
+
237
+ * Special 'typed' wrappers now available in ``typing.h`` to annotate tuple, dict,
238
+ list, set, and function.
239
+ `#4259 <https://github.com/pybind/pybind11/pull/4259>`_
240
+
241
+ * Create ``handle_type_name`` specialization to type-hint variable length tuples.
242
+ `#5051 <https://github.com/pybind/pybind11/pull/5051>`_
243
+
244
+ .. fix(build)
245
+
246
+ * Setting ``PYBIND11_FINDPYTHON`` to OFF will force the old FindPythonLibs mechanism to be used.
247
+ `#5042 <https://github.com/pybind/pybind11/pull/5042>`_
248
+
249
+ * Skip empty ``PYBIND11_PYTHON_EXECUTABLE_LAST`` for the first cmake run.
250
+ `#4856 <https://github.com/pybind/pybind11/pull/4856>`_
251
+
252
+ * Fix FindPython mode exports & avoid ``pkg_resources`` if
253
+ ``importlib.metadata`` available.
254
+ `#4941 <https://github.com/pybind/pybind11/pull/4941>`_
255
+
256
+ * ``Python_ADDITIONAL_VERSIONS`` (classic search) now includes 3.12.
257
+ `#4909 <https://github.com/pybind/pybind11/pull/4909>`_
258
+
259
+ * ``pybind11.pc`` is now relocatable by default as long as install destinations
260
+ are not absolute paths.
261
+ `#4830 <https://github.com/pybind/pybind11/pull/4830>`_
262
+
263
+ * Correctly detect CMake FindPython removal when used as a subdirectory.
264
+ `#4806 <https://github.com/pybind/pybind11/pull/4806>`_
265
+
266
+ * Don't require the libs component on CMake 3.18+ when using
267
+ PYBIND11_FINDPYTHON (fixes manylinux builds).
268
+ `#4805 <https://github.com/pybind/pybind11/pull/4805>`_
269
+
270
+ * ``pybind11_strip`` is no longer automatically applied when
271
+ ``CMAKE_BUILD_TYPE`` is unset.
272
+ `#4780 <https://github.com/pybind/pybind11/pull/4780>`_
273
+
274
+ * Support ``DEBUG_POSFIX`` correctly for debug builds.
275
+ `#4761 <https://github.com/pybind/pybind11/pull/4761>`_
276
+
277
+ * Hardcode lto/thin lto for Emscripten cross-compiles.
278
+ `#4642 <https://github.com/pybind/pybind11/pull/4642>`_
279
+
280
+ * Upgrade maximum supported CMake version to 3.27 to fix CMP0148 warnings.
281
+ `#4786 <https://github.com/pybind/pybind11/pull/4786>`_
282
+
283
+ Documentation:
284
+
285
+ * Small fix to grammar in ``functions.rst``.
286
+ `#4791 <https://github.com/pybind/pybind11/pull/4791>`_
287
+
288
+ * Remove upper bound in example pyproject.toml for setuptools.
289
+ `#4774 <https://github.com/pybind/pybind11/pull/4774>`_
290
+
291
+ CI:
292
+
293
+ * CI: Update NVHPC to 23.5 and Ubuntu 20.04.
294
+ `#4764 <https://github.com/pybind/pybind11/pull/4764>`_
295
+
296
+ * Test on PyPy 3.10.
297
+ `#4714 <https://github.com/pybind/pybind11/pull/4714>`_
298
+
299
+ Other:
300
+
301
+ * Use Ruff formatter instead of Black.
302
+ `#4912 <https://github.com/pybind/pybind11/pull/4912>`_
303
+
304
+ * An ``assert()`` was added to help Coverty avoid generating a false positive.
305
+ `#4817 <https://github.com/pybind/pybind11/pull/4817>`_
306
+
307
+
308
+ Version 2.11.1 (July 17, 2023)
309
+ ------------------------------
310
+
311
+ Changes:
312
+
313
+ * ``PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF`` is now provided as an option
314
+ for disabling the default-on ``PyGILState_Check()``'s in
315
+ ``pybind11::handle``'s ``inc_ref()`` & ``dec_ref()``.
316
+ `#4753 <https://github.com/pybind/pybind11/pull/4753>`_
317
+
318
+ * ``PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF`` was disabled for PyPy in general
319
+ (not just PyPy Windows).
320
+ `#4751 <https://github.com/pybind/pybind11/pull/4751>`_
321
+
322
+
323
+ Version 2.11.0 (July 14, 2023)
324
+ ------------------------------
325
+
326
+ New features:
327
+
328
+ * The newly added ``pybind11::detail::is_move_constructible`` trait can be
329
+ specialized for cases in which ``std::is_move_constructible`` does not work
330
+ as needed. This is very similar to the long-established
331
+ ``pybind11::detail::is_copy_constructible``.
332
+ `#4631 <https://github.com/pybind/pybind11/pull/4631>`_
333
+
334
+ * Introduce ``recursive_container_traits``.
335
+ `#4623 <https://github.com/pybind/pybind11/pull/4623>`_
336
+
337
+ * ``pybind11/type_caster_pyobject_ptr.h`` was added to support automatic
338
+ wrapping of APIs that make use of ``PyObject *``. This header needs to
339
+ included explicitly (i.e. it is not included implicitly
340
+ with ``pybind/pybind11.h``).
341
+ `#4601 <https://github.com/pybind/pybind11/pull/4601>`_
342
+
343
+ * ``format_descriptor<>`` & ``npy_format_descriptor<>`` ``PyObject *``
344
+ specializations were added. The latter enables ``py::array_t<PyObject *>``
345
+ to/from-python conversions.
346
+ `#4674 <https://github.com/pybind/pybind11/pull/4674>`_
347
+
348
+ * ``buffer_info`` gained an ``item_type_is_equivalent_to<T>()`` member
349
+ function.
350
+ `#4674 <https://github.com/pybind/pybind11/pull/4674>`_
351
+
352
+ * The ``capsule`` API gained a user-friendly constructor
353
+ (``py::capsule(ptr, "name", dtor)``).
354
+ `#4720 <https://github.com/pybind/pybind11/pull/4720>`_
355
+
356
+ Changes:
357
+
358
+ * ``PyGILState_Check()``'s in ``pybind11::handle``'s ``inc_ref()`` &
359
+ ``dec_ref()`` are now enabled by default again.
360
+ `#4246 <https://github.com/pybind/pybind11/pull/4246>`_
361
+
362
+ * ``py::initialize_interpreter()`` using ``PyConfig_InitPythonConfig()``
363
+ instead of ``PyConfig_InitIsolatedConfig()``, to obtain complete
364
+ ``sys.path``.
365
+ `#4473 <https://github.com/pybind/pybind11/pull/4473>`_
366
+
367
+ * Cast errors now always include Python type information, even if
368
+ ``PYBIND11_DETAILED_ERROR_MESSAGES`` is not defined. This increases binary
369
+ sizes slightly (~1.5%) but the error messages are much more informative.
370
+ `#4463 <https://github.com/pybind/pybind11/pull/4463>`_
371
+
372
+ * The docstring generation for the ``std::array``-list caster was fixed.
373
+ Previously, signatures included the size of the list in a non-standard,
374
+ non-spec compliant way. The new format conforms to PEP 593.
375
+ **Tooling for processing the docstrings may need to be updated accordingly.**
376
+ `#4679 <https://github.com/pybind/pybind11/pull/4679>`_
377
+
378
+ * Setter return values (which are inaccessible for all practical purposes) are
379
+ no longer converted to Python (only to be discarded).
380
+ `#4621 <https://github.com/pybind/pybind11/pull/4621>`_
381
+
382
+ * Allow lambda specified to function definition to be ``noexcept(true)``
383
+ in C++17.
384
+ `#4593 <https://github.com/pybind/pybind11/pull/4593>`_
385
+
386
+ * Get rid of recursive template instantiations for concatenating type
387
+ signatures on C++17 and higher.
388
+ `#4587 <https://github.com/pybind/pybind11/pull/4587>`_
389
+
390
+ * Compatibility with Python 3.12 (beta). Note that the minimum pybind11
391
+ ABI version for Python 3.12 is version 5. (The default ABI version
392
+ for Python versions up to and including 3.11 is still version 4.).
393
+ `#4570 <https://github.com/pybind/pybind11/pull/4570>`_
394
+
395
+ * With ``PYBIND11_INTERNALS_VERSION 5`` (default for Python 3.12+), MSVC builds
396
+ use ``std::hash<std::type_index>`` and ``std::equal_to<std::type_index>``
397
+ instead of string-based type comparisons. This resolves issues when binding
398
+ types defined in the unnamed namespace.
399
+ `#4319 <https://github.com/pybind/pybind11/pull/4319>`_
400
+
401
+ * Python exception ``__notes__`` (introduced with Python 3.11) are now added to
402
+ the ``error_already_set::what()`` output.
403
+ `#4678 <https://github.com/pybind/pybind11/pull/4678>`_
404
+
405
+ Build system improvements:
406
+
407
+ * CMake 3.27 support was added, CMake 3.4 support was dropped.
408
+ FindPython will be used if ``FindPythonInterp`` is not present.
409
+ `#4719 <https://github.com/pybind/pybind11/pull/4719>`_
410
+
411
+ * Update clang-tidy to 15 in CI.
412
+ `#4387 <https://github.com/pybind/pybind11/pull/4387>`_
413
+
414
+ * Moved the linting framework over to Ruff.
415
+ `#4483 <https://github.com/pybind/pybind11/pull/4483>`_
416
+
417
+ * Skip ``lto`` checks and target generation when
418
+ ``CMAKE_INTERPROCEDURAL_OPTIMIZATION`` is defined.
419
+ `#4643 <https://github.com/pybind/pybind11/pull/4643>`_
420
+
421
+ * No longer inject ``-stdlib=libc++``, not needed for modern Pythons
422
+ (macOS 10.9+).
423
+ `#4639 <https://github.com/pybind/pybind11/pull/4639>`_
424
+
425
+ * PyPy 3.10 support was added, PyPy 3.7 support was dropped.
426
+ `#4728 <https://github.com/pybind/pybind11/pull/4728>`_
427
+
428
+ * Testing with Python 3.12 beta releases was added.
429
+ `#4713 <https://github.com/pybind/pybind11/pull/4713>`_
430
+
431
+
432
+ Version 2.10.4 (Mar 16, 2023)
433
+ -----------------------------
434
+
435
+ Changes:
436
+
437
+ * ``python3 -m pybind11`` gained a ``--version`` option (prints the version and
438
+ exits).
439
+ `#4526 <https://github.com/pybind/pybind11/pull/4526>`_
440
+
441
+ Bug Fixes:
442
+
443
+ * Fix a warning when pydebug is enabled on Python 3.11.
444
+ `#4461 <https://github.com/pybind/pybind11/pull/4461>`_
445
+
446
+ * Ensure ``gil_scoped_release`` RAII is non-copyable.
447
+ `#4490 <https://github.com/pybind/pybind11/pull/4490>`_
448
+
449
+ * Ensure the tests dir does not show up with new versions of setuptools.
450
+ `#4510 <https://github.com/pybind/pybind11/pull/4510>`_
451
+
452
+ * Better stacklevel for a warning in setuptools helpers.
453
+ `#4516 <https://github.com/pybind/pybind11/pull/4516>`_
454
+
455
+ Version 2.10.3 (Jan 3, 2023)
456
+ ----------------------------
457
+
458
+ Changes:
459
+
460
+ * Temporarily made our GIL status assertions (added in 2.10.2) disabled by
461
+ default (re-enable manually by defining
462
+ ``PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF``, will be enabled in 2.11).
463
+ `#4432 <https://github.com/pybind/pybind11/pull/4432>`_
464
+
465
+ * Improved error messages when ``inc_ref``/``dec_ref`` are called with an
466
+ invalid GIL state.
467
+ `#4427 <https://github.com/pybind/pybind11/pull/4427>`_
468
+ `#4436 <https://github.com/pybind/pybind11/pull/4436>`_
469
+
470
+ Bug Fixes:
471
+
472
+ * Some minor touchups found by static analyzers.
473
+ `#4440 <https://github.com/pybind/pybind11/pull/4440>`_
474
+
475
+
476
+ Version 2.10.2 (Dec 20, 2022)
477
+ -----------------------------
478
+
479
+ Changes:
480
+
481
+ * ``scoped_interpreter`` constructor taking ``PyConfig``.
482
+ `#4330 <https://github.com/pybind/pybind11/pull/4330>`_
483
+
484
+ * ``pybind11/eigen/tensor.h`` adds converters to and from ``Eigen::Tensor`` and
485
+ ``Eigen::TensorMap``.
486
+ `#4201 <https://github.com/pybind/pybind11/pull/4201>`_
487
+
488
+ * ``PyGILState_Check()``'s were integrated to ``pybind11::handle``
489
+ ``inc_ref()`` & ``dec_ref()``. The added GIL checks are guarded by
490
+ ``PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF``, which is the default only if
491
+ ``NDEBUG`` is not defined. (Made non-default in 2.10.3, will be active in 2.11)
492
+ `#4246 <https://github.com/pybind/pybind11/pull/4246>`_
493
+
494
+ * Add option for enable/disable enum members in docstring.
495
+ `#2768 <https://github.com/pybind/pybind11/pull/2768>`_
496
+
497
+ * Fixed typing of ``KeysView``, ``ValuesView`` and ``ItemsView`` in ``bind_map``.
498
+ `#4353 <https://github.com/pybind/pybind11/pull/4353>`_
499
+
500
+ Bug fixes:
501
+
502
+ * Bug fix affecting only Python 3.6 under very specific, uncommon conditions:
503
+ move ``PyEval_InitThreads()`` call to the correct location.
504
+ `#4350 <https://github.com/pybind/pybind11/pull/4350>`_
505
+
506
+ * Fix segfault bug when passing foreign native functions to functional.h.
507
+ `#4254 <https://github.com/pybind/pybind11/pull/4254>`_
508
+
509
+ Build system improvements:
510
+
511
+ * Support setting PYTHON_LIBRARIES manually for Windows ARM cross-compilation
512
+ (classic mode).
513
+ `#4406 <https://github.com/pybind/pybind11/pull/4406>`_
514
+
515
+ * Extend IPO/LTO detection for ICX (a.k.a IntelLLVM) compiler.
516
+ `#4402 <https://github.com/pybind/pybind11/pull/4402>`_
517
+
518
+ * Allow calling ``find_package(pybind11 CONFIG)`` multiple times from separate
519
+ directories in the same CMake project and properly link Python (new mode).
520
+ `#4401 <https://github.com/pybind/pybind11/pull/4401>`_
521
+
522
+ * ``multiprocessing_set_spawn`` in pytest fixture for added safety.
523
+ `#4377 <https://github.com/pybind/pybind11/pull/4377>`_
524
+
525
+ * Fixed a bug in two pybind11/tools cmake scripts causing "Unknown arguments specified" errors.
526
+ `#4327 <https://github.com/pybind/pybind11/pull/4327>`_
527
+
528
+
529
+
530
+ Version 2.10.1 (Oct 31, 2022)
531
+ -----------------------------
532
+
533
+ This is the first version to fully support embedding the newly released Python 3.11.
534
+
535
+ Changes:
536
+
537
+ * Allow ``pybind11::capsule`` constructor to take null destructor pointers.
538
+ `#4221 <https://github.com/pybind/pybind11/pull/4221>`_
539
+
540
+ * ``embed.h`` was changed so that ``PYTHONPATH`` is used also with Python 3.11
541
+ (established behavior).
542
+ `#4119 <https://github.com/pybind/pybind11/pull/4119>`_
543
+
544
+ * A ``PYBIND11_SIMPLE_GIL_MANAGEMENT`` option was added (cmake, C++ define),
545
+ along with many additional tests in ``test_gil_scoped.py``. The option may be
546
+ useful to try when debugging GIL-related issues, to determine if the more
547
+ complex default implementation is or is not to blame. See #4216 for
548
+ background. WARNING: Please be careful to not create ODR violations when
549
+ using the option: everything that is linked together with mutual symbol
550
+ visibility needs to be rebuilt.
551
+ `#4216 <https://github.com/pybind/pybind11/pull/4216>`_
552
+
553
+ * ``PYBIND11_EXPORT_EXCEPTION`` was made non-empty only under macOS. This makes
554
+ Linux builds safer, and enables the removal of warning suppression pragmas for
555
+ Windows.
556
+ `#4298 <https://github.com/pybind/pybind11/pull/4298>`_
557
+
558
+ Bug fixes:
559
+
560
+ * Fixed a bug where ``UnicodeDecodeError`` was not propagated from various
561
+ ``py::str`` ctors when decoding surrogate utf characters.
562
+ `#4294 <https://github.com/pybind/pybind11/pull/4294>`_
563
+
564
+ * Revert perfect forwarding for ``make_iterator``. This broke at least one
565
+ valid use case. May revisit later.
566
+ `#4234 <https://github.com/pybind/pybind11/pull/4234>`_
567
+
568
+ * Fix support for safe casts to ``void*`` (regression in 2.10.0).
569
+ `#4275 <https://github.com/pybind/pybind11/pull/4275>`_
570
+
571
+ * Fix ``char8_t`` support (regression in 2.9).
572
+ `#4278 <https://github.com/pybind/pybind11/pull/4278>`_
573
+
574
+ * Unicode surrogate character in Python exception message leads to process
575
+ termination in ``error_already_set::what()``.
576
+ `#4297 <https://github.com/pybind/pybind11/pull/4297>`_
577
+
578
+ * Fix MSVC 2019 v.1924 & C++14 mode error for ``overload_cast``.
579
+ `#4188 <https://github.com/pybind/pybind11/pull/4188>`_
580
+
581
+ * Make augmented assignment operators non-const for the object-api. Behavior
582
+ was previously broken for augmented assignment operators.
583
+ `#4065 <https://github.com/pybind/pybind11/pull/4065>`_
584
+
585
+ * Add proper error checking to C++ bindings for Python list append and insert.
586
+ `#4208 <https://github.com/pybind/pybind11/pull/4208>`_
587
+
588
+ * Work-around for Nvidia's CUDA nvcc compiler in versions 11.4.0 - 11.8.0.
589
+ `#4220 <https://github.com/pybind/pybind11/pull/4220>`_
590
+
591
+ * A workaround for PyPy was added in the ``py::error_already_set``
592
+ implementation, related to PR `#1895 <https://github.com/pybind/pybind11/pull/1895>`_
593
+ released with v2.10.0.
594
+ `#4079 <https://github.com/pybind/pybind11/pull/4079>`_
595
+
596
+ * Fixed compiler errors when C++23 ``std::forward_like`` is available.
597
+ `#4136 <https://github.com/pybind/pybind11/pull/4136>`_
598
+
599
+ * Properly raise exceptions in contains methods (like when an object in unhashable).
600
+ `#4209 <https://github.com/pybind/pybind11/pull/4209>`_
601
+
602
+ * Further improve another error in exception handling.
603
+ `#4232 <https://github.com/pybind/pybind11/pull/4232>`_
604
+
605
+ * ``get_local_internals()`` was made compatible with
606
+ ``finalize_interpreter()``, fixing potential freezes during interpreter
607
+ finalization.
608
+ `#4192 <https://github.com/pybind/pybind11/pull/4192>`_
609
+
610
+ Performance and style:
611
+
612
+ * Reserve space in set and STL map casters if possible. This will prevent
613
+ unnecessary rehashing / resizing by knowing the number of keys ahead of time
614
+ for Python to C++ casting. This improvement will greatly speed up the casting
615
+ of large unordered maps and sets.
616
+ `#4194 <https://github.com/pybind/pybind11/pull/4194>`_
617
+
618
+ * GIL RAII scopes are non-copyable to avoid potential bugs.
619
+ `#4183 <https://github.com/pybind/pybind11/pull/4183>`_
620
+
621
+ * Explicitly default all relevant ctors for pytypes in the ``PYBIND11_OBJECT``
622
+ macros and enforce the clang-tidy checks ``modernize-use-equals-default`` in
623
+ macros as well.
624
+ `#4017 <https://github.com/pybind/pybind11/pull/4017>`_
625
+
626
+ * Optimize iterator advancement in C++ bindings.
627
+ `#4237 <https://github.com/pybind/pybind11/pull/4237>`_
628
+
629
+ * Use the modern ``PyObject_GenericGetDict`` and ``PyObject_GenericSetDict``
630
+ for handling dynamic attribute dictionaries.
631
+ `#4106 <https://github.com/pybind/pybind11/pull/4106>`_
632
+
633
+ * Document that users should use ``PYBIND11_NAMESPACE`` instead of using ``pybind11`` when
634
+ opening namespaces. Using namespace declarations and namespace qualification
635
+ remain the same as ``pybind11``. This is done to ensure consistent symbol
636
+ visibility.
637
+ `#4098 <https://github.com/pybind/pybind11/pull/4098>`_
638
+
639
+ * Mark ``detail::forward_like`` as constexpr.
640
+ `#4147 <https://github.com/pybind/pybind11/pull/4147>`_
641
+
642
+ * Optimize unpacking_collector when processing ``arg_v`` arguments.
643
+ `#4219 <https://github.com/pybind/pybind11/pull/4219>`_
644
+
645
+ * Optimize casting C++ object to ``None``.
646
+ `#4269 <https://github.com/pybind/pybind11/pull/4269>`_
647
+
648
+
649
+ Build system improvements:
650
+
651
+ * CMake: revert overwrite behavior, now opt-in with ``PYBIND11_PYTHONLIBS_OVERRWRITE OFF``.
652
+ `#4195 <https://github.com/pybind/pybind11/pull/4195>`_
653
+
654
+ * Include a pkg-config file when installing pybind11, such as in the Python
655
+ package.
656
+ `#4077 <https://github.com/pybind/pybind11/pull/4077>`_
657
+
658
+ * Avoid stripping debug symbols when ``CMAKE_BUILD_TYPE`` is set to ``DEBUG``
659
+ instead of ``Debug``.
660
+ `#4078 <https://github.com/pybind/pybind11/pull/4078>`_
661
+
662
+ * Followup to `#3948 <https://github.com/pybind/pybind11/pull/3948>`_, fixing vcpkg again.
663
+ `#4123 <https://github.com/pybind/pybind11/pull/4123>`_
664
+
665
+ Version 2.10.0 (Jul 15, 2022)
666
+ -----------------------------
667
+
668
+ Removed support for Python 2.7, Python 3.5, and MSVC 2015. Support for MSVC
669
+ 2017 is limited due to availability of CI runners; we highly recommend MSVC
670
+ 2019 or 2022 be used. Initial support added for Python 3.11.
671
+
672
+ New features:
673
+
674
+ * ``py::anyset`` & ``py::frozenset`` were added, with copying (cast) to
675
+ ``std::set`` (similar to ``set``).
676
+ `#3901 <https://github.com/pybind/pybind11/pull/3901>`_
677
+
678
+ * Support bytearray casting to string.
679
+ `#3707 <https://github.com/pybind/pybind11/pull/3707>`_
680
+
681
+ * ``type_caster<std::monostate>`` was added. ``std::monostate`` is a tag type
682
+ that allows ``std::variant`` to act as an optional, or allows default
683
+ construction of a ``std::variant`` holding a non-default constructible type.
684
+ `#3818 <https://github.com/pybind/pybind11/pull/3818>`_
685
+
686
+ * ``pybind11::capsule::set_name`` added to mutate the name of the capsule instance.
687
+ `#3866 <https://github.com/pybind/pybind11/pull/3866>`_
688
+
689
+ * NumPy: dtype constructor from type number added, accessors corresponding to
690
+ Python API ``dtype.num``, ``dtype.byteorder``, ``dtype.flags`` and
691
+ ``dtype.alignment`` added.
692
+ `#3868 <https://github.com/pybind/pybind11/pull/3868>`_
693
+
694
+
695
+ Changes:
696
+
697
+ * Python 3.6 is now the minimum supported version.
698
+ `#3688 <https://github.com/pybind/pybind11/pull/3688>`_
699
+ `#3719 <https://github.com/pybind/pybind11/pull/3719>`_
700
+
701
+ * The minimum version for MSVC is now 2017.
702
+ `#3722 <https://github.com/pybind/pybind11/pull/3722>`_
703
+
704
+ * Fix issues with CPython 3.11 betas and add to supported test matrix.
705
+ `#3923 <https://github.com/pybind/pybind11/pull/3923>`_
706
+
707
+ * ``error_already_set`` is now safer and more performant, especially for
708
+ exceptions with long tracebacks, by delaying computation.
709
+ `#1895 <https://github.com/pybind/pybind11/pull/1895>`_
710
+
711
+ * Improve exception handling in python ``str`` bindings.
712
+ `#3826 <https://github.com/pybind/pybind11/pull/3826>`_
713
+
714
+ * The bindings for capsules now have more consistent exception handling.
715
+ `#3825 <https://github.com/pybind/pybind11/pull/3825>`_
716
+
717
+ * ``PYBIND11_OBJECT_CVT`` and ``PYBIND11_OBJECT_CVT_DEFAULT`` macro can now be
718
+ used to define classes in namespaces other than pybind11.
719
+ `#3797 <https://github.com/pybind/pybind11/pull/3797>`_
720
+
721
+ * Error printing code now uses ``PYBIND11_DETAILED_ERROR_MESSAGES`` instead of
722
+ requiring ``NDEBUG``, allowing use with release builds if desired.
723
+ `#3913 <https://github.com/pybind/pybind11/pull/3913>`_
724
+
725
+ * Implicit conversion of the literal ``0`` to ``pybind11::handle`` is now disabled.
726
+ `#4008 <https://github.com/pybind/pybind11/pull/4008>`_
727
+
728
+
729
+ Bug fixes:
730
+
731
+ * Fix exception handling when ``pybind11::weakref()`` fails.
732
+ `#3739 <https://github.com/pybind/pybind11/pull/3739>`_
733
+
734
+ * ``module_::def_submodule`` was missing proper error handling. This is fixed now.
735
+ `#3973 <https://github.com/pybind/pybind11/pull/3973>`_
736
+
737
+ * The behavior or ``error_already_set`` was made safer and the highly opaque
738
+ "Unknown internal error occurred" message was replaced with a more helpful
739
+ message.
740
+ `#3982 <https://github.com/pybind/pybind11/pull/3982>`_
741
+
742
+ * ``error_already_set::what()`` now handles non-normalized exceptions correctly.
743
+ `#3971 <https://github.com/pybind/pybind11/pull/3971>`_
744
+
745
+ * Support older C++ compilers where filesystem is not yet part of the standard
746
+ library and is instead included in ``std::experimental::filesystem``.
747
+ `#3840 <https://github.com/pybind/pybind11/pull/3840>`_
748
+
749
+ * Fix ``-Wfree-nonheap-object`` warnings produced by GCC by avoiding returning
750
+ pointers to static objects with ``return_value_policy::take_ownership``.
751
+ `#3946 <https://github.com/pybind/pybind11/pull/3946>`_
752
+
753
+ * Fix cast from pytype rvalue to another pytype.
754
+ `#3949 <https://github.com/pybind/pybind11/pull/3949>`_
755
+
756
+ * Ensure proper behavior when garbage collecting classes with dynamic attributes in Python >=3.9.
757
+ `#4051 <https://github.com/pybind/pybind11/pull/4051>`_
758
+
759
+ * A couple long-standing ``PYBIND11_NAMESPACE``
760
+ ``__attribute__((visibility("hidden")))`` inconsistencies are now fixed
761
+ (affects only unusual environments).
762
+ `#4043 <https://github.com/pybind/pybind11/pull/4043>`_
763
+
764
+ * ``pybind11::detail::get_internals()`` is now resilient to in-flight Python
765
+ exceptions.
766
+ `#3981 <https://github.com/pybind/pybind11/pull/3981>`_
767
+
768
+ * Arrays with a dimension of size 0 are now properly converted to dynamic Eigen
769
+ matrices (more common in NumPy 1.23).
770
+ `#4038 <https://github.com/pybind/pybind11/pull/4038>`_
771
+
772
+ * Avoid catching unrelated errors when importing NumPy.
773
+ `#3974 <https://github.com/pybind/pybind11/pull/3974>`_
774
+
775
+ Performance and style:
776
+
777
+ * Added an accessor overload of ``(object &&key)`` to reference steal the
778
+ object when using python types as keys. This prevents unnecessary reference
779
+ count overhead for attr, dictionary, tuple, and sequence look ups. Added
780
+ additional regression tests. Fixed a performance bug the caused accessor
781
+ assignments to potentially perform unnecessary copies.
782
+ `#3970 <https://github.com/pybind/pybind11/pull/3970>`_
783
+
784
+ * Perfect forward all args of ``make_iterator``.
785
+ `#3980 <https://github.com/pybind/pybind11/pull/3980>`_
786
+
787
+ * Avoid potential bug in pycapsule destructor by adding an ``error_guard`` to
788
+ one of the dtors.
789
+ `#3958 <https://github.com/pybind/pybind11/pull/3958>`_
790
+
791
+ * Optimize dictionary access in ``strip_padding`` for numpy.
792
+ `#3994 <https://github.com/pybind/pybind11/pull/3994>`_
793
+
794
+ * ``stl_bind.h`` bindings now take slice args as a const-ref.
795
+ `#3852 <https://github.com/pybind/pybind11/pull/3852>`_
796
+
797
+ * Made slice constructor more consistent, and improve performance of some
798
+ casters by allowing reference stealing.
799
+ `#3845 <https://github.com/pybind/pybind11/pull/3845>`_
800
+
801
+ * Change numpy dtype from_args method to use const ref.
802
+ `#3878 <https://github.com/pybind/pybind11/pull/3878>`_
803
+
804
+ * Follow rule of three to ensure ``PyErr_Restore`` is called only once.
805
+ `#3872 <https://github.com/pybind/pybind11/pull/3872>`_
806
+
807
+ * Added missing perfect forwarding for ``make_iterator`` functions.
808
+ `#3860 <https://github.com/pybind/pybind11/pull/3860>`_
809
+
810
+ * Optimize c++ to python function casting by using the rvalue caster.
811
+ `#3966 <https://github.com/pybind/pybind11/pull/3966>`_
812
+
813
+ * Optimize Eigen sparse matrix casting by removing unnecessary temporary.
814
+ `#4064 <https://github.com/pybind/pybind11/pull/4064>`_
815
+
816
+ * Avoid potential implicit copy/assignment constructors causing double free in
817
+ ``strdup_gaurd``.
818
+ `#3905 <https://github.com/pybind/pybind11/pull/3905>`_
819
+
820
+ * Enable clang-tidy checks ``misc-definitions-in-headers``,
821
+ ``modernize-loop-convert``, and ``modernize-use-nullptr``.
822
+ `#3881 <https://github.com/pybind/pybind11/pull/3881>`_
823
+ `#3988 <https://github.com/pybind/pybind11/pull/3988>`_
824
+
825
+
826
+ Build system improvements:
827
+
828
+ * CMake: Fix file extension on Windows with cp36 and cp37 using FindPython.
829
+ `#3919 <https://github.com/pybind/pybind11/pull/3919>`_
830
+
831
+ * CMake: Support multiple Python targets (such as on vcpkg).
832
+ `#3948 <https://github.com/pybind/pybind11/pull/3948>`_
833
+
834
+ * CMake: Fix issue with NVCC on Windows.
835
+ `#3947 <https://github.com/pybind/pybind11/pull/3947>`_
836
+
837
+ * CMake: Drop the bitness check on cross compiles (like targeting WebAssembly
838
+ via Emscripten).
839
+ `#3959 <https://github.com/pybind/pybind11/pull/3959>`_
840
+
841
+ * Add MSVC builds in debug mode to CI.
842
+ `#3784 <https://github.com/pybind/pybind11/pull/3784>`_
843
+
844
+ * MSVC 2022 C++20 coverage was added to GitHub Actions, including Eigen.
845
+ `#3732 <https://github.com/pybind/pybind11/pull/3732>`_,
846
+ `#3741 <https://github.com/pybind/pybind11/pull/3741>`_
847
+
848
+
849
+ Backend and tidying up:
850
+
851
+ * New theme for the documentation.
852
+ `#3109 <https://github.com/pybind/pybind11/pull/3109>`_
853
+
854
+ * Remove idioms in code comments. Use more inclusive language.
855
+ `#3809 <https://github.com/pybind/pybind11/pull/3809>`_
856
+
857
+ * ``#include <iostream>`` was removed from the ``pybind11/stl.h`` header. Your
858
+ project may break if it has a transitive dependency on this include. The fix
859
+ is to "Include What You Use".
860
+ `#3928 <https://github.com/pybind/pybind11/pull/3928>`_
861
+
862
+ * Avoid ``setup.py <command>`` usage in internal tests.
863
+ `#3734 <https://github.com/pybind/pybind11/pull/3734>`_
864
+
865
+
866
+ Version 2.9.2 (Mar 29, 2022)
867
+ ----------------------------
868
+
869
+ Changes:
870
+
871
+ * Enum now has an ``__index__`` method on Python <3.8 too.
872
+ `#3700 <https://github.com/pybind/pybind11/pull/3700>`_
873
+
874
+ * Local internals are now cleared after finalizing the interpreter.
875
+ `#3744 <https://github.com/pybind/pybind11/pull/3744>`_
876
+
877
+ Bug fixes:
878
+
879
+ * Better support for Python 3.11 alphas.
880
+ `#3694 <https://github.com/pybind/pybind11/pull/3694>`_
881
+
882
+ * ``PYBIND11_TYPE_CASTER`` now uses fully qualified symbols, so it can be used
883
+ outside of ``pybind11::detail``.
884
+ `#3758 <https://github.com/pybind/pybind11/pull/3758>`_
885
+
886
+ * Some fixes for PyPy 3.9.
887
+ `#3768 <https://github.com/pybind/pybind11/pull/3768>`_
888
+
889
+ * Fixed a potential memleak in PyPy in ``get_type_override``.
890
+ `#3774 <https://github.com/pybind/pybind11/pull/3774>`_
891
+
892
+ * Fix usage of ``VISIBILITY_INLINES_HIDDEN``.
893
+ `#3721 <https://github.com/pybind/pybind11/pull/3721>`_
894
+
895
+
896
+ Build system improvements:
897
+
898
+ * Uses ``sysconfig`` module to determine installation locations on Python >=
899
+ 3.10, instead of ``distutils`` which has been deprecated.
900
+ `#3764 <https://github.com/pybind/pybind11/pull/3764>`_
901
+
902
+ * Support Catch 2.13.5+ (supporting GLIBC 2.34+).
903
+ `#3679 <https://github.com/pybind/pybind11/pull/3679>`_
904
+
905
+ * Fix test failures with numpy 1.22 by ignoring whitespace when comparing
906
+ ``str()`` of dtypes.
907
+ `#3682 <https://github.com/pybind/pybind11/pull/3682>`_
908
+
909
+
910
+ Backend and tidying up:
911
+
912
+ * clang-tidy: added ``readability-qualified-auto``,
913
+ ``readability-braces-around-statements``,
914
+ ``cppcoreguidelines-prefer-member-initializer``,
915
+ ``clang-analyzer-optin.performance.Padding``,
916
+ ``cppcoreguidelines-pro-type-static-cast-downcast``, and
917
+ ``readability-inconsistent-declaration-parameter-name``.
918
+ `#3702 <https://github.com/pybind/pybind11/pull/3702>`_,
919
+ `#3699 <https://github.com/pybind/pybind11/pull/3699>`_,
920
+ `#3716 <https://github.com/pybind/pybind11/pull/3716>`_,
921
+ `#3709 <https://github.com/pybind/pybind11/pull/3709>`_
922
+
923
+ * clang-format was added to the pre-commit actions, and the entire code base
924
+ automatically reformatted (after several iterations preparing for this leap).
925
+ `#3713 <https://github.com/pybind/pybind11/pull/3713>`_
926
+
927
+
928
+ Version 2.9.1 (Feb 2, 2022)
929
+ ---------------------------
930
+
931
+ Changes:
932
+
933
+ * If possible, attach Python exception with ``py::raise_from`` to ``TypeError``
934
+ when casting from C++ to Python. This will give additional info if Python
935
+ exceptions occur in the caster. Adds a test case of trying to convert a set
936
+ from C++ to Python when the hash function is not defined in Python.
937
+ `#3605 <https://github.com/pybind/pybind11/pull/3605>`_
938
+
939
+ * Add a mapping of C++11 nested exceptions to their Python exception
940
+ equivalent using ``py::raise_from``. This attaches the nested exceptions in
941
+ Python using the ``__cause__`` field.
942
+ `#3608 <https://github.com/pybind/pybind11/pull/3608>`_
943
+
944
+ * Propagate Python exception traceback using ``raise_from`` if a pybind11
945
+ function runs out of overloads.
946
+ `#3671 <https://github.com/pybind/pybind11/pull/3671>`_
947
+
948
+ * ``py::multiple_inheritance`` is now only needed when C++ bases are hidden
949
+ from pybind11.
950
+ `#3650 <https://github.com/pybind/pybind11/pull/3650>`_ and
951
+ `#3659 <https://github.com/pybind/pybind11/pull/3659>`_
952
+
953
+
954
+ Bug fixes:
955
+
956
+ * Remove a boolean cast in ``numpy.h`` that causes MSVC C4800 warnings when
957
+ compiling against Python 3.10 or newer.
958
+ `#3669 <https://github.com/pybind/pybind11/pull/3669>`_
959
+
960
+ * Render ``py::bool_`` and ``py::float_`` as ``bool`` and ``float``
961
+ respectively.
962
+ `#3622 <https://github.com/pybind/pybind11/pull/3622>`_
963
+
964
+ Build system improvements:
965
+
966
+ * Fix CMake extension suffix computation on Python 3.10+.
967
+ `#3663 <https://github.com/pybind/pybind11/pull/3663>`_
968
+
969
+ * Allow ``CMAKE_ARGS`` to override CMake args in pybind11's own ``setup.py``.
970
+ `#3577 <https://github.com/pybind/pybind11/pull/3577>`_
971
+
972
+ * Remove a few deprecated c-headers.
973
+ `#3610 <https://github.com/pybind/pybind11/pull/3610>`_
974
+
975
+ * More uniform handling of test targets.
976
+ `#3590 <https://github.com/pybind/pybind11/pull/3590>`_
977
+
978
+ * Add clang-tidy readability check to catch potentially swapped function args.
979
+ `#3611 <https://github.com/pybind/pybind11/pull/3611>`_
980
+
981
+
982
+ Version 2.9.0 (Dec 28, 2021)
983
+ ----------------------------
984
+
985
+ This is the last version to support Python 2.7 and 3.5.
986
+
987
+ New Features:
988
+
989
+ * Allow ``py::args`` to be followed by other arguments; the remaining arguments
990
+ are implicitly keyword-only, as if a ``py::kw_only{}`` annotation had been
991
+ used.
992
+ `#3402 <https://github.com/pybind/pybind11/pull/3402>`_
993
+
994
+ Changes:
995
+
996
+ * Make str/bytes/memoryview more interoperable with ``std::string_view``.
997
+ `#3521 <https://github.com/pybind/pybind11/pull/3521>`_
998
+
999
+ * Replace ``_`` with ``const_name`` in internals, avoid defining ``pybind::_``
1000
+ if ``_`` defined as macro (common gettext usage)
1001
+ `#3423 <https://github.com/pybind/pybind11/pull/3423>`_
1002
+
1003
+
1004
+ Bug fixes:
1005
+
1006
+ * Fix a rare warning about extra copy in an Eigen constructor.
1007
+ `#3486 <https://github.com/pybind/pybind11/pull/3486>`_
1008
+
1009
+ * Fix caching of the C++ overrides.
1010
+ `#3465 <https://github.com/pybind/pybind11/pull/3465>`_
1011
+
1012
+ * Add missing ``std::forward`` calls to some ``cpp_function`` overloads.
1013
+ `#3443 <https://github.com/pybind/pybind11/pull/3443>`_
1014
+
1015
+ * Support PyPy 7.3.7 and the PyPy3.8 beta. Test python-3.11 on PRs with the
1016
+ ``python dev`` label.
1017
+ `#3419 <https://github.com/pybind/pybind11/pull/3419>`_
1018
+
1019
+ * Replace usage of deprecated ``Eigen::MappedSparseMatrix`` with
1020
+ ``Eigen::Map<Eigen::SparseMatrix<...>>`` for Eigen 3.3+.
1021
+ `#3499 <https://github.com/pybind/pybind11/pull/3499>`_
1022
+
1023
+ * Tweaks to support Microsoft Visual Studio 2022.
1024
+ `#3497 <https://github.com/pybind/pybind11/pull/3497>`_
1025
+
1026
+ Build system improvements:
1027
+
1028
+ * Nicer CMake printout and IDE organisation for pybind11's own tests.
1029
+ `#3479 <https://github.com/pybind/pybind11/pull/3479>`_
1030
+
1031
+ * CMake: report version type as part of the version string to avoid a spurious
1032
+ space in the package status message.
1033
+ `#3472 <https://github.com/pybind/pybind11/pull/3472>`_
1034
+
1035
+ * Flags starting with ``-g`` in ``$CFLAGS`` and ``$CPPFLAGS`` are no longer
1036
+ overridden by ``.Pybind11Extension``.
1037
+ `#3436 <https://github.com/pybind/pybind11/pull/3436>`_
1038
+
1039
+ * Ensure ThreadPool is closed in ``setup_helpers``.
1040
+ `#3548 <https://github.com/pybind/pybind11/pull/3548>`_
1041
+
1042
+ * Avoid LTS on ``mips64`` and ``ppc64le`` (reported broken).
1043
+ `#3557 <https://github.com/pybind/pybind11/pull/3557>`_
1044
+
1045
+
1046
+ v2.8.1 (Oct 27, 2021)
1047
+ ---------------------
1048
+
1049
+ Changes and additions:
1050
+
1051
+ * The simple namespace creation shortcut added in 2.8.0 was deprecated due to
1052
+ usage of CPython internal API, and will be removed soon. Use
1053
+ ``py::module_::import("types").attr("SimpleNamespace")``.
1054
+ `#3374 <https://github.com/pybinyyd/pybind11/pull/3374>`_
1055
+
1056
+ * Add C++ Exception type to throw and catch ``AttributeError``. Useful for
1057
+ defining custom ``__setattr__`` and ``__getattr__`` methods.
1058
+ `#3387 <https://github.com/pybind/pybind11/pull/3387>`_
1059
+
1060
+ Fixes:
1061
+
1062
+ * Fixed the potential for dangling references when using properties with
1063
+ ``std::optional`` types.
1064
+ `#3376 <https://github.com/pybind/pybind11/pull/3376>`_
1065
+
1066
+ * Modernize usage of ``PyCodeObject`` on Python 3.9+ (moving toward support for
1067
+ Python 3.11a1)
1068
+ `#3368 <https://github.com/pybind/pybind11/pull/3368>`_
1069
+
1070
+ * A long-standing bug in ``eigen.h`` was fixed (originally PR #3343). The bug
1071
+ was unmasked by newly added ``static_assert``'s in the Eigen 3.4.0 release.
1072
+ `#3352 <https://github.com/pybind/pybind11/pull/3352>`_
1073
+
1074
+ * Support multiple raw inclusion of CMake helper files (Conan.io does this for
1075
+ multi-config generators).
1076
+ `#3420 <https://github.com/pybind/pybind11/pull/3420>`_
1077
+
1078
+ * Fix harmless warning on upcoming CMake 3.22.
1079
+ `#3368 <https://github.com/pybind/pybind11/pull/3368>`_
1080
+
1081
+ * Fix 2.8.0 regression with MSVC 2017 + C++17 mode + Python 3.
1082
+ `#3407 <https://github.com/pybind/pybind11/pull/3407>`_
1083
+
1084
+ * Fix 2.8.0 regression that caused undefined behavior (typically
1085
+ segfaults) in ``make_key_iterator``/``make_value_iterator`` if dereferencing
1086
+ the iterator returned a temporary value instead of a reference.
1087
+ `#3348 <https://github.com/pybind/pybind11/pull/3348>`_
1088
+
1089
+
1090
+ v2.8.0 (Oct 4, 2021)
1091
+ --------------------
1092
+
1093
+ New features:
1094
+
1095
+ * Added ``py::raise_from`` to enable chaining exceptions.
1096
+ `#3215 <https://github.com/pybind/pybind11/pull/3215>`_
1097
+
1098
+ * Allow exception translators to be optionally registered local to a module
1099
+ instead of applying globally across all pybind11 modules. Use
1100
+ ``register_local_exception_translator(ExceptionTranslator&& translator)``
1101
+ instead of ``register_exception_translator(ExceptionTranslator&&
1102
+ translator)`` to keep your exception remapping code local to the module.
1103
+ `#2650 <https://github.com/pybinyyd/pybind11/pull/2650>`_
1104
+
1105
+ * Add ``make_simple_namespace`` function for instantiating Python
1106
+ ``SimpleNamespace`` objects. **Deprecated in 2.8.1.**
1107
+ `#2840 <https://github.com/pybind/pybind11/pull/2840>`_
1108
+
1109
+ * ``pybind11::scoped_interpreter`` and ``initialize_interpreter`` have new
1110
+ arguments to allow ``sys.argv`` initialization.
1111
+ `#2341 <https://github.com/pybind/pybind11/pull/2341>`_
1112
+
1113
+ * Allow Python builtins to be used as callbacks in CPython.
1114
+ `#1413 <https://github.com/pybind/pybind11/pull/1413>`_
1115
+
1116
+ * Added ``view`` to view arrays with a different datatype.
1117
+ `#987 <https://github.com/pybind/pybind11/pull/987>`_
1118
+
1119
+ * Implemented ``reshape`` on arrays.
1120
+ `#984 <https://github.com/pybind/pybind11/pull/984>`_
1121
+
1122
+ * Enable defining custom ``__new__`` methods on classes by fixing bug
1123
+ preventing overriding methods if they have non-pybind11 siblings.
1124
+ `#3265 <https://github.com/pybind/pybind11/pull/3265>`_
1125
+
1126
+ * Add ``make_value_iterator()``, and fix ``make_key_iterator()`` to return
1127
+ references instead of copies.
1128
+ `#3293 <https://github.com/pybind/pybind11/pull/3293>`_
1129
+
1130
+ * Improve the classes generated by ``bind_map``: `#3310 <https://github.com/pybind/pybind11/pull/3310>`_
1131
+
1132
+ * Change ``.items`` from an iterator to a dictionary view.
1133
+ * Add ``.keys`` and ``.values`` (both dictionary views).
1134
+ * Allow ``__contains__`` to take any object.
1135
+
1136
+ * ``pybind11::custom_type_setup`` was added, for customizing the
1137
+ ``PyHeapTypeObject`` corresponding to a class, which may be useful for
1138
+ enabling garbage collection support, among other things.
1139
+ `#3287 <https://github.com/pybind/pybind11/pull/3287>`_
1140
+
1141
+
1142
+ Changes:
1143
+
1144
+ * Set ``__file__`` constant when running ``eval_file`` in an embedded interpreter.
1145
+ `#3233 <https://github.com/pybind/pybind11/pull/3233>`_
1146
+
1147
+ * Python objects and (C++17) ``std::optional`` now accepted in ``py::slice``
1148
+ constructor.
1149
+ `#1101 <https://github.com/pybind/pybind11/pull/1101>`_
1150
+
1151
+ * The pybind11 proxy types ``str``, ``bytes``, ``bytearray``, ``tuple``,
1152
+ ``list`` now consistently support passing ``ssize_t`` values for sizes and
1153
+ indexes. Previously, only ``size_t`` was accepted in several interfaces.
1154
+ `#3219 <https://github.com/pybind/pybind11/pull/3219>`_
1155
+
1156
+ * Avoid evaluating ``PYBIND11_TLS_REPLACE_VALUE`` arguments more than once.
1157
+ `#3290 <https://github.com/pybind/pybind11/pull/3290>`_
1158
+
1159
+ Fixes:
1160
+
1161
+ * Bug fix: enum value's ``__int__`` returning non-int when underlying type is
1162
+ bool or of char type.
1163
+ `#1334 <https://github.com/pybind/pybind11/pull/1334>`_
1164
+
1165
+ * Fixes bug in setting error state in Capsule's pointer methods.
1166
+ `#3261 <https://github.com/pybind/pybind11/pull/3261>`_
1167
+
1168
+ * A long-standing memory leak in ``py::cpp_function::initialize`` was fixed.
1169
+ `#3229 <https://github.com/pybind/pybind11/pull/3229>`_
1170
+
1171
+ * Fixes thread safety for some ``pybind11::type_caster`` which require lifetime
1172
+ extension, such as for ``std::string_view``.
1173
+ `#3237 <https://github.com/pybind/pybind11/pull/3237>`_
1174
+
1175
+ * Restore compatibility with gcc 4.8.4 as distributed by ubuntu-trusty, linuxmint-17.
1176
+ `#3270 <https://github.com/pybind/pybind11/pull/3270>`_
1177
+
1178
+
1179
+ Build system improvements:
1180
+
1181
+ * Fix regression in CMake Python package config: improper use of absolute path.
1182
+ `#3144 <https://github.com/pybind/pybind11/pull/3144>`_
1183
+
1184
+ * Cached Python version information could become stale when CMake was re-run
1185
+ with a different Python version. The build system now detects this and
1186
+ updates this information.
1187
+ `#3299 <https://github.com/pybind/pybind11/pull/3299>`_
1188
+
1189
+ * Specified UTF8-encoding in setup.py calls of open().
1190
+ `#3137 <https://github.com/pybind/pybind11/pull/3137>`_
1191
+
1192
+ * Fix a harmless warning from CMake 3.21 with the classic Python discovery.
1193
+ `#3220 <https://github.com/pybind/pybind11/pull/3220>`_
1194
+
1195
+ * Eigen repo and version can now be specified as cmake options.
1196
+ `#3324 <https://github.com/pybind/pybind11/pull/3324>`_
1197
+
1198
+
1199
+ Backend and tidying up:
1200
+
1201
+ * Reduced thread-local storage required for keeping alive temporary data for
1202
+ type conversion to one key per ABI version, rather than one key per extension
1203
+ module. This makes the total thread-local storage required by pybind11 2
1204
+ keys per ABI version.
1205
+ `#3275 <https://github.com/pybind/pybind11/pull/3275>`_
1206
+
1207
+ * Optimize NumPy array construction with additional moves.
1208
+ `#3183 <https://github.com/pybind/pybind11/pull/3183>`_
1209
+
1210
+ * Conversion to ``std::string`` and ``std::string_view`` now avoids making an
1211
+ extra copy of the data on Python >= 3.3.
1212
+ `#3257 <https://github.com/pybind/pybind11/pull/3257>`_
1213
+
1214
+ * Remove const modifier from certain C++ methods on Python collections
1215
+ (``list``, ``set``, ``dict``) such as (``clear()``, ``append()``,
1216
+ ``insert()``, etc...) and annotated them with ``py-non-const``.
1217
+
1218
+ * Enable readability ``clang-tidy-const-return`` and remove useless consts.
1219
+ `#3254 <https://github.com/pybind/pybind11/pull/3254>`_
1220
+ `#3194 <https://github.com/pybind/pybind11/pull/3194>`_
1221
+
1222
+ * The clang-tidy ``google-explicit-constructor`` option was enabled.
1223
+ `#3250 <https://github.com/pybind/pybind11/pull/3250>`_
1224
+
1225
+ * Mark a pytype move constructor as noexcept (perf).
1226
+ `#3236 <https://github.com/pybind/pybind11/pull/3236>`_
1227
+
1228
+ * Enable clang-tidy check to guard against inheritance slicing.
1229
+ `#3210 <https://github.com/pybind/pybind11/pull/3210>`_
1230
+
1231
+ * Legacy warning suppression pragma were removed from eigen.h. On Unix
1232
+ platforms, please use -isystem for Eigen include directories, to suppress
1233
+ compiler warnings originating from Eigen headers. Note that CMake does this
1234
+ by default. No adjustments are needed for Windows.
1235
+ `#3198 <https://github.com/pybind/pybind11/pull/3198>`_
1236
+
1237
+ * Format pybind11 with isort consistent ordering of imports
1238
+ `#3195 <https://github.com/pybind/pybind11/pull/3195>`_
1239
+
1240
+ * The warnings-suppression "pragma clamp" at the top/bottom of pybind11 was
1241
+ removed, clearing the path to refactoring and IWYU cleanup.
1242
+ `#3186 <https://github.com/pybind/pybind11/pull/3186>`_
1243
+
1244
+ * Enable most bugprone checks in clang-tidy and fix the found potential bugs
1245
+ and poor coding styles.
1246
+ `#3166 <https://github.com/pybind/pybind11/pull/3166>`_
1247
+
1248
+ * Add ``clang-tidy-readability`` rules to make boolean casts explicit improving
1249
+ code readability. Also enabled other misc and readability clang-tidy checks.
1250
+ `#3148 <https://github.com/pybind/pybind11/pull/3148>`_
1251
+
1252
+ * Move object in ``.pop()`` for list.
1253
+ `#3116 <https://github.com/pybind/pybind11/pull/3116>`_
1254
+
1255
+
1256
+
1257
+
1258
+ v2.7.1 (Aug 3, 2021)
1259
+ ---------------------
1260
+
1261
+ Minor missing functionality added:
1262
+
1263
+ * Allow Python builtins to be used as callbacks in CPython.
1264
+ `#1413 <https://github.com/pybind/pybind11/pull/1413>`_
1265
+
1266
+ Bug fixes:
1267
+
1268
+ * Fix regression in CMake Python package config: improper use of absolute path.
1269
+ `#3144 <https://github.com/pybind/pybind11/pull/3144>`_
1270
+
1271
+ * Fix Mingw64 and add to the CI testing matrix.
1272
+ `#3132 <https://github.com/pybind/pybind11/pull/3132>`_
1273
+
1274
+ * Specified UTF8-encoding in setup.py calls of open().
1275
+ `#3137 <https://github.com/pybind/pybind11/pull/3137>`_
1276
+
1277
+ * Add clang-tidy-readability rules to make boolean casts explicit improving
1278
+ code readability. Also enabled other misc and readability clang-tidy checks.
1279
+ `#3148 <https://github.com/pybind/pybind11/pull/3148>`_
1280
+
1281
+ * Move object in ``.pop()`` for list.
1282
+ `#3116 <https://github.com/pybind/pybind11/pull/3116>`_
1283
+
1284
+ Backend and tidying up:
1285
+
1286
+ * Removed and fixed warning suppressions.
1287
+ `#3127 <https://github.com/pybind/pybind11/pull/3127>`_
1288
+ `#3129 <https://github.com/pybind/pybind11/pull/3129>`_
1289
+ `#3135 <https://github.com/pybind/pybind11/pull/3135>`_
1290
+ `#3141 <https://github.com/pybind/pybind11/pull/3141>`_
1291
+ `#3142 <https://github.com/pybind/pybind11/pull/3142>`_
1292
+ `#3150 <https://github.com/pybind/pybind11/pull/3150>`_
1293
+ `#3152 <https://github.com/pybind/pybind11/pull/3152>`_
1294
+ `#3160 <https://github.com/pybind/pybind11/pull/3160>`_
1295
+ `#3161 <https://github.com/pybind/pybind11/pull/3161>`_
1296
+
1297
+
1298
+ v2.7.0 (Jul 16, 2021)
1299
+ ---------------------
1300
+
1301
+ New features:
1302
+
1303
+ * Enable ``py::implicitly_convertible<py::none, ...>`` for
1304
+ ``py::class_``-wrapped types.
1305
+ `#3059 <https://github.com/pybind/pybind11/pull/3059>`_
1306
+
1307
+ * Allow function pointer extraction from overloaded functions.
1308
+ `#2944 <https://github.com/pybind/pybind11/pull/2944>`_
1309
+
1310
+ * NumPy: added ``.char_()`` to type which gives the NumPy public ``char``
1311
+ result, which also distinguishes types by bit length (unlike ``.kind()``).
1312
+ `#2864 <https://github.com/pybind/pybind11/pull/2864>`_
1313
+
1314
+ * Add ``pybind11::bytearray`` to manipulate ``bytearray`` similar to ``bytes``.
1315
+ `#2799 <https://github.com/pybind/pybind11/pull/2799>`_
1316
+
1317
+ * ``pybind11/stl/filesystem.h`` registers a type caster that, on C++17/Python
1318
+ 3.6+, converts ``std::filesystem::path`` to ``pathlib.Path`` and any
1319
+ ``os.PathLike`` to ``std::filesystem::path``.
1320
+ `#2730 <https://github.com/pybind/pybind11/pull/2730>`_
1321
+
1322
+ * A ``PYBIND11_VERSION_HEX`` define was added, similar to ``PY_VERSION_HEX``.
1323
+ `#3120 <https://github.com/pybind/pybind11/pull/3120>`_
1324
+
1325
+
1326
+
1327
+ Changes:
1328
+
1329
+ * ``py::str`` changed to exclusively hold ``PyUnicodeObject``. Previously
1330
+ ``py::str`` could also hold ``bytes``, which is probably surprising, was
1331
+ never documented, and can mask bugs (e.g. accidental use of ``py::str``
1332
+ instead of ``py::bytes``).
1333
+ `#2409 <https://github.com/pybind/pybind11/pull/2409>`_
1334
+
1335
+ * Add a safety guard to ensure that the Python GIL is held when C++ calls back
1336
+ into Python via ``object_api<>::operator()`` (e.g. ``py::function``
1337
+ ``__call__``). (This feature is available for Python 3.6+ only.)
1338
+ `#2919 <https://github.com/pybind/pybind11/pull/2919>`_
1339
+
1340
+ * Catch a missing ``self`` argument in calls to ``__init__()``.
1341
+ `#2914 <https://github.com/pybind/pybind11/pull/2914>`_
1342
+
1343
+ * Use ``std::string_view`` if available to avoid a copy when passing an object
1344
+ to a ``std::ostream``.
1345
+ `#3042 <https://github.com/pybind/pybind11/pull/3042>`_
1346
+
1347
+ * An important warning about thread safety was added to the ``iostream.h``
1348
+ documentation; attempts to make ``py::scoped_ostream_redirect`` thread safe
1349
+ have been removed, as it was only partially effective.
1350
+ `#2995 <https://github.com/pybind/pybind11/pull/2995>`_
1351
+
1352
+
1353
+ Fixes:
1354
+
1355
+ * Performance: avoid unnecessary strlen calls.
1356
+ `#3058 <https://github.com/pybind/pybind11/pull/3058>`_
1357
+
1358
+ * Fix auto-generated documentation string when using ``const T`` in
1359
+ ``pyarray_t``.
1360
+ `#3020 <https://github.com/pybind/pybind11/pull/3020>`_
1361
+
1362
+ * Unify error messages thrown by ``simple_collector``/``unpacking_collector``.
1363
+ `#3013 <https://github.com/pybind/pybind11/pull/3013>`_
1364
+
1365
+ * ``pybind11::builtin_exception`` is now explicitly exported, which means the
1366
+ types included/defined in different modules are identical, and exceptions
1367
+ raised in different modules can be caught correctly. The documentation was
1368
+ updated to explain that custom exceptions that are used across module
1369
+ boundaries need to be explicitly exported as well.
1370
+ `#2999 <https://github.com/pybind/pybind11/pull/2999>`_
1371
+
1372
+ * Fixed exception when printing UTF-8 to a ``scoped_ostream_redirect``.
1373
+ `#2982 <https://github.com/pybind/pybind11/pull/2982>`_
1374
+
1375
+ * Pickle support enhancement: ``setstate`` implementation will attempt to
1376
+ ``setattr`` ``__dict__`` only if the unpickled ``dict`` object is not empty,
1377
+ to not force use of ``py::dynamic_attr()`` unnecessarily.
1378
+ `#2972 <https://github.com/pybind/pybind11/pull/2972>`_
1379
+
1380
+ * Allow negative timedelta values to roundtrip.
1381
+ `#2870 <https://github.com/pybind/pybind11/pull/2870>`_
1382
+
1383
+ * Fix unchecked errors could potentially swallow signals/other exceptions.
1384
+ `#2863 <https://github.com/pybind/pybind11/pull/2863>`_
1385
+
1386
+ * Add null pointer check with ``std::localtime``.
1387
+ `#2846 <https://github.com/pybind/pybind11/pull/2846>`_
1388
+
1389
+ * Fix the ``weakref`` constructor from ``py::object`` to create a new
1390
+ ``weakref`` on conversion.
1391
+ `#2832 <https://github.com/pybind/pybind11/pull/2832>`_
1392
+
1393
+ * Avoid relying on exceptions in C++17 when getting a ``shared_ptr`` holder
1394
+ from a ``shared_from_this`` class.
1395
+ `#2819 <https://github.com/pybind/pybind11/pull/2819>`_
1396
+
1397
+ * Allow the codec's exception to be raised instead of :code:`RuntimeError` when
1398
+ casting from :code:`py::str` to :code:`std::string`.
1399
+ `#2903 <https://github.com/pybind/pybind11/pull/2903>`_
1400
+
1401
+
1402
+ Build system improvements:
1403
+
1404
+ * In ``setup_helpers.py``, test for platforms that have some multiprocessing
1405
+ features but lack semaphores, which ``ParallelCompile`` requires.
1406
+ `#3043 <https://github.com/pybind/pybind11/pull/3043>`_
1407
+
1408
+ * Fix ``pybind11_INCLUDE_DIR`` in case ``CMAKE_INSTALL_INCLUDEDIR`` is
1409
+ absolute.
1410
+ `#3005 <https://github.com/pybind/pybind11/pull/3005>`_
1411
+
1412
+ * Fix bug not respecting ``WITH_SOABI`` or ``WITHOUT_SOABI`` to CMake.
1413
+ `#2938 <https://github.com/pybind/pybind11/pull/2938>`_
1414
+
1415
+ * Fix the default ``Pybind11Extension`` compilation flags with a Mingw64 python.
1416
+ `#2921 <https://github.com/pybind/pybind11/pull/2921>`_
1417
+
1418
+ * Clang on Windows: do not pass ``/MP`` (ignored flag).
1419
+ `#2824 <https://github.com/pybind/pybind11/pull/2824>`_
1420
+
1421
+ * ``pybind11.setup_helpers.intree_extensions`` can be used to generate
1422
+ ``Pybind11Extension`` instances from cpp files placed in the Python package
1423
+ source tree.
1424
+ `#2831 <https://github.com/pybind/pybind11/pull/2831>`_
1425
+
1426
+ Backend and tidying up:
1427
+
1428
+ * Enable clang-tidy performance, readability, and modernization checks
1429
+ throughout the codebase to enforce best coding practices.
1430
+ `#3046 <https://github.com/pybind/pybind11/pull/3046>`_,
1431
+ `#3049 <https://github.com/pybind/pybind11/pull/3049>`_,
1432
+ `#3051 <https://github.com/pybind/pybind11/pull/3051>`_,
1433
+ `#3052 <https://github.com/pybind/pybind11/pull/3052>`_,
1434
+ `#3080 <https://github.com/pybind/pybind11/pull/3080>`_, and
1435
+ `#3094 <https://github.com/pybind/pybind11/pull/3094>`_
1436
+
1437
+
1438
+ * Checks for common misspellings were added to the pre-commit hooks.
1439
+ `#3076 <https://github.com/pybind/pybind11/pull/3076>`_
1440
+
1441
+ * Changed ``Werror`` to stricter ``Werror-all`` for Intel compiler and fixed
1442
+ minor issues.
1443
+ `#2948 <https://github.com/pybind/pybind11/pull/2948>`_
1444
+
1445
+ * Fixed compilation with GCC < 5 when the user defines ``_GLIBCXX_USE_CXX11_ABI``.
1446
+ `#2956 <https://github.com/pybind/pybind11/pull/2956>`_
1447
+
1448
+ * Added nox support for easier local testing and linting of contributions.
1449
+ `#3101 <https://github.com/pybind/pybind11/pull/3101>`_ and
1450
+ `#3121 <https://github.com/pybind/pybind11/pull/3121>`_
1451
+
1452
+ * Avoid RTD style issue with docutils 0.17+.
1453
+ `#3119 <https://github.com/pybind/pybind11/pull/3119>`_
1454
+
1455
+ * Support pipx run, such as ``pipx run pybind11 --include`` for a quick compile.
1456
+ `#3117 <https://github.com/pybind/pybind11/pull/3117>`_
1457
+
1458
+
1459
+
1460
+ v2.6.2 (Jan 26, 2021)
1461
+ ---------------------
1462
+
1463
+ Minor missing functionality added:
1464
+
1465
+ * enum: add missing Enum.value property.
1466
+ `#2739 <https://github.com/pybind/pybind11/pull/2739>`_
1467
+
1468
+ * Allow thread termination to be avoided during shutdown for CPython 3.7+ via
1469
+ ``.disarm`` for ``gil_scoped_acquire``/``gil_scoped_release``.
1470
+ `#2657 <https://github.com/pybind/pybind11/pull/2657>`_
1471
+
1472
+ Fixed or improved behavior in a few special cases:
1473
+
1474
+ * Fix bug where the constructor of ``object`` subclasses would not throw on
1475
+ being passed a Python object of the wrong type.
1476
+ `#2701 <https://github.com/pybind/pybind11/pull/2701>`_
1477
+
1478
+ * The ``type_caster`` for integers does not convert Python objects with
1479
+ ``__int__`` anymore with ``noconvert`` or during the first round of trying
1480
+ overloads.
1481
+ `#2698 <https://github.com/pybind/pybind11/pull/2698>`_
1482
+
1483
+ * When casting to a C++ integer, ``__index__`` is always called and not
1484
+ considered as conversion, consistent with Python 3.8+.
1485
+ `#2801 <https://github.com/pybind/pybind11/pull/2801>`_
1486
+
1487
+ Build improvements:
1488
+
1489
+ * Setup helpers: ``extra_compile_args`` and ``extra_link_args`` automatically set by
1490
+ Pybind11Extension are now prepended, which allows them to be overridden
1491
+ by user-set ``extra_compile_args`` and ``extra_link_args``.
1492
+ `#2808 <https://github.com/pybind/pybind11/pull/2808>`_
1493
+
1494
+ * Setup helpers: Don't trigger unused parameter warning.
1495
+ `#2735 <https://github.com/pybind/pybind11/pull/2735>`_
1496
+
1497
+ * CMake: Support running with ``--warn-uninitialized`` active.
1498
+ `#2806 <https://github.com/pybind/pybind11/pull/2806>`_
1499
+
1500
+ * CMake: Avoid error if included from two submodule directories.
1501
+ `#2804 <https://github.com/pybind/pybind11/pull/2804>`_
1502
+
1503
+ * CMake: Fix ``STATIC`` / ``SHARED`` being ignored in FindPython mode.
1504
+ `#2796 <https://github.com/pybind/pybind11/pull/2796>`_
1505
+
1506
+ * CMake: Respect the setting for ``CMAKE_CXX_VISIBILITY_PRESET`` if defined.
1507
+ `#2793 <https://github.com/pybind/pybind11/pull/2793>`_
1508
+
1509
+ * CMake: Fix issue with FindPython2/FindPython3 not working with ``pybind11::embed``.
1510
+ `#2662 <https://github.com/pybind/pybind11/pull/2662>`_
1511
+
1512
+ * CMake: mixing local and installed pybind11's would prioritize the installed
1513
+ one over the local one (regression in 2.6.0).
1514
+ `#2716 <https://github.com/pybind/pybind11/pull/2716>`_
1515
+
1516
+
1517
+ Bug fixes:
1518
+
1519
+ * Fixed segfault in multithreaded environments when using
1520
+ ``scoped_ostream_redirect``.
1521
+ `#2675 <https://github.com/pybind/pybind11/pull/2675>`_
1522
+
1523
+ * Leave docstring unset when all docstring-related options are disabled, rather
1524
+ than set an empty string.
1525
+ `#2745 <https://github.com/pybind/pybind11/pull/2745>`_
1526
+
1527
+ * The module key in builtins that pybind11 uses to store its internals changed
1528
+ from std::string to a python str type (more natural on Python 2, no change on
1529
+ Python 3).
1530
+ `#2814 <https://github.com/pybind/pybind11/pull/2814>`_
1531
+
1532
+ * Fixed assertion error related to unhandled (later overwritten) exception in
1533
+ CPython 3.8 and 3.9 debug builds.
1534
+ `#2685 <https://github.com/pybind/pybind11/pull/2685>`_
1535
+
1536
+ * Fix ``py::gil_scoped_acquire`` assert with CPython 3.9 debug build.
1537
+ `#2683 <https://github.com/pybind/pybind11/pull/2683>`_
1538
+
1539
+ * Fix issue with a test failing on pytest 6.2.
1540
+ `#2741 <https://github.com/pybind/pybind11/pull/2741>`_
1541
+
1542
+ Warning fixes:
1543
+
1544
+ * Fix warning modifying constructor parameter 'flag' that shadows a field of
1545
+ 'set_flag' ``[-Wshadow-field-in-constructor-modified]``.
1546
+ `#2780 <https://github.com/pybind/pybind11/pull/2780>`_
1547
+
1548
+ * Suppressed some deprecation warnings about old-style
1549
+ ``__init__``/``__setstate__`` in the tests.
1550
+ `#2759 <https://github.com/pybind/pybind11/pull/2759>`_
1551
+
1552
+ Valgrind work:
1553
+
1554
+ * Fix invalid access when calling a pybind11 ``__init__`` on a non-pybind11
1555
+ class instance.
1556
+ `#2755 <https://github.com/pybind/pybind11/pull/2755>`_
1557
+
1558
+ * Fixed various minor memory leaks in pybind11's test suite.
1559
+ `#2758 <https://github.com/pybind/pybind11/pull/2758>`_
1560
+
1561
+ * Resolved memory leak in cpp_function initialization when exceptions occurred.
1562
+ `#2756 <https://github.com/pybind/pybind11/pull/2756>`_
1563
+
1564
+ * Added a Valgrind build, checking for leaks and memory-related UB, to CI.
1565
+ `#2746 <https://github.com/pybind/pybind11/pull/2746>`_
1566
+
1567
+ Compiler support:
1568
+
1569
+ * Intel compiler was not activating C++14 support due to a broken define.
1570
+ `#2679 <https://github.com/pybind/pybind11/pull/2679>`_
1571
+
1572
+ * Support ICC and NVIDIA HPC SDK in C++17 mode.
1573
+ `#2729 <https://github.com/pybind/pybind11/pull/2729>`_
1574
+
1575
+ * Support Intel OneAPI compiler (ICC 20.2) and add to CI.
1576
+ `#2573 <https://github.com/pybind/pybind11/pull/2573>`_
1577
+
1578
+
1579
+
1580
+ v2.6.1 (Nov 11, 2020)
1581
+ ---------------------
1582
+
1583
+ * ``py::exec``, ``py::eval``, and ``py::eval_file`` now add the builtins module
1584
+ as ``"__builtins__"`` to their ``globals`` argument, better matching ``exec``
1585
+ and ``eval`` in pure Python.
1586
+ `#2616 <https://github.com/pybind/pybind11/pull/2616>`_
1587
+
1588
+ * ``setup_helpers`` will no longer set a minimum macOS version higher than the
1589
+ current version.
1590
+ `#2622 <https://github.com/pybind/pybind11/pull/2622>`_
1591
+
1592
+ * Allow deleting static properties.
1593
+ `#2629 <https://github.com/pybind/pybind11/pull/2629>`_
1594
+
1595
+ * Seal a leak in ``def_buffer``, cleaning up the ``capture`` object after the
1596
+ ``class_`` object goes out of scope.
1597
+ `#2634 <https://github.com/pybind/pybind11/pull/2634>`_
1598
+
1599
+ * ``pybind11_INCLUDE_DIRS`` was incorrect, potentially causing a regression if
1600
+ it was expected to include ``PYTHON_INCLUDE_DIRS`` (please use targets
1601
+ instead).
1602
+ `#2636 <https://github.com/pybind/pybind11/pull/2636>`_
1603
+
1604
+ * Added parameter names to the ``py::enum_`` constructor and methods, avoiding
1605
+ ``arg0`` in the generated docstrings.
1606
+ `#2637 <https://github.com/pybind/pybind11/pull/2637>`_
1607
+
1608
+ * Added ``needs_recompile`` optional function to the ``ParallelCompiler``
1609
+ helper, to allow a recompile to be skipped based on a user-defined function.
1610
+ `#2643 <https://github.com/pybind/pybind11/pull/2643>`_
1611
+
1612
+
1613
+ v2.6.0 (Oct 21, 2020)
1614
+ ---------------------
1615
+
1616
+ See :ref:`upgrade-guide-2.6` for help upgrading to the new version.
1617
+
1618
+ New features:
1619
+
1620
+ * Keyword-only arguments supported in Python 2 or 3 with ``py::kw_only()``.
1621
+ `#2100 <https://github.com/pybind/pybind11/pull/2100>`_
1622
+
1623
+ * Positional-only arguments supported in Python 2 or 3 with ``py::pos_only()``.
1624
+ `#2459 <https://github.com/pybind/pybind11/pull/2459>`_
1625
+
1626
+ * ``py::is_final()`` class modifier to block subclassing (CPython only).
1627
+ `#2151 <https://github.com/pybind/pybind11/pull/2151>`_
1628
+
1629
+ * Added ``py::prepend()``, allowing a function to be placed at the beginning of
1630
+ the overload chain.
1631
+ `#1131 <https://github.com/pybind/pybind11/pull/1131>`_
1632
+
1633
+ * Access to the type object now provided with ``py::type::of<T>()`` and
1634
+ ``py::type::of(h)``.
1635
+ `#2364 <https://github.com/pybind/pybind11/pull/2364>`_
1636
+
1637
+ * Perfect forwarding support for methods.
1638
+ `#2048 <https://github.com/pybind/pybind11/pull/2048>`_
1639
+
1640
+ * Added ``py::error_already_set::discard_as_unraisable()``.
1641
+ `#2372 <https://github.com/pybind/pybind11/pull/2372>`_
1642
+
1643
+ * ``py::hash`` is now public.
1644
+ `#2217 <https://github.com/pybind/pybind11/pull/2217>`_
1645
+
1646
+ * ``py::class_<union_type>`` is now supported. Note that writing to one data
1647
+ member of the union and reading another (type punning) is UB in C++. Thus
1648
+ pybind11-bound enums should never be used for such conversions.
1649
+ `#2320 <https://github.com/pybind/pybind11/pull/2320>`_.
1650
+
1651
+ * Classes now check local scope when registering members, allowing a subclass
1652
+ to have a member with the same name as a parent (such as an enum).
1653
+ `#2335 <https://github.com/pybind/pybind11/pull/2335>`_
1654
+
1655
+ Code correctness features:
1656
+
1657
+ * Error now thrown when ``__init__`` is forgotten on subclasses.
1658
+ `#2152 <https://github.com/pybind/pybind11/pull/2152>`_
1659
+
1660
+ * Throw error if conversion to a pybind11 type if the Python object isn't a
1661
+ valid instance of that type, such as ``py::bytes(o)`` when ``py::object o``
1662
+ isn't a bytes instance.
1663
+ `#2349 <https://github.com/pybind/pybind11/pull/2349>`_
1664
+
1665
+ * Throw if conversion to ``str`` fails.
1666
+ `#2477 <https://github.com/pybind/pybind11/pull/2477>`_
1667
+
1668
+
1669
+ API changes:
1670
+
1671
+ * ``py::module`` was renamed ``py::module_`` to avoid issues with C++20 when
1672
+ used unqualified, but an alias ``py::module`` is provided for backward
1673
+ compatibility.
1674
+ `#2489 <https://github.com/pybind/pybind11/pull/2489>`_
1675
+
1676
+ * Public constructors for ``py::module_`` have been deprecated; please use
1677
+ ``pybind11::module_::create_extension_module`` if you were using the public
1678
+ constructor (fairly rare after ``PYBIND11_MODULE`` was introduced).
1679
+ `#2552 <https://github.com/pybind/pybind11/pull/2552>`_
1680
+
1681
+ * ``PYBIND11_OVERLOAD*`` macros and ``get_overload`` function replaced by
1682
+ correctly-named ``PYBIND11_OVERRIDE*`` and ``get_override``, fixing
1683
+ inconsistencies in the presence of a closing ``;`` in these macros.
1684
+ ``get_type_overload`` is deprecated.
1685
+ `#2325 <https://github.com/pybind/pybind11/pull/2325>`_
1686
+
1687
+ Packaging / building improvements:
1688
+
1689
+ * The Python package was reworked to be more powerful and useful.
1690
+ `#2433 <https://github.com/pybind/pybind11/pull/2433>`_
1691
+
1692
+ * :ref:`build-setuptools` is easier thanks to a new
1693
+ ``pybind11.setup_helpers`` module, which provides utilities to use
1694
+ setuptools with pybind11. It can be used via PEP 518, ``setup_requires``,
1695
+ or by directly importing or copying ``setup_helpers.py`` into your project.
1696
+
1697
+ * CMake configuration files are now included in the Python package. Use
1698
+ ``pybind11.get_cmake_dir()`` or ``python -m pybind11 --cmakedir`` to get
1699
+ the directory with the CMake configuration files, or include the
1700
+ site-packages location in your ``CMAKE_MODULE_PATH``. Or you can use the
1701
+ new ``pybind11[global]`` extra when you install ``pybind11``, which
1702
+ installs the CMake files and headers into your base environment in the
1703
+ standard location.
1704
+
1705
+ * ``pybind11-config`` is another way to write ``python -m pybind11`` if you
1706
+ have your PATH set up.
1707
+
1708
+ * Added external typing support to the helper module, code from
1709
+ ``import pybind11`` can now be type checked.
1710
+ `#2588 <https://github.com/pybind/pybind11/pull/2588>`_
1711
+
1712
+ * Minimum CMake required increased to 3.4.
1713
+ `#2338 <https://github.com/pybind/pybind11/pull/2338>`_ and
1714
+ `#2370 <https://github.com/pybind/pybind11/pull/2370>`_
1715
+
1716
+ * Full integration with CMake's C++ standard system and compile features
1717
+ replaces ``PYBIND11_CPP_STANDARD``.
1718
+
1719
+ * Generated config file is now portable to different Python/compiler/CMake
1720
+ versions.
1721
+
1722
+ * Virtual environments prioritized if ``PYTHON_EXECUTABLE`` is not set
1723
+ (``venv``, ``virtualenv``, and ``conda``) (similar to the new FindPython
1724
+ mode).
1725
+
1726
+ * Other CMake features now natively supported, like
1727
+ ``CMAKE_INTERPROCEDURAL_OPTIMIZATION``, ``set(CMAKE_CXX_VISIBILITY_PRESET
1728
+ hidden)``.
1729
+
1730
+ * ``CUDA`` as a language is now supported.
1731
+
1732
+ * Helper functions ``pybind11_strip``, ``pybind11_extension``,
1733
+ ``pybind11_find_import`` added, see :doc:`cmake/index`.
1734
+
1735
+ * Optional :ref:`find-python-mode` and :ref:`nopython-mode` with CMake.
1736
+ `#2370 <https://github.com/pybind/pybind11/pull/2370>`_
1737
+
1738
+ * Uninstall target added.
1739
+ `#2265 <https://github.com/pybind/pybind11/pull/2265>`_ and
1740
+ `#2346 <https://github.com/pybind/pybind11/pull/2346>`_
1741
+
1742
+ * ``pybind11_add_module()`` now accepts an optional ``OPT_SIZE`` flag that
1743
+ switches the binding target to size-based optimization if the global build
1744
+ type can not always be fixed to ``MinSizeRel`` (except in debug mode, where
1745
+ optimizations remain disabled). ``MinSizeRel`` or this flag reduces binary
1746
+ size quite substantially (~25% on some platforms).
1747
+ `#2463 <https://github.com/pybind/pybind11/pull/2463>`_
1748
+
1749
+ Smaller or developer focused features and fixes:
1750
+
1751
+ * Moved ``mkdoc.py`` to a new repo, `pybind11-mkdoc`_. There are no longer
1752
+ submodules in the main repo.
1753
+
1754
+ * ``py::memoryview`` segfault fix and update, with new
1755
+ ``py::memoryview::from_memory`` in Python 3, and documentation.
1756
+ `#2223 <https://github.com/pybind/pybind11/pull/2223>`_
1757
+
1758
+ * Fix for ``buffer_info`` on Python 2.
1759
+ `#2503 <https://github.com/pybind/pybind11/pull/2503>`_
1760
+
1761
+ * If ``__eq__`` defined but not ``__hash__``, ``__hash__`` is now set to
1762
+ ``None``.
1763
+ `#2291 <https://github.com/pybind/pybind11/pull/2291>`_
1764
+
1765
+ * ``py::ellipsis`` now also works on Python 2.
1766
+ `#2360 <https://github.com/pybind/pybind11/pull/2360>`_
1767
+
1768
+ * Pointer to ``std::tuple`` & ``std::pair`` supported in cast.
1769
+ `#2334 <https://github.com/pybind/pybind11/pull/2334>`_
1770
+
1771
+ * Small fixes in NumPy support. ``py::array`` now uses ``py::ssize_t`` as first
1772
+ argument type.
1773
+ `#2293 <https://github.com/pybind/pybind11/pull/2293>`_
1774
+
1775
+ * Added missing signature for ``py::array``.
1776
+ `#2363 <https://github.com/pybind/pybind11/pull/2363>`_
1777
+
1778
+ * ``unchecked_mutable_reference`` has access to operator ``()`` and ``[]`` when
1779
+ const.
1780
+ `#2514 <https://github.com/pybind/pybind11/pull/2514>`_
1781
+
1782
+ * ``py::vectorize`` is now supported on functions that return void.
1783
+ `#1969 <https://github.com/pybind/pybind11/pull/1969>`_
1784
+
1785
+ * ``py::capsule`` supports ``get_pointer`` and ``set_pointer``.
1786
+ `#1131 <https://github.com/pybind/pybind11/pull/1131>`_
1787
+
1788
+ * Fix crash when different instances share the same pointer of the same type.
1789
+ `#2252 <https://github.com/pybind/pybind11/pull/2252>`_
1790
+
1791
+ * Fix for ``py::len`` not clearing Python's error state when it fails and throws.
1792
+ `#2575 <https://github.com/pybind/pybind11/pull/2575>`_
1793
+
1794
+ * Bugfixes related to more extensive testing, new GitHub Actions CI.
1795
+ `#2321 <https://github.com/pybind/pybind11/pull/2321>`_
1796
+
1797
+ * Bug in timezone issue in Eastern hemisphere midnight fixed.
1798
+ `#2438 <https://github.com/pybind/pybind11/pull/2438>`_
1799
+
1800
+ * ``std::chrono::time_point`` now works when the resolution is not the same as
1801
+ the system.
1802
+ `#2481 <https://github.com/pybind/pybind11/pull/2481>`_
1803
+
1804
+ * Bug fixed where ``py::array_t`` could accept arrays that did not match the
1805
+ requested ordering.
1806
+ `#2484 <https://github.com/pybind/pybind11/pull/2484>`_
1807
+
1808
+ * Avoid a segfault on some compilers when types are removed in Python.
1809
+ `#2564 <https://github.com/pybind/pybind11/pull/2564>`_
1810
+
1811
+ * ``py::arg::none()`` is now also respected when passing keyword arguments.
1812
+ `#2611 <https://github.com/pybind/pybind11/pull/2611>`_
1813
+
1814
+ * PyPy fixes, PyPy 7.3.x now supported, including PyPy3. (Known issue with
1815
+ PyPy2 and Windows `#2596 <https://github.com/pybind/pybind11/issues/2596>`_).
1816
+ `#2146 <https://github.com/pybind/pybind11/pull/2146>`_
1817
+
1818
+ * CPython 3.9.0 workaround for undefined behavior (macOS segfault).
1819
+ `#2576 <https://github.com/pybind/pybind11/pull/2576>`_
1820
+
1821
+ * CPython 3.9 warning fixes.
1822
+ `#2253 <https://github.com/pybind/pybind11/pull/2253>`_
1823
+
1824
+ * Improved C++20 support, now tested in CI.
1825
+ `#2489 <https://github.com/pybind/pybind11/pull/2489>`_
1826
+ `#2599 <https://github.com/pybind/pybind11/pull/2599>`_
1827
+
1828
+ * Improved but still incomplete debug Python interpreter support.
1829
+ `#2025 <https://github.com/pybind/pybind11/pull/2025>`_
1830
+
1831
+ * NVCC (CUDA 11) now supported and tested in CI.
1832
+ `#2461 <https://github.com/pybind/pybind11/pull/2461>`_
1833
+
1834
+ * NVIDIA PGI compilers now supported and tested in CI.
1835
+ `#2475 <https://github.com/pybind/pybind11/pull/2475>`_
1836
+
1837
+ * At least Intel 18 now explicitly required when compiling with Intel.
1838
+ `#2577 <https://github.com/pybind/pybind11/pull/2577>`_
1839
+
1840
+ * Extensive style checking in CI, with `pre-commit`_ support. Code
1841
+ modernization, checked by clang-tidy.
1842
+
1843
+ * Expanded docs, including new main page, new installing section, and CMake
1844
+ helpers page, along with over a dozen new sections on existing pages.
1845
+
1846
+ * In GitHub, new docs for contributing and new issue templates.
1847
+
1848
+ .. _pre-commit: https://pre-commit.com
1849
+
1850
+ .. _pybind11-mkdoc: https://github.com/pybind/pybind11-mkdoc
1851
+
1852
+ v2.5.0 (Mar 31, 2020)
1853
+ -----------------------------------------------------
1854
+
1855
+ * Use C++17 fold expressions in type casters, if available. This can
1856
+ improve performance during overload resolution when functions have
1857
+ multiple arguments.
1858
+ `#2043 <https://github.com/pybind/pybind11/pull/2043>`_.
1859
+
1860
+ * Changed include directory resolution in ``pybind11/__init__.py``
1861
+ and installation in ``setup.py``. This fixes a number of open issues
1862
+ where pybind11 headers could not be found in certain environments.
1863
+ `#1995 <https://github.com/pybind/pybind11/pull/1995>`_.
1864
+
1865
+ * C++20 ``char8_t`` and ``u8string`` support. `#2026
1866
+ <https://github.com/pybind/pybind11/pull/2026>`_.
1867
+
1868
+ * CMake: search for Python 3.9. `bb9c91
1869
+ <https://github.com/pybind/pybind11/commit/bb9c91>`_.
1870
+
1871
+ * Fixes for MSYS-based build environments.
1872
+ `#2087 <https://github.com/pybind/pybind11/pull/2087>`_,
1873
+ `#2053 <https://github.com/pybind/pybind11/pull/2053>`_.
1874
+
1875
+ * STL bindings for ``std::vector<...>::clear``. `#2074
1876
+ <https://github.com/pybind/pybind11/pull/2074>`_.
1877
+
1878
+ * Read-only flag for ``py::buffer``. `#1466
1879
+ <https://github.com/pybind/pybind11/pull/1466>`_.
1880
+
1881
+ * Exception handling during module initialization.
1882
+ `bf2b031 <https://github.com/pybind/pybind11/commit/bf2b031>`_.
1883
+
1884
+ * Support linking against a CPython debug build.
1885
+ `#2025 <https://github.com/pybind/pybind11/pull/2025>`_.
1886
+
1887
+ * Fixed issues involving the availability and use of aligned ``new`` and
1888
+ ``delete``. `#1988 <https://github.com/pybind/pybind11/pull/1988>`_,
1889
+ `759221 <https://github.com/pybind/pybind11/commit/759221>`_.
1890
+
1891
+ * Fixed a resource leak upon interpreter shutdown.
1892
+ `#2020 <https://github.com/pybind/pybind11/pull/2020>`_.
1893
+
1894
+ * Fixed error handling in the boolean caster.
1895
+ `#1976 <https://github.com/pybind/pybind11/pull/1976>`_.
1896
+
1897
+ v2.4.3 (Oct 15, 2019)
1898
+ -----------------------------------------------------
1899
+
1900
+ * Adapt pybind11 to a C API convention change in Python 3.8. `#1950
1901
+ <https://github.com/pybind/pybind11/pull/1950>`_.
1902
+
1903
+ v2.4.2 (Sep 21, 2019)
1904
+ -----------------------------------------------------
1905
+
1906
+ * Replaced usage of a C++14 only construct. `#1929
1907
+ <https://github.com/pybind/pybind11/pull/1929>`_.
1908
+
1909
+ * Made an ifdef future-proof for Python >= 4. `f3109d
1910
+ <https://github.com/pybind/pybind11/commit/f3109d>`_.
1911
+
1912
+ v2.4.1 (Sep 20, 2019)
1913
+ -----------------------------------------------------
1914
+
1915
+ * Fixed a problem involving implicit conversion from enumerations to integers
1916
+ on Python 3.8. `#1780 <https://github.com/pybind/pybind11/pull/1780>`_.
1917
+
1918
+ v2.4.0 (Sep 19, 2019)
1919
+ -----------------------------------------------------
1920
+
1921
+ * Try harder to keep pybind11-internal data structures separate when there
1922
+ are potential ABI incompatibilities. Fixes crashes that occurred when loading
1923
+ multiple pybind11 extensions that were e.g. compiled by GCC (libstdc++)
1924
+ and Clang (libc++).
1925
+ `#1588 <https://github.com/pybind/pybind11/pull/1588>`_ and
1926
+ `c9f5a <https://github.com/pybind/pybind11/commit/c9f5a>`_.
1927
+
1928
+ * Added support for ``__await__``, ``__aiter__``, and ``__anext__`` protocols.
1929
+ `#1842 <https://github.com/pybind/pybind11/pull/1842>`_.
1930
+
1931
+ * ``pybind11_add_module()``: don't strip symbols when compiling in
1932
+ ``RelWithDebInfo`` mode. `#1980
1933
+ <https://github.com/pybind/pybind11/pull/1980>`_.
1934
+
1935
+ * ``enum_``: Reproduce Python behavior when comparing against invalid values
1936
+ (e.g. ``None``, strings, etc.). Add back support for ``__invert__()``.
1937
+ `#1912 <https://github.com/pybind/pybind11/pull/1912>`_,
1938
+ `#1907 <https://github.com/pybind/pybind11/pull/1907>`_.
1939
+
1940
+ * List insertion operation for ``py::list``.
1941
+ Added ``.empty()`` to all collection types.
1942
+ Added ``py::set::contains()`` and ``py::dict::contains()``.
1943
+ `#1887 <https://github.com/pybind/pybind11/pull/1887>`_,
1944
+ `#1884 <https://github.com/pybind/pybind11/pull/1884>`_,
1945
+ `#1888 <https://github.com/pybind/pybind11/pull/1888>`_.
1946
+
1947
+ * ``py::details::overload_cast_impl`` is available in C++11 mode, can be used
1948
+ like ``overload_cast`` with an additional set of parentheses.
1949
+ `#1581 <https://github.com/pybind/pybind11/pull/1581>`_.
1950
+
1951
+ * Fixed ``get_include()`` on Conda.
1952
+ `#1877 <https://github.com/pybind/pybind11/pull/1877>`_.
1953
+
1954
+ * ``stl_bind.h``: negative indexing support.
1955
+ `#1882 <https://github.com/pybind/pybind11/pull/1882>`_.
1956
+
1957
+ * Minor CMake fix to add MinGW compatibility.
1958
+ `#1851 <https://github.com/pybind/pybind11/pull/1851>`_.
1959
+
1960
+ * GIL-related fixes.
1961
+ `#1836 <https://github.com/pybind/pybind11/pull/1836>`_,
1962
+ `8b90b <https://github.com/pybind/pybind11/commit/8b90b>`_.
1963
+
1964
+ * Other very minor/subtle fixes and improvements.
1965
+ `#1329 <https://github.com/pybind/pybind11/pull/1329>`_,
1966
+ `#1910 <https://github.com/pybind/pybind11/pull/1910>`_,
1967
+ `#1863 <https://github.com/pybind/pybind11/pull/1863>`_,
1968
+ `#1847 <https://github.com/pybind/pybind11/pull/1847>`_,
1969
+ `#1890 <https://github.com/pybind/pybind11/pull/1890>`_,
1970
+ `#1860 <https://github.com/pybind/pybind11/pull/1860>`_,
1971
+ `#1848 <https://github.com/pybind/pybind11/pull/1848>`_,
1972
+ `#1821 <https://github.com/pybind/pybind11/pull/1821>`_,
1973
+ `#1837 <https://github.com/pybind/pybind11/pull/1837>`_,
1974
+ `#1833 <https://github.com/pybind/pybind11/pull/1833>`_,
1975
+ `#1748 <https://github.com/pybind/pybind11/pull/1748>`_,
1976
+ `#1852 <https://github.com/pybind/pybind11/pull/1852>`_.
1977
+
1978
+ v2.3.0 (June 11, 2019)
1979
+ -----------------------------------------------------
1980
+
1981
+ * Significantly reduced module binary size (10-20%) when compiled in C++11 mode
1982
+ with GCC/Clang, or in any mode with MSVC. Function signatures are now always
1983
+ precomputed at compile time (this was previously only available in C++14 mode
1984
+ for non-MSVC compilers).
1985
+ `#934 <https://github.com/pybind/pybind11/pull/934>`_.
1986
+
1987
+ * Add basic support for tag-based static polymorphism, where classes
1988
+ provide a method to returns the desired type of an instance.
1989
+ `#1326 <https://github.com/pybind/pybind11/pull/1326>`_.
1990
+
1991
+ * Python type wrappers (``py::handle``, ``py::object``, etc.)
1992
+ now support map Python's number protocol onto C++ arithmetic
1993
+ operators such as ``operator+``, ``operator/=``, etc.
1994
+ `#1511 <https://github.com/pybind/pybind11/pull/1511>`_.
1995
+
1996
+ * A number of improvements related to enumerations:
1997
+
1998
+ 1. The ``enum_`` implementation was rewritten from scratch to reduce
1999
+ code bloat. Rather than instantiating a full implementation for each
2000
+ enumeration, most code is now contained in a generic base class.
2001
+ `#1511 <https://github.com/pybind/pybind11/pull/1511>`_.
2002
+
2003
+ 2. The ``value()`` method of ``py::enum_`` now accepts an optional
2004
+ docstring that will be shown in the documentation of the associated
2005
+ enumeration. `#1160 <https://github.com/pybind/pybind11/pull/1160>`_.
2006
+
2007
+ 3. check for already existing enum value and throw an error if present.
2008
+ `#1453 <https://github.com/pybind/pybind11/pull/1453>`_.
2009
+
2010
+ * Support for over-aligned type allocation via C++17's aligned ``new``
2011
+ statement. `#1582 <https://github.com/pybind/pybind11/pull/1582>`_.
2012
+
2013
+ * Added ``py::ellipsis()`` method for slicing of multidimensional NumPy arrays
2014
+ `#1502 <https://github.com/pybind/pybind11/pull/1502>`_.
2015
+
2016
+ * Numerous Improvements to the ``mkdoc.py`` script for extracting documentation
2017
+ from C++ header files.
2018
+ `#1788 <https://github.com/pybind/pybind11/pull/1788>`_.
2019
+
2020
+ * ``pybind11_add_module()``: allow including Python as a ``SYSTEM`` include path.
2021
+ `#1416 <https://github.com/pybind/pybind11/pull/1416>`_.
2022
+
2023
+ * ``pybind11/stl.h`` does not convert strings to ``vector<string>`` anymore.
2024
+ `#1258 <https://github.com/pybind/pybind11/issues/1258>`_.
2025
+
2026
+ * Mark static methods as such to fix auto-generated Sphinx documentation.
2027
+ `#1732 <https://github.com/pybind/pybind11/pull/1732>`_.
2028
+
2029
+ * Re-throw forced unwind exceptions (e.g. during pthread termination).
2030
+ `#1208 <https://github.com/pybind/pybind11/pull/1208>`_.
2031
+
2032
+ * Added ``__contains__`` method to the bindings of maps (``std::map``,
2033
+ ``std::unordered_map``).
2034
+ `#1767 <https://github.com/pybind/pybind11/pull/1767>`_.
2035
+
2036
+ * Improvements to ``gil_scoped_acquire``.
2037
+ `#1211 <https://github.com/pybind/pybind11/pull/1211>`_.
2038
+
2039
+ * Type caster support for ``std::deque<T>``.
2040
+ `#1609 <https://github.com/pybind/pybind11/pull/1609>`_.
2041
+
2042
+ * Support for ``std::unique_ptr`` holders, whose deleters differ between a base and derived
2043
+ class. `#1353 <https://github.com/pybind/pybind11/pull/1353>`_.
2044
+
2045
+ * Construction of STL array/vector-like data structures from
2046
+ iterators. Added an ``extend()`` operation.
2047
+ `#1709 <https://github.com/pybind/pybind11/pull/1709>`_,
2048
+
2049
+ * CMake build system improvements for projects that include non-C++
2050
+ files (e.g. plain C, CUDA) in ``pybind11_add_module`` et al.
2051
+ `#1678 <https://github.com/pybind/pybind11/pull/1678>`_.
2052
+
2053
+ * Fixed asynchronous invocation and deallocation of Python functions
2054
+ wrapped in ``std::function``.
2055
+ `#1595 <https://github.com/pybind/pybind11/pull/1595>`_.
2056
+
2057
+ * Fixes regarding return value policy propagation in STL type casters.
2058
+ `#1603 <https://github.com/pybind/pybind11/pull/1603>`_.
2059
+
2060
+ * Fixed scoped enum comparisons.
2061
+ `#1571 <https://github.com/pybind/pybind11/pull/1571>`_.
2062
+
2063
+ * Fixed iostream redirection for code that releases the GIL.
2064
+ `#1368 <https://github.com/pybind/pybind11/pull/1368>`_,
2065
+
2066
+ * A number of CI-related fixes.
2067
+ `#1757 <https://github.com/pybind/pybind11/pull/1757>`_,
2068
+ `#1744 <https://github.com/pybind/pybind11/pull/1744>`_,
2069
+ `#1670 <https://github.com/pybind/pybind11/pull/1670>`_.
2070
+
2071
+ v2.2.4 (September 11, 2018)
2072
+ -----------------------------------------------------
2073
+
2074
+ * Use new Python 3.7 Thread Specific Storage (TSS) implementation if available.
2075
+ `#1454 <https://github.com/pybind/pybind11/pull/1454>`_,
2076
+ `#1517 <https://github.com/pybind/pybind11/pull/1517>`_.
2077
+
2078
+ * Fixes for newer MSVC versions and C++17 mode.
2079
+ `#1347 <https://github.com/pybind/pybind11/pull/1347>`_,
2080
+ `#1462 <https://github.com/pybind/pybind11/pull/1462>`_.
2081
+
2082
+ * Propagate return value policies to type-specific casters
2083
+ when casting STL containers.
2084
+ `#1455 <https://github.com/pybind/pybind11/pull/1455>`_.
2085
+
2086
+ * Allow ostream-redirection of more than 1024 characters.
2087
+ `#1479 <https://github.com/pybind/pybind11/pull/1479>`_.
2088
+
2089
+ * Set ``Py_DEBUG`` define when compiling against a debug Python build.
2090
+ `#1438 <https://github.com/pybind/pybind11/pull/1438>`_.
2091
+
2092
+ * Untangle integer logic in number type caster to work for custom
2093
+ types that may only be castable to a restricted set of builtin types.
2094
+ `#1442 <https://github.com/pybind/pybind11/pull/1442>`_.
2095
+
2096
+ * CMake build system: Remember Python version in cache file.
2097
+ `#1434 <https://github.com/pybind/pybind11/pull/1434>`_.
2098
+
2099
+ * Fix for custom smart pointers: use ``std::addressof`` to obtain holder
2100
+ address instead of ``operator&``.
2101
+ `#1435 <https://github.com/pybind/pybind11/pull/1435>`_.
2102
+
2103
+ * Properly report exceptions thrown during module initialization.
2104
+ `#1362 <https://github.com/pybind/pybind11/pull/1362>`_.
2105
+
2106
+ * Fixed a segmentation fault when creating empty-shaped NumPy array.
2107
+ `#1371 <https://github.com/pybind/pybind11/pull/1371>`_.
2108
+
2109
+ * The version of Intel C++ compiler must be >= 2017, and this is now checked by
2110
+ the header files. `#1363 <https://github.com/pybind/pybind11/pull/1363>`_.
2111
+
2112
+ * A few minor typo fixes and improvements to the test suite, and
2113
+ patches that silence compiler warnings.
2114
+
2115
+ * Vectors now support construction from generators, as well as ``extend()`` from a
2116
+ list or generator.
2117
+ `#1496 <https://github.com/pybind/pybind11/pull/1496>`_.
2118
+
2119
+
2120
+ v2.2.3 (April 29, 2018)
2121
+ -----------------------------------------------------
2122
+
2123
+ * The pybind11 header location detection was replaced by a new implementation
2124
+ that no longer depends on ``pip`` internals (the recently released ``pip``
2125
+ 10 has restricted access to this API).
2126
+ `#1190 <https://github.com/pybind/pybind11/pull/1190>`_.
2127
+
2128
+ * Small adjustment to an implementation detail to work around a compiler segmentation fault in Clang 3.3/3.4.
2129
+ `#1350 <https://github.com/pybind/pybind11/pull/1350>`_.
2130
+
2131
+ * The minimal supported version of the Intel compiler was >= 17.0 since
2132
+ pybind11 v2.1. This check is now explicit, and a compile-time error is raised
2133
+ if the compiler meet the requirement.
2134
+ `#1363 <https://github.com/pybind/pybind11/pull/1363>`_.
2135
+
2136
+ * Fixed an endianness-related fault in the test suite.
2137
+ `#1287 <https://github.com/pybind/pybind11/pull/1287>`_.
2138
+
2139
+ v2.2.2 (February 7, 2018)
2140
+ -----------------------------------------------------
2141
+
2142
+ * Fixed a segfault when combining embedded interpreter
2143
+ shutdown/reinitialization with external loaded pybind11 modules.
2144
+ `#1092 <https://github.com/pybind/pybind11/pull/1092>`_.
2145
+
2146
+ * Eigen support: fixed a bug where Nx1/1xN numpy inputs couldn't be passed as
2147
+ arguments to Eigen vectors (which for Eigen are simply compile-time fixed
2148
+ Nx1/1xN matrices).
2149
+ `#1106 <https://github.com/pybind/pybind11/pull/1106>`_.
2150
+
2151
+ * Clarified to license by moving the licensing of contributions from
2152
+ ``LICENSE`` into ``CONTRIBUTING.md``: the licensing of contributions is not
2153
+ actually part of the software license as distributed. This isn't meant to be
2154
+ a substantial change in the licensing of the project, but addresses concerns
2155
+ that the clause made the license non-standard.
2156
+ `#1109 <https://github.com/pybind/pybind11/issues/1109>`_.
2157
+
2158
+ * Fixed a regression introduced in 2.1 that broke binding functions with lvalue
2159
+ character literal arguments.
2160
+ `#1128 <https://github.com/pybind/pybind11/pull/1128>`_.
2161
+
2162
+ * MSVC: fix for compilation failures under /permissive-, and added the flag to
2163
+ the appveyor test suite.
2164
+ `#1155 <https://github.com/pybind/pybind11/pull/1155>`_.
2165
+
2166
+ * Fixed ``__qualname__`` generation, and in turn, fixes how class names
2167
+ (especially nested class names) are shown in generated docstrings.
2168
+ `#1171 <https://github.com/pybind/pybind11/pull/1171>`_.
2169
+
2170
+ * Updated the FAQ with a suggested project citation reference.
2171
+ `#1189 <https://github.com/pybind/pybind11/pull/1189>`_.
2172
+
2173
+ * Added fixes for deprecation warnings when compiled under C++17 with
2174
+ ``-Wdeprecated`` turned on, and add ``-Wdeprecated`` to the test suite
2175
+ compilation flags.
2176
+ `#1191 <https://github.com/pybind/pybind11/pull/1191>`_.
2177
+
2178
+ * Fixed outdated PyPI URLs in ``setup.py``.
2179
+ `#1213 <https://github.com/pybind/pybind11/pull/1213>`_.
2180
+
2181
+ * Fixed a refcount leak for arguments that end up in a ``py::args`` argument
2182
+ for functions with both fixed positional and ``py::args`` arguments.
2183
+ `#1216 <https://github.com/pybind/pybind11/pull/1216>`_.
2184
+
2185
+ * Fixed a potential segfault resulting from possible premature destruction of
2186
+ ``py::args``/``py::kwargs`` arguments with overloaded functions.
2187
+ `#1223 <https://github.com/pybind/pybind11/pull/1223>`_.
2188
+
2189
+ * Fixed ``del map[item]`` for a ``stl_bind.h`` bound stl map.
2190
+ `#1229 <https://github.com/pybind/pybind11/pull/1229>`_.
2191
+
2192
+ * Fixed a regression from v2.1.x where the aggregate initialization could
2193
+ unintentionally end up at a constructor taking a templated
2194
+ ``std::initializer_list<T>`` argument.
2195
+ `#1249 <https://github.com/pybind/pybind11/pull/1249>`_.
2196
+
2197
+ * Fixed an issue where calling a function with a keep_alive policy on the same
2198
+ nurse/patient pair would cause the internal patient storage to needlessly
2199
+ grow (unboundedly, if the nurse is long-lived).
2200
+ `#1251 <https://github.com/pybind/pybind11/issues/1251>`_.
2201
+
2202
+ * Various other minor fixes.
2203
+
2204
+ v2.2.1 (September 14, 2017)
2205
+ -----------------------------------------------------
2206
+
2207
+ * Added ``py::module_::reload()`` member function for reloading a module.
2208
+ `#1040 <https://github.com/pybind/pybind11/pull/1040>`_.
2209
+
2210
+ * Fixed a reference leak in the number converter.
2211
+ `#1078 <https://github.com/pybind/pybind11/pull/1078>`_.
2212
+
2213
+ * Fixed compilation with Clang on host GCC < 5 (old libstdc++ which isn't fully
2214
+ C++11 compliant). `#1062 <https://github.com/pybind/pybind11/pull/1062>`_.
2215
+
2216
+ * Fixed a regression where the automatic ``std::vector<bool>`` caster would
2217
+ fail to compile. The same fix also applies to any container which returns
2218
+ element proxies instead of references.
2219
+ `#1053 <https://github.com/pybind/pybind11/pull/1053>`_.
2220
+
2221
+ * Fixed a regression where the ``py::keep_alive`` policy could not be applied
2222
+ to constructors. `#1065 <https://github.com/pybind/pybind11/pull/1065>`_.
2223
+
2224
+ * Fixed a nullptr dereference when loading a ``py::module_local`` type
2225
+ that's only registered in an external module.
2226
+ `#1058 <https://github.com/pybind/pybind11/pull/1058>`_.
2227
+
2228
+ * Fixed implicit conversion of accessors to types derived from ``py::object``.
2229
+ `#1076 <https://github.com/pybind/pybind11/pull/1076>`_.
2230
+
2231
+ * The ``name`` in ``PYBIND11_MODULE(name, variable)`` can now be a macro.
2232
+ `#1082 <https://github.com/pybind/pybind11/pull/1082>`_.
2233
+
2234
+ * Relaxed overly strict ``py::pickle()`` check for matching get and set types.
2235
+ `#1064 <https://github.com/pybind/pybind11/pull/1064>`_.
2236
+
2237
+ * Conversion errors now try to be more informative when it's likely that
2238
+ a missing header is the cause (e.g. forgetting ``<pybind11/stl.h>``).
2239
+ `#1077 <https://github.com/pybind/pybind11/pull/1077>`_.
2240
+
2241
+ v2.2.0 (August 31, 2017)
2242
+ -----------------------------------------------------
2243
+
2244
+ * Support for embedding the Python interpreter. See the
2245
+ :doc:`documentation page </advanced/embedding>` for a
2246
+ full overview of the new features.
2247
+ `#774 <https://github.com/pybind/pybind11/pull/774>`_,
2248
+ `#889 <https://github.com/pybind/pybind11/pull/889>`_,
2249
+ `#892 <https://github.com/pybind/pybind11/pull/892>`_,
2250
+ `#920 <https://github.com/pybind/pybind11/pull/920>`_.
2251
+
2252
+ .. code-block:: cpp
2253
+
2254
+ #include <pybind11/embed.h>
2255
+ namespace py = pybind11;
2256
+
2257
+ int main() {
2258
+ py::scoped_interpreter guard{}; // start the interpreter and keep it alive
2259
+
2260
+ py::print("Hello, World!"); // use the Python API
2261
+ }
2262
+
2263
+ * Support for inheriting from multiple C++ bases in Python.
2264
+ `#693 <https://github.com/pybind/pybind11/pull/693>`_.
2265
+
2266
+ .. code-block:: python
2267
+
2268
+ from cpp_module import CppBase1, CppBase2
2269
+
2270
+
2271
+ class PyDerived(CppBase1, CppBase2):
2272
+ def __init__(self):
2273
+ CppBase1.__init__(self) # C++ bases must be initialized explicitly
2274
+ CppBase2.__init__(self)
2275
+
2276
+ * ``PYBIND11_MODULE`` is now the preferred way to create module entry points.
2277
+ ``PYBIND11_PLUGIN`` is deprecated. See :ref:`macros` for details.
2278
+ `#879 <https://github.com/pybind/pybind11/pull/879>`_.
2279
+
2280
+ .. code-block:: cpp
2281
+
2282
+ // new
2283
+ PYBIND11_MODULE(example, m) {
2284
+ m.def("add", [](int a, int b) { return a + b; });
2285
+ }
2286
+
2287
+ // old
2288
+ PYBIND11_PLUGIN(example) {
2289
+ py::module m("example");
2290
+ m.def("add", [](int a, int b) { return a + b; });
2291
+ return m.ptr();
2292
+ }
2293
+
2294
+ * pybind11's headers and build system now more strictly enforce hidden symbol
2295
+ visibility for extension modules. This should be seamless for most users,
2296
+ but see the :doc:`upgrade` if you use a custom build system.
2297
+ `#995 <https://github.com/pybind/pybind11/pull/995>`_.
2298
+
2299
+ * Support for ``py::module_local`` types which allow multiple modules to
2300
+ export the same C++ types without conflicts. This is useful for opaque
2301
+ types like ``std::vector<int>``. ``py::bind_vector`` and ``py::bind_map``
2302
+ now default to ``py::module_local`` if their elements are builtins or
2303
+ local types. See :ref:`module_local` for details.
2304
+ `#949 <https://github.com/pybind/pybind11/pull/949>`_,
2305
+ `#981 <https://github.com/pybind/pybind11/pull/981>`_,
2306
+ `#995 <https://github.com/pybind/pybind11/pull/995>`_,
2307
+ `#997 <https://github.com/pybind/pybind11/pull/997>`_.
2308
+
2309
+ * Custom constructors can now be added very easily using lambdas or factory
2310
+ functions which return a class instance by value, pointer or holder. This
2311
+ supersedes the old placement-new ``__init__`` technique.
2312
+ See :ref:`custom_constructors` for details.
2313
+ `#805 <https://github.com/pybind/pybind11/pull/805>`_,
2314
+ `#1014 <https://github.com/pybind/pybind11/pull/1014>`_.
2315
+
2316
+ .. code-block:: cpp
2317
+
2318
+ struct Example {
2319
+ Example(std::string);
2320
+ };
2321
+
2322
+ py::class_<Example>(m, "Example")
2323
+ .def(py::init<std::string>()) // existing constructor
2324
+ .def(py::init([](int n) { // custom constructor
2325
+ return std::make_unique<Example>(std::to_string(n));
2326
+ }));
2327
+
2328
+ * Similarly to custom constructors, pickling support functions are now bound
2329
+ using the ``py::pickle()`` adaptor which improves type safety. See the
2330
+ :doc:`upgrade` and :ref:`pickling` for details.
2331
+ `#1038 <https://github.com/pybind/pybind11/pull/1038>`_.
2332
+
2333
+ * Builtin support for converting C++17 standard library types and general
2334
+ conversion improvements:
2335
+
2336
+ 1. C++17 ``std::variant`` is supported right out of the box. C++11/14
2337
+ equivalents (e.g. ``boost::variant``) can also be added with a simple
2338
+ user-defined specialization. See :ref:`cpp17_container_casters` for details.
2339
+ `#811 <https://github.com/pybind/pybind11/pull/811>`_,
2340
+ `#845 <https://github.com/pybind/pybind11/pull/845>`_,
2341
+ `#989 <https://github.com/pybind/pybind11/pull/989>`_.
2342
+
2343
+ 2. Out-of-the-box support for C++17 ``std::string_view``.
2344
+ `#906 <https://github.com/pybind/pybind11/pull/906>`_.
2345
+
2346
+ 3. Improved compatibility of the builtin ``optional`` converter.
2347
+ `#874 <https://github.com/pybind/pybind11/pull/874>`_.
2348
+
2349
+ 4. The ``bool`` converter now accepts ``numpy.bool_`` and types which
2350
+ define ``__bool__`` (Python 3.x) or ``__nonzero__`` (Python 2.7).
2351
+ `#925 <https://github.com/pybind/pybind11/pull/925>`_.
2352
+
2353
+ 5. C++-to-Python casters are now more efficient and move elements out
2354
+ of rvalue containers whenever possible.
2355
+ `#851 <https://github.com/pybind/pybind11/pull/851>`_,
2356
+ `#936 <https://github.com/pybind/pybind11/pull/936>`_,
2357
+ `#938 <https://github.com/pybind/pybind11/pull/938>`_.
2358
+
2359
+ 6. Fixed ``bytes`` to ``std::string/char*`` conversion on Python 3.
2360
+ `#817 <https://github.com/pybind/pybind11/pull/817>`_.
2361
+
2362
+ 7. Fixed lifetime of temporary C++ objects created in Python-to-C++ conversions.
2363
+ `#924 <https://github.com/pybind/pybind11/pull/924>`_.
2364
+
2365
+ * Scope guard call policy for RAII types, e.g. ``py::call_guard<py::gil_scoped_release>()``,
2366
+ ``py::call_guard<py::scoped_ostream_redirect>()``. See :ref:`call_policies` for details.
2367
+ `#740 <https://github.com/pybind/pybind11/pull/740>`_.
2368
+
2369
+ * Utility for redirecting C++ streams to Python (e.g. ``std::cout`` ->
2370
+ ``sys.stdout``). Scope guard ``py::scoped_ostream_redirect`` in C++ and
2371
+ a context manager in Python. See :ref:`ostream_redirect`.
2372
+ `#1009 <https://github.com/pybind/pybind11/pull/1009>`_.
2373
+
2374
+ * Improved handling of types and exceptions across module boundaries.
2375
+ `#915 <https://github.com/pybind/pybind11/pull/915>`_,
2376
+ `#951 <https://github.com/pybind/pybind11/pull/951>`_,
2377
+ `#995 <https://github.com/pybind/pybind11/pull/995>`_.
2378
+
2379
+ * Fixed destruction order of ``py::keep_alive`` nurse/patient objects
2380
+ in reference cycles.
2381
+ `#856 <https://github.com/pybind/pybind11/pull/856>`_.
2382
+
2383
+ * NumPy and buffer protocol related improvements:
2384
+
2385
+ 1. Support for negative strides in Python buffer objects/numpy arrays. This
2386
+ required changing integers from unsigned to signed for the related C++ APIs.
2387
+ Note: If you have compiler warnings enabled, you may notice some new conversion
2388
+ warnings after upgrading. These can be resolved with ``static_cast``.
2389
+ `#782 <https://github.com/pybind/pybind11/pull/782>`_.
2390
+
2391
+ 2. Support ``std::complex`` and arrays inside ``PYBIND11_NUMPY_DTYPE``.
2392
+ `#831 <https://github.com/pybind/pybind11/pull/831>`_,
2393
+ `#832 <https://github.com/pybind/pybind11/pull/832>`_.
2394
+
2395
+ 3. Support for constructing ``py::buffer_info`` and ``py::arrays`` using
2396
+ arbitrary containers or iterators instead of requiring a ``std::vector``.
2397
+ `#788 <https://github.com/pybind/pybind11/pull/788>`_,
2398
+ `#822 <https://github.com/pybind/pybind11/pull/822>`_,
2399
+ `#860 <https://github.com/pybind/pybind11/pull/860>`_.
2400
+
2401
+ 4. Explicitly check numpy version and require >= 1.7.0.
2402
+ `#819 <https://github.com/pybind/pybind11/pull/819>`_.
2403
+
2404
+ * Support for allowing/prohibiting ``None`` for specific arguments and improved
2405
+ ``None`` overload resolution order. See :ref:`none_arguments` for details.
2406
+ `#843 <https://github.com/pybind/pybind11/pull/843>`_.
2407
+ `#859 <https://github.com/pybind/pybind11/pull/859>`_.
2408
+
2409
+ * Added ``py::exec()`` as a shortcut for ``py::eval<py::eval_statements>()``
2410
+ and support for C++11 raw string literals as input. See :ref:`eval`.
2411
+ `#766 <https://github.com/pybind/pybind11/pull/766>`_,
2412
+ `#827 <https://github.com/pybind/pybind11/pull/827>`_.
2413
+
2414
+ * ``py::vectorize()`` ignores non-vectorizable arguments and supports
2415
+ member functions.
2416
+ `#762 <https://github.com/pybind/pybind11/pull/762>`_.
2417
+
2418
+ * Support for bound methods as callbacks (``pybind11/functional.h``).
2419
+ `#815 <https://github.com/pybind/pybind11/pull/815>`_.
2420
+
2421
+ * Allow aliasing pybind11 methods: ``cls.attr("foo") = cls.attr("bar")``.
2422
+ `#802 <https://github.com/pybind/pybind11/pull/802>`_.
2423
+
2424
+ * Don't allow mixed static/non-static overloads.
2425
+ `#804 <https://github.com/pybind/pybind11/pull/804>`_.
2426
+
2427
+ * Fixed overriding static properties in derived classes.
2428
+ `#784 <https://github.com/pybind/pybind11/pull/784>`_.
2429
+
2430
+ * Added support for write only properties.
2431
+ `#1144 <https://github.com/pybind/pybind11/pull/1144>`_.
2432
+
2433
+ * Improved deduction of member functions of a derived class when its bases
2434
+ aren't registered with pybind11.
2435
+ `#855 <https://github.com/pybind/pybind11/pull/855>`_.
2436
+
2437
+ .. code-block:: cpp
2438
+
2439
+ struct Base {
2440
+ int foo() { return 42; }
2441
+ }
2442
+
2443
+ struct Derived : Base {}
2444
+
2445
+ // Now works, but previously required also binding `Base`
2446
+ py::class_<Derived>(m, "Derived")
2447
+ .def("foo", &Derived::foo); // function is actually from `Base`
2448
+
2449
+ * The implementation of ``py::init<>`` now uses C++11 brace initialization
2450
+ syntax to construct instances, which permits binding implicit constructors of
2451
+ aggregate types. `#1015 <https://github.com/pybind/pybind11/pull/1015>`_.
2452
+
2453
+ .. code-block:: cpp
2454
+
2455
+ struct Aggregate {
2456
+ int a;
2457
+ std::string b;
2458
+ };
2459
+
2460
+ py::class_<Aggregate>(m, "Aggregate")
2461
+ .def(py::init<int, const std::string &>());
2462
+
2463
+ * Fixed issues with multiple inheritance with offset base/derived pointers.
2464
+ `#812 <https://github.com/pybind/pybind11/pull/812>`_,
2465
+ `#866 <https://github.com/pybind/pybind11/pull/866>`_,
2466
+ `#960 <https://github.com/pybind/pybind11/pull/960>`_.
2467
+
2468
+ * Fixed reference leak of type objects.
2469
+ `#1030 <https://github.com/pybind/pybind11/pull/1030>`_.
2470
+
2471
+ * Improved support for the ``/std:c++14`` and ``/std:c++latest`` modes
2472
+ on MSVC 2017.
2473
+ `#841 <https://github.com/pybind/pybind11/pull/841>`_,
2474
+ `#999 <https://github.com/pybind/pybind11/pull/999>`_.
2475
+
2476
+ * Fixed detection of private operator new on MSVC.
2477
+ `#893 <https://github.com/pybind/pybind11/pull/893>`_,
2478
+ `#918 <https://github.com/pybind/pybind11/pull/918>`_.
2479
+
2480
+ * Intel C++ compiler compatibility fixes.
2481
+ `#937 <https://github.com/pybind/pybind11/pull/937>`_.
2482
+
2483
+ * Fixed implicit conversion of ``py::enum_`` to integer types on Python 2.7.
2484
+ `#821 <https://github.com/pybind/pybind11/pull/821>`_.
2485
+
2486
+ * Added ``py::hash`` to fetch the hash value of Python objects, and
2487
+ ``.def(hash(py::self))`` to provide the C++ ``std::hash`` as the Python
2488
+ ``__hash__`` method.
2489
+ `#1034 <https://github.com/pybind/pybind11/pull/1034>`_.
2490
+
2491
+ * Fixed ``__truediv__`` on Python 2 and ``__itruediv__`` on Python 3.
2492
+ `#867 <https://github.com/pybind/pybind11/pull/867>`_.
2493
+
2494
+ * ``py::capsule`` objects now support the ``name`` attribute. This is useful
2495
+ for interfacing with ``scipy.LowLevelCallable``.
2496
+ `#902 <https://github.com/pybind/pybind11/pull/902>`_.
2497
+
2498
+ * Fixed ``py::make_iterator``'s ``__next__()`` for past-the-end calls.
2499
+ `#897 <https://github.com/pybind/pybind11/pull/897>`_.
2500
+
2501
+ * Added ``error_already_set::matches()`` for checking Python exceptions.
2502
+ `#772 <https://github.com/pybind/pybind11/pull/772>`_.
2503
+
2504
+ * Deprecated ``py::error_already_set::clear()``. It's no longer needed
2505
+ following a simplification of the ``py::error_already_set`` class.
2506
+ `#954 <https://github.com/pybind/pybind11/pull/954>`_.
2507
+
2508
+ * Deprecated ``py::handle::operator==()`` in favor of ``py::handle::is()``
2509
+ `#825 <https://github.com/pybind/pybind11/pull/825>`_.
2510
+
2511
+ * Deprecated ``py::object::borrowed``/``py::object::stolen``.
2512
+ Use ``py::object::borrowed_t{}``/``py::object::stolen_t{}`` instead.
2513
+ `#771 <https://github.com/pybind/pybind11/pull/771>`_.
2514
+
2515
+ * Changed internal data structure versioning to avoid conflicts between
2516
+ modules compiled with different revisions of pybind11.
2517
+ `#1012 <https://github.com/pybind/pybind11/pull/1012>`_.
2518
+
2519
+ * Additional compile-time and run-time error checking and more informative messages.
2520
+ `#786 <https://github.com/pybind/pybind11/pull/786>`_,
2521
+ `#794 <https://github.com/pybind/pybind11/pull/794>`_,
2522
+ `#803 <https://github.com/pybind/pybind11/pull/803>`_.
2523
+
2524
+ * Various minor improvements and fixes.
2525
+ `#764 <https://github.com/pybind/pybind11/pull/764>`_,
2526
+ `#791 <https://github.com/pybind/pybind11/pull/791>`_,
2527
+ `#795 <https://github.com/pybind/pybind11/pull/795>`_,
2528
+ `#840 <https://github.com/pybind/pybind11/pull/840>`_,
2529
+ `#844 <https://github.com/pybind/pybind11/pull/844>`_,
2530
+ `#846 <https://github.com/pybind/pybind11/pull/846>`_,
2531
+ `#849 <https://github.com/pybind/pybind11/pull/849>`_,
2532
+ `#858 <https://github.com/pybind/pybind11/pull/858>`_,
2533
+ `#862 <https://github.com/pybind/pybind11/pull/862>`_,
2534
+ `#871 <https://github.com/pybind/pybind11/pull/871>`_,
2535
+ `#872 <https://github.com/pybind/pybind11/pull/872>`_,
2536
+ `#881 <https://github.com/pybind/pybind11/pull/881>`_,
2537
+ `#888 <https://github.com/pybind/pybind11/pull/888>`_,
2538
+ `#899 <https://github.com/pybind/pybind11/pull/899>`_,
2539
+ `#928 <https://github.com/pybind/pybind11/pull/928>`_,
2540
+ `#931 <https://github.com/pybind/pybind11/pull/931>`_,
2541
+ `#944 <https://github.com/pybind/pybind11/pull/944>`_,
2542
+ `#950 <https://github.com/pybind/pybind11/pull/950>`_,
2543
+ `#952 <https://github.com/pybind/pybind11/pull/952>`_,
2544
+ `#962 <https://github.com/pybind/pybind11/pull/962>`_,
2545
+ `#965 <https://github.com/pybind/pybind11/pull/965>`_,
2546
+ `#970 <https://github.com/pybind/pybind11/pull/970>`_,
2547
+ `#978 <https://github.com/pybind/pybind11/pull/978>`_,
2548
+ `#979 <https://github.com/pybind/pybind11/pull/979>`_,
2549
+ `#986 <https://github.com/pybind/pybind11/pull/986>`_,
2550
+ `#1020 <https://github.com/pybind/pybind11/pull/1020>`_,
2551
+ `#1027 <https://github.com/pybind/pybind11/pull/1027>`_,
2552
+ `#1037 <https://github.com/pybind/pybind11/pull/1037>`_.
2553
+
2554
+ * Testing improvements.
2555
+ `#798 <https://github.com/pybind/pybind11/pull/798>`_,
2556
+ `#882 <https://github.com/pybind/pybind11/pull/882>`_,
2557
+ `#898 <https://github.com/pybind/pybind11/pull/898>`_,
2558
+ `#900 <https://github.com/pybind/pybind11/pull/900>`_,
2559
+ `#921 <https://github.com/pybind/pybind11/pull/921>`_,
2560
+ `#923 <https://github.com/pybind/pybind11/pull/923>`_,
2561
+ `#963 <https://github.com/pybind/pybind11/pull/963>`_.
2562
+
2563
+ v2.1.1 (April 7, 2017)
2564
+ -----------------------------------------------------
2565
+
2566
+ * Fixed minimum version requirement for MSVC 2015u3
2567
+ `#773 <https://github.com/pybind/pybind11/pull/773>`_.
2568
+
2569
+ v2.1.0 (March 22, 2017)
2570
+ -----------------------------------------------------
2571
+
2572
+ * pybind11 now performs function overload resolution in two phases. The first
2573
+ phase only considers exact type matches, while the second allows for implicit
2574
+ conversions to take place. A special ``noconvert()`` syntax can be used to
2575
+ completely disable implicit conversions for specific arguments.
2576
+ `#643 <https://github.com/pybind/pybind11/pull/643>`_,
2577
+ `#634 <https://github.com/pybind/pybind11/pull/634>`_,
2578
+ `#650 <https://github.com/pybind/pybind11/pull/650>`_.
2579
+
2580
+ * Fixed a regression where static properties no longer worked with classes
2581
+ using multiple inheritance. The ``py::metaclass`` attribute is no longer
2582
+ necessary (and deprecated as of this release) when binding classes with
2583
+ static properties.
2584
+ `#679 <https://github.com/pybind/pybind11/pull/679>`_,
2585
+
2586
+ * Classes bound using ``pybind11`` can now use custom metaclasses.
2587
+ `#679 <https://github.com/pybind/pybind11/pull/679>`_,
2588
+
2589
+ * ``py::args`` and ``py::kwargs`` can now be mixed with other positional
2590
+ arguments when binding functions using pybind11.
2591
+ `#611 <https://github.com/pybind/pybind11/pull/611>`_.
2592
+
2593
+ * Improved support for C++11 unicode string and character types; added
2594
+ extensive documentation regarding pybind11's string conversion behavior.
2595
+ `#624 <https://github.com/pybind/pybind11/pull/624>`_,
2596
+ `#636 <https://github.com/pybind/pybind11/pull/636>`_,
2597
+ `#715 <https://github.com/pybind/pybind11/pull/715>`_.
2598
+
2599
+ * pybind11 can now avoid expensive copies when converting Eigen arrays to NumPy
2600
+ arrays (and vice versa). `#610 <https://github.com/pybind/pybind11/pull/610>`_.
2601
+
2602
+ * The "fast path" in ``py::vectorize`` now works for any full-size group of C or
2603
+ F-contiguous arrays. The non-fast path is also faster since it no longer performs
2604
+ copies of the input arguments (except when type conversions are necessary).
2605
+ `#610 <https://github.com/pybind/pybind11/pull/610>`_.
2606
+
2607
+ * Added fast, unchecked access to NumPy arrays via a proxy object.
2608
+ `#746 <https://github.com/pybind/pybind11/pull/746>`_.
2609
+
2610
+ * Transparent support for class-specific ``operator new`` and
2611
+ ``operator delete`` implementations.
2612
+ `#755 <https://github.com/pybind/pybind11/pull/755>`_.
2613
+
2614
+ * Slimmer and more efficient STL-compatible iterator interface for sequence types.
2615
+ `#662 <https://github.com/pybind/pybind11/pull/662>`_.
2616
+
2617
+ * Improved custom holder type support.
2618
+ `#607 <https://github.com/pybind/pybind11/pull/607>`_.
2619
+
2620
+ * ``nullptr`` to ``None`` conversion fixed in various builtin type casters.
2621
+ `#732 <https://github.com/pybind/pybind11/pull/732>`_.
2622
+
2623
+ * ``enum_`` now exposes its members via a special ``__members__`` attribute.
2624
+ `#666 <https://github.com/pybind/pybind11/pull/666>`_.
2625
+
2626
+ * ``std::vector`` bindings created using ``stl_bind.h`` can now optionally
2627
+ implement the buffer protocol. `#488 <https://github.com/pybind/pybind11/pull/488>`_.
2628
+
2629
+ * Automated C++ reference documentation using doxygen and breathe.
2630
+ `#598 <https://github.com/pybind/pybind11/pull/598>`_.
2631
+
2632
+ * Added minimum compiler version assertions.
2633
+ `#727 <https://github.com/pybind/pybind11/pull/727>`_.
2634
+
2635
+ * Improved compatibility with C++1z.
2636
+ `#677 <https://github.com/pybind/pybind11/pull/677>`_.
2637
+
2638
+ * Improved ``py::capsule`` API. Can be used to implement cleanup
2639
+ callbacks that are involved at module destruction time.
2640
+ `#752 <https://github.com/pybind/pybind11/pull/752>`_.
2641
+
2642
+ * Various minor improvements and fixes.
2643
+ `#595 <https://github.com/pybind/pybind11/pull/595>`_,
2644
+ `#588 <https://github.com/pybind/pybind11/pull/588>`_,
2645
+ `#589 <https://github.com/pybind/pybind11/pull/589>`_,
2646
+ `#603 <https://github.com/pybind/pybind11/pull/603>`_,
2647
+ `#619 <https://github.com/pybind/pybind11/pull/619>`_,
2648
+ `#648 <https://github.com/pybind/pybind11/pull/648>`_,
2649
+ `#695 <https://github.com/pybind/pybind11/pull/695>`_,
2650
+ `#720 <https://github.com/pybind/pybind11/pull/720>`_,
2651
+ `#723 <https://github.com/pybind/pybind11/pull/723>`_,
2652
+ `#729 <https://github.com/pybind/pybind11/pull/729>`_,
2653
+ `#724 <https://github.com/pybind/pybind11/pull/724>`_,
2654
+ `#742 <https://github.com/pybind/pybind11/pull/742>`_,
2655
+ `#753 <https://github.com/pybind/pybind11/pull/753>`_.
2656
+
2657
+ v2.0.1 (Jan 4, 2017)
2658
+ -----------------------------------------------------
2659
+
2660
+ * Fix pointer to reference error in type_caster on MSVC
2661
+ `#583 <https://github.com/pybind/pybind11/pull/583>`_.
2662
+
2663
+ * Fixed a segmentation in the test suite due to a typo
2664
+ `cd7eac <https://github.com/pybind/pybind11/commit/cd7eac>`_.
2665
+
2666
+ v2.0.0 (Jan 1, 2017)
2667
+ -----------------------------------------------------
2668
+
2669
+ * Fixed a reference counting regression affecting types with custom metaclasses
2670
+ (introduced in v2.0.0-rc1).
2671
+ `#571 <https://github.com/pybind/pybind11/pull/571>`_.
2672
+
2673
+ * Quenched a CMake policy warning.
2674
+ `#570 <https://github.com/pybind/pybind11/pull/570>`_.
2675
+
2676
+ v2.0.0-rc1 (Dec 23, 2016)
2677
+ -----------------------------------------------------
2678
+
2679
+ The pybind11 developers are excited to issue a release candidate of pybind11
2680
+ with a subsequent v2.0.0 release planned in early January next year.
2681
+
2682
+ An incredible amount of effort by went into pybind11 over the last ~5 months,
2683
+ leading to a release that is jam-packed with exciting new features and numerous
2684
+ usability improvements. The following list links PRs or individual commits
2685
+ whenever applicable.
2686
+
2687
+ Happy Christmas!
2688
+
2689
+ * Support for binding C++ class hierarchies that make use of multiple
2690
+ inheritance. `#410 <https://github.com/pybind/pybind11/pull/410>`_.
2691
+
2692
+ * PyPy support: pybind11 now supports nightly builds of PyPy and will
2693
+ interoperate with the future 5.7 release. No code changes are necessary,
2694
+ everything "just" works as usual. Note that we only target the Python 2.7
2695
+ branch for now; support for 3.x will be added once its ``cpyext`` extension
2696
+ support catches up. A few minor features remain unsupported for the time
2697
+ being (notably dynamic attributes in custom types).
2698
+ `#527 <https://github.com/pybind/pybind11/pull/527>`_.
2699
+
2700
+ * Significant work on the documentation -- in particular, the monolithic
2701
+ ``advanced.rst`` file was restructured into a easier to read hierarchical
2702
+ organization. `#448 <https://github.com/pybind/pybind11/pull/448>`_.
2703
+
2704
+ * Many NumPy-related improvements:
2705
+
2706
+ 1. Object-oriented API to access and modify NumPy ``ndarray`` instances,
2707
+ replicating much of the corresponding NumPy C API functionality.
2708
+ `#402 <https://github.com/pybind/pybind11/pull/402>`_.
2709
+
2710
+ 2. NumPy array ``dtype`` array descriptors are now first-class citizens and
2711
+ are exposed via a new class ``py::dtype``.
2712
+
2713
+ 3. Structured dtypes can be registered using the ``PYBIND11_NUMPY_DTYPE()``
2714
+ macro. Special ``array`` constructors accepting dtype objects were also
2715
+ added.
2716
+
2717
+ One potential caveat involving this change: format descriptor strings
2718
+ should now be accessed via ``format_descriptor::format()`` (however, for
2719
+ compatibility purposes, the old syntax ``format_descriptor::value`` will
2720
+ still work for non-structured data types). `#308
2721
+ <https://github.com/pybind/pybind11/pull/308>`_.
2722
+
2723
+ 4. Further improvements to support structured dtypes throughout the system.
2724
+ `#472 <https://github.com/pybind/pybind11/pull/472>`_,
2725
+ `#474 <https://github.com/pybind/pybind11/pull/474>`_,
2726
+ `#459 <https://github.com/pybind/pybind11/pull/459>`_,
2727
+ `#453 <https://github.com/pybind/pybind11/pull/453>`_,
2728
+ `#452 <https://github.com/pybind/pybind11/pull/452>`_, and
2729
+ `#505 <https://github.com/pybind/pybind11/pull/505>`_.
2730
+
2731
+ 5. Fast access operators. `#497 <https://github.com/pybind/pybind11/pull/497>`_.
2732
+
2733
+ 6. Constructors for arrays whose storage is owned by another object.
2734
+ `#440 <https://github.com/pybind/pybind11/pull/440>`_.
2735
+
2736
+ 7. Added constructors for ``array`` and ``array_t`` explicitly accepting shape
2737
+ and strides; if strides are not provided, they are deduced assuming
2738
+ C-contiguity. Also added simplified constructors for 1-dimensional case.
2739
+
2740
+ 8. Added buffer/NumPy support for ``char[N]`` and ``std::array<char, N>`` types.
2741
+
2742
+ 9. Added ``memoryview`` wrapper type which is constructible from ``buffer_info``.
2743
+
2744
+ * Eigen: many additional conversions and support for non-contiguous
2745
+ arrays/slices.
2746
+ `#427 <https://github.com/pybind/pybind11/pull/427>`_,
2747
+ `#315 <https://github.com/pybind/pybind11/pull/315>`_,
2748
+ `#316 <https://github.com/pybind/pybind11/pull/316>`_,
2749
+ `#312 <https://github.com/pybind/pybind11/pull/312>`_, and
2750
+ `#267 <https://github.com/pybind/pybind11/pull/267>`_
2751
+
2752
+ * Incompatible changes in ``class_<...>::class_()``:
2753
+
2754
+ 1. Declarations of types that provide access via the buffer protocol must
2755
+ now include the ``py::buffer_protocol()`` annotation as an argument to
2756
+ the ``class_`` constructor.
2757
+
2758
+ 2. Declarations of types that require a custom metaclass (i.e. all classes
2759
+ which include static properties via commands such as
2760
+ ``def_readwrite_static()``) must now include the ``py::metaclass()``
2761
+ annotation as an argument to the ``class_`` constructor.
2762
+
2763
+ These two changes were necessary to make type definitions in pybind11
2764
+ future-proof, and to support PyPy via its cpyext mechanism. `#527
2765
+ <https://github.com/pybind/pybind11/pull/527>`_.
2766
+
2767
+
2768
+ 3. This version of pybind11 uses a redesigned mechanism for instantiating
2769
+ trampoline classes that are used to override virtual methods from within
2770
+ Python. This led to the following user-visible syntax change: instead of
2771
+
2772
+ .. code-block:: cpp
2773
+
2774
+ py::class_<TrampolineClass>("MyClass")
2775
+ .alias<MyClass>()
2776
+ ....
2777
+
2778
+ write
2779
+
2780
+ .. code-block:: cpp
2781
+
2782
+ py::class_<MyClass, TrampolineClass>("MyClass")
2783
+ ....
2784
+
2785
+ Importantly, both the original and the trampoline class are now
2786
+ specified as an arguments (in arbitrary order) to the ``py::class_``
2787
+ template, and the ``alias<..>()`` call is gone. The new scheme has zero
2788
+ overhead in cases when Python doesn't override any functions of the
2789
+ underlying C++ class. `rev. 86d825
2790
+ <https://github.com/pybind/pybind11/commit/86d825>`_.
2791
+
2792
+ * Added ``eval`` and ``eval_file`` functions for evaluating expressions and
2793
+ statements from a string or file. `rev. 0d3fc3
2794
+ <https://github.com/pybind/pybind11/commit/0d3fc3>`_.
2795
+
2796
+ * pybind11 can now create types with a modifiable dictionary.
2797
+ `#437 <https://github.com/pybind/pybind11/pull/437>`_ and
2798
+ `#444 <https://github.com/pybind/pybind11/pull/444>`_.
2799
+
2800
+ * Support for translation of arbitrary C++ exceptions to Python counterparts.
2801
+ `#296 <https://github.com/pybind/pybind11/pull/296>`_ and
2802
+ `#273 <https://github.com/pybind/pybind11/pull/273>`_.
2803
+
2804
+ * Report full backtraces through mixed C++/Python code, better reporting for
2805
+ import errors, fixed GIL management in exception processing.
2806
+ `#537 <https://github.com/pybind/pybind11/pull/537>`_,
2807
+ `#494 <https://github.com/pybind/pybind11/pull/494>`_,
2808
+ `rev. e72d95 <https://github.com/pybind/pybind11/commit/e72d95>`_, and
2809
+ `rev. 099d6e <https://github.com/pybind/pybind11/commit/099d6e>`_.
2810
+
2811
+ * Support for bit-level operations, comparisons, and serialization of C++
2812
+ enumerations. `#503 <https://github.com/pybind/pybind11/pull/503>`_,
2813
+ `#508 <https://github.com/pybind/pybind11/pull/508>`_,
2814
+ `#380 <https://github.com/pybind/pybind11/pull/380>`_,
2815
+ `#309 <https://github.com/pybind/pybind11/pull/309>`_.
2816
+ `#311 <https://github.com/pybind/pybind11/pull/311>`_.
2817
+
2818
+ * The ``class_`` constructor now accepts its template arguments in any order.
2819
+ `#385 <https://github.com/pybind/pybind11/pull/385>`_.
2820
+
2821
+ * Attribute and item accessors now have a more complete interface which makes
2822
+ it possible to chain attributes as in
2823
+ ``obj.attr("a")[key].attr("b").attr("method")(1, 2, 3)``. `#425
2824
+ <https://github.com/pybind/pybind11/pull/425>`_.
2825
+
2826
+ * Major redesign of the default and conversion constructors in ``pytypes.h``.
2827
+ `#464 <https://github.com/pybind/pybind11/pull/464>`_.
2828
+
2829
+ * Added built-in support for ``std::shared_ptr`` holder type. It is no longer
2830
+ necessary to to include a declaration of the form
2831
+ ``PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>)`` (though continuing to
2832
+ do so won't cause an error).
2833
+ `#454 <https://github.com/pybind/pybind11/pull/454>`_.
2834
+
2835
+ * New ``py::overload_cast`` casting operator to select among multiple possible
2836
+ overloads of a function. An example:
2837
+
2838
+ .. code-block:: cpp
2839
+
2840
+ py::class_<Pet>(m, "Pet")
2841
+ .def("set", py::overload_cast<int>(&Pet::set), "Set the pet's age")
2842
+ .def("set", py::overload_cast<const std::string &>(&Pet::set), "Set the pet's name");
2843
+
2844
+ This feature only works on C++14-capable compilers.
2845
+ `#541 <https://github.com/pybind/pybind11/pull/541>`_.
2846
+
2847
+ * C++ types are automatically cast to Python types, e.g. when assigning
2848
+ them as an attribute. For instance, the following is now legal:
2849
+
2850
+ .. code-block:: cpp
2851
+
2852
+ py::module m = /* ... */
2853
+ m.attr("constant") = 123;
2854
+
2855
+ (Previously, a ``py::cast`` call was necessary to avoid a compilation error.)
2856
+ `#551 <https://github.com/pybind/pybind11/pull/551>`_.
2857
+
2858
+ * Redesigned ``pytest``-based test suite. `#321 <https://github.com/pybind/pybind11/pull/321>`_.
2859
+
2860
+ * Instance tracking to detect reference leaks in test suite. `#324 <https://github.com/pybind/pybind11/pull/324>`_
2861
+
2862
+ * pybind11 can now distinguish between multiple different instances that are
2863
+ located at the same memory address, but which have different types.
2864
+ `#329 <https://github.com/pybind/pybind11/pull/329>`_.
2865
+
2866
+ * Improved logic in ``move`` return value policy.
2867
+ `#510 <https://github.com/pybind/pybind11/pull/510>`_,
2868
+ `#297 <https://github.com/pybind/pybind11/pull/297>`_.
2869
+
2870
+ * Generalized unpacking API to permit calling Python functions from C++ using
2871
+ notation such as ``foo(a1, a2, *args, "ka"_a=1, "kb"_a=2, **kwargs)``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
2872
+
2873
+ * ``py::print()`` function whose behavior matches that of the native Python
2874
+ ``print()`` function. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
2875
+
2876
+ * Added ``py::dict`` keyword constructor:``auto d = dict("number"_a=42,
2877
+ "name"_a="World");``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
2878
+
2879
+ * Added ``py::str::format()`` method and ``_s`` literal: ``py::str s = "1 + 2
2880
+ = {}"_s.format(3);``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
2881
+
2882
+ * Added ``py::repr()`` function which is equivalent to Python's builtin
2883
+ ``repr()``. `#333 <https://github.com/pybind/pybind11/pull/333>`_.
2884
+
2885
+ * Improved construction and destruction logic for holder types. It is now
2886
+ possible to reference instances with smart pointer holder types without
2887
+ constructing the holder if desired. The ``PYBIND11_DECLARE_HOLDER_TYPE``
2888
+ macro now accepts an optional second parameter to indicate whether the holder
2889
+ type uses intrusive reference counting.
2890
+ `#533 <https://github.com/pybind/pybind11/pull/533>`_ and
2891
+ `#561 <https://github.com/pybind/pybind11/pull/561>`_.
2892
+
2893
+ * Mapping a stateless C++ function to Python and back is now "for free" (i.e.
2894
+ no extra indirections or argument conversion overheads). `rev. 954b79
2895
+ <https://github.com/pybind/pybind11/commit/954b79>`_.
2896
+
2897
+ * Bindings for ``std::valarray<T>``.
2898
+ `#545 <https://github.com/pybind/pybind11/pull/545>`_.
2899
+
2900
+ * Improved support for C++17 capable compilers.
2901
+ `#562 <https://github.com/pybind/pybind11/pull/562>`_.
2902
+
2903
+ * Bindings for ``std::optional<t>``.
2904
+ `#475 <https://github.com/pybind/pybind11/pull/475>`_,
2905
+ `#476 <https://github.com/pybind/pybind11/pull/476>`_,
2906
+ `#479 <https://github.com/pybind/pybind11/pull/479>`_,
2907
+ `#499 <https://github.com/pybind/pybind11/pull/499>`_, and
2908
+ `#501 <https://github.com/pybind/pybind11/pull/501>`_.
2909
+
2910
+ * ``stl_bind.h``: general improvements and support for ``std::map`` and
2911
+ ``std::unordered_map``.
2912
+ `#490 <https://github.com/pybind/pybind11/pull/490>`_,
2913
+ `#282 <https://github.com/pybind/pybind11/pull/282>`_,
2914
+ `#235 <https://github.com/pybind/pybind11/pull/235>`_.
2915
+
2916
+ * The ``std::tuple``, ``std::pair``, ``std::list``, and ``std::vector`` type
2917
+ casters now accept any Python sequence type as input. `rev. 107285
2918
+ <https://github.com/pybind/pybind11/commit/107285>`_.
2919
+
2920
+ * Improved CMake Python detection on multi-architecture Linux.
2921
+ `#532 <https://github.com/pybind/pybind11/pull/532>`_.
2922
+
2923
+ * Infrastructure to selectively disable or enable parts of the automatically
2924
+ generated docstrings. `#486 <https://github.com/pybind/pybind11/pull/486>`_.
2925
+
2926
+ * ``reference`` and ``reference_internal`` are now the default return value
2927
+ properties for static and non-static properties, respectively. `#473
2928
+ <https://github.com/pybind/pybind11/pull/473>`_. (the previous defaults
2929
+ were ``automatic``). `#473 <https://github.com/pybind/pybind11/pull/473>`_.
2930
+
2931
+ * Support for ``std::unique_ptr`` with non-default deleters or no deleter at
2932
+ all (``py::nodelete``). `#384 <https://github.com/pybind/pybind11/pull/384>`_.
2933
+
2934
+ * Deprecated ``handle::call()`` method. The new syntax to call Python
2935
+ functions is simply ``handle()``. It can also be invoked explicitly via
2936
+ ``handle::operator<X>()``, where ``X`` is an optional return value policy.
2937
+
2938
+ * Print more informative error messages when ``make_tuple()`` or ``cast()``
2939
+ fail. `#262 <https://github.com/pybind/pybind11/pull/262>`_.
2940
+
2941
+ * Creation of holder types for classes deriving from
2942
+ ``std::enable_shared_from_this<>`` now also works for ``const`` values.
2943
+ `#260 <https://github.com/pybind/pybind11/pull/260>`_.
2944
+
2945
+ * ``make_iterator()`` improvements for better compatibility with various
2946
+ types (now uses prefix increment operator); it now also accepts iterators
2947
+ with different begin/end types as long as they are equality comparable.
2948
+ `#247 <https://github.com/pybind/pybind11/pull/247>`_.
2949
+
2950
+ * ``arg()`` now accepts a wider range of argument types for default values.
2951
+ `#244 <https://github.com/pybind/pybind11/pull/244>`_.
2952
+
2953
+ * Support ``keep_alive`` where the nurse object may be ``None``. `#341
2954
+ <https://github.com/pybind/pybind11/pull/341>`_.
2955
+
2956
+ * Added constructors for ``str`` and ``bytes`` from zero-terminated char
2957
+ pointers, and from char pointers and length. Added constructors for ``str``
2958
+ from ``bytes`` and for ``bytes`` from ``str``, which will perform UTF-8
2959
+ decoding/encoding as required.
2960
+
2961
+ * Many other improvements of library internals without user-visible changes
2962
+
2963
+
2964
+ 1.8.1 (July 12, 2016)
2965
+ ----------------------
2966
+ * Fixed a rare but potentially very severe issue when the garbage collector ran
2967
+ during pybind11 type creation.
2968
+
2969
+ 1.8.0 (June 14, 2016)
2970
+ ----------------------
2971
+ * Redesigned CMake build system which exports a convenient
2972
+ ``pybind11_add_module`` function to parent projects.
2973
+ * ``std::vector<>`` type bindings analogous to Boost.Python's ``indexing_suite``
2974
+ * Transparent conversion of sparse and dense Eigen matrices and vectors (``eigen.h``)
2975
+ * Added an ``ExtraFlags`` template argument to the NumPy ``array_t<>`` wrapper
2976
+ to disable an enforced cast that may lose precision, e.g. to create overloads
2977
+ for different precisions and complex vs real-valued matrices.
2978
+ * Prevent implicit conversion of floating point values to integral types in
2979
+ function arguments
2980
+ * Fixed incorrect default return value policy for functions returning a shared
2981
+ pointer
2982
+ * Don't allow registering a type via ``class_`` twice
2983
+ * Don't allow casting a ``None`` value into a C++ lvalue reference
2984
+ * Fixed a crash in ``enum_::operator==`` that was triggered by the ``help()`` command
2985
+ * Improved detection of whether or not custom C++ types can be copy/move-constructed
2986
+ * Extended ``str`` type to also work with ``bytes`` instances
2987
+ * Added a ``"name"_a`` user defined string literal that is equivalent to ``py::arg("name")``.
2988
+ * When specifying function arguments via ``py::arg``, the test that verifies
2989
+ the number of arguments now runs at compile time.
2990
+ * Added ``[[noreturn]]`` attribute to ``pybind11_fail()`` to quench some
2991
+ compiler warnings
2992
+ * List function arguments in exception text when the dispatch code cannot find
2993
+ a matching overload
2994
+ * Added ``PYBIND11_OVERLOAD_NAME`` and ``PYBIND11_OVERLOAD_PURE_NAME`` macros which
2995
+ can be used to override virtual methods whose name differs in C++ and Python
2996
+ (e.g. ``__call__`` and ``operator()``)
2997
+ * Various minor ``iterator`` and ``make_iterator()`` improvements
2998
+ * Transparently support ``__bool__`` on Python 2.x and Python 3.x
2999
+ * Fixed issue with destructor of unpickled object not being called
3000
+ * Minor CMake build system improvements on Windows
3001
+ * New ``pybind11::args`` and ``pybind11::kwargs`` types to create functions which
3002
+ take an arbitrary number of arguments and keyword arguments
3003
+ * New syntax to call a Python function from C++ using ``*args`` and ``*kwargs``
3004
+ * The functions ``def_property_*`` now correctly process docstring arguments (these
3005
+ formerly caused a segmentation fault)
3006
+ * Many ``mkdoc.py`` improvements (enumerations, template arguments, ``DOC()``
3007
+ macro accepts more arguments)
3008
+ * Cygwin support
3009
+ * Documentation improvements (pickling support, ``keep_alive``, macro usage)
3010
+
3011
+ 1.7 (April 30, 2016)
3012
+ ----------------------
3013
+ * Added a new ``move`` return value policy that triggers C++11 move semantics.
3014
+ The automatic return value policy falls back to this case whenever a rvalue
3015
+ reference is encountered
3016
+ * Significantly more general GIL state routines that are used instead of
3017
+ Python's troublesome ``PyGILState_Ensure`` and ``PyGILState_Release`` API
3018
+ * Redesign of opaque types that drastically simplifies their usage
3019
+ * Extended ability to pass values of type ``[const] void *``
3020
+ * ``keep_alive`` fix: don't fail when there is no patient
3021
+ * ``functional.h``: acquire the GIL before calling a Python function
3022
+ * Added Python RAII type wrappers ``none`` and ``iterable``
3023
+ * Added ``*args`` and ``*kwargs`` pass-through parameters to
3024
+ ``pybind11.get_include()`` function
3025
+ * Iterator improvements and fixes
3026
+ * Documentation on return value policies and opaque types improved
3027
+
3028
+ 1.6 (April 30, 2016)
3029
+ ----------------------
3030
+ * Skipped due to upload to PyPI gone wrong and inability to recover
3031
+ (https://github.com/pypa/packaging-problems/issues/74)
3032
+
3033
+ 1.5 (April 21, 2016)
3034
+ ----------------------
3035
+ * For polymorphic types, use RTTI to try to return the closest type registered with pybind11
3036
+ * Pickling support for serializing and unserializing C++ instances to a byte stream in Python
3037
+ * Added a convenience routine ``make_iterator()`` which turns a range indicated
3038
+ by a pair of C++ iterators into a iterable Python object
3039
+ * Added ``len()`` and a variadic ``make_tuple()`` function
3040
+ * Addressed a rare issue that could confuse the current virtual function
3041
+ dispatcher and another that could lead to crashes in multi-threaded
3042
+ applications
3043
+ * Added a ``get_include()`` function to the Python module that returns the path
3044
+ of the directory containing the installed pybind11 header files
3045
+ * Documentation improvements: import issues, symbol visibility, pickling, limitations
3046
+ * Added casting support for ``std::reference_wrapper<>``
3047
+
3048
+ 1.4 (April 7, 2016)
3049
+ --------------------------
3050
+ * Transparent type conversion for ``std::wstring`` and ``wchar_t``
3051
+ * Allow passing ``nullptr``-valued strings
3052
+ * Transparent passing of ``void *`` pointers using capsules
3053
+ * Transparent support for returning values wrapped in ``std::unique_ptr<>``
3054
+ * Improved docstring generation for compatibility with Sphinx
3055
+ * Nicer debug error message when default parameter construction fails
3056
+ * Support for "opaque" types that bypass the transparent conversion layer for STL containers
3057
+ * Redesigned type casting interface to avoid ambiguities that could occasionally cause compiler errors
3058
+ * Redesigned property implementation; fixes crashes due to an unfortunate default return value policy
3059
+ * Anaconda package generation support
3060
+
3061
+ 1.3 (March 8, 2016)
3062
+ --------------------------
3063
+
3064
+ * Added support for the Intel C++ compiler (v15+)
3065
+ * Added support for the STL unordered set/map data structures
3066
+ * Added support for the STL linked list data structure
3067
+ * NumPy-style broadcasting support in ``pybind11::vectorize``
3068
+ * pybind11 now displays more verbose error messages when ``arg::operator=()`` fails
3069
+ * pybind11 internal data structures now live in a version-dependent namespace to avoid ABI issues
3070
+ * Many, many bugfixes involving corner cases and advanced usage
3071
+
3072
+ 1.2 (February 7, 2016)
3073
+ --------------------------
3074
+
3075
+ * Optional: efficient generation of function signatures at compile time using C++14
3076
+ * Switched to a simpler and more general way of dealing with function default
3077
+ arguments. Unused keyword arguments in function calls are now detected and
3078
+ cause errors as expected
3079
+ * New ``keep_alive`` call policy analogous to Boost.Python's ``with_custodian_and_ward``
3080
+ * New ``pybind11::base<>`` attribute to indicate a subclass relationship
3081
+ * Improved interface for RAII type wrappers in ``pytypes.h``
3082
+ * Use RAII type wrappers consistently within pybind11 itself. This
3083
+ fixes various potential refcount leaks when exceptions occur
3084
+ * Added new ``bytes`` RAII type wrapper (maps to ``string`` in Python 2.7)
3085
+ * Made handle and related RAII classes const correct, using them more
3086
+ consistently everywhere now
3087
+ * Got rid of the ugly ``__pybind11__`` attributes on the Python side---they are
3088
+ now stored in a C++ hash table that is not visible in Python
3089
+ * Fixed refcount leaks involving NumPy arrays and bound functions
3090
+ * Vastly improved handling of shared/smart pointers
3091
+ * Removed an unnecessary copy operation in ``pybind11::vectorize``
3092
+ * Fixed naming clashes when both pybind11 and NumPy headers are included
3093
+ * Added conversions for additional exception types
3094
+ * Documentation improvements (using multiple extension modules, smart pointers,
3095
+ other minor clarifications)
3096
+ * unified infrastructure for parsing variadic arguments in ``class_`` and cpp_function
3097
+ * Fixed license text (was: ZLIB, should have been: 3-clause BSD)
3098
+ * Python 3.2 compatibility
3099
+ * Fixed remaining issues when accessing types in another plugin module
3100
+ * Added enum comparison and casting methods
3101
+ * Improved SFINAE-based detection of whether types are copy-constructible
3102
+ * Eliminated many warnings about unused variables and the use of ``offsetof()``
3103
+ * Support for ``std::array<>`` conversions
3104
+
3105
+ 1.1 (December 7, 2015)
3106
+ --------------------------
3107
+
3108
+ * Documentation improvements (GIL, wrapping functions, casting, fixed many typos)
3109
+ * Generalized conversion of integer types
3110
+ * Improved support for casting function objects
3111
+ * Improved support for ``std::shared_ptr<>`` conversions
3112
+ * Initial support for ``std::set<>`` conversions
3113
+ * Fixed type resolution issue for types defined in a separate plugin module
3114
+ * CMake build system improvements
3115
+ * Factored out generic functionality to non-templated code (smaller code size)
3116
+ * Added a code size / compile time benchmark vs Boost.Python
3117
+ * Added an appveyor CI script
3118
+
3119
+ 1.0 (October 15, 2015)
3120
+ ------------------------
3121
+ * Initial release